RN-XV WiFly Module driver
#22
Posted 31 March 2012 - 02:58 PM
#23
Posted 10 April 2012 - 12:14 PM
Hello Stefan,
i figured out that on the shield there has been soldered a diode between Tx of netduino and Pin3 of the RN-XV module.
I bridged it and all trouble has gone. I will also attach a photo
Thank you for your help.
Can you attach the photo of what you did to get the RN-XV module working on the xbee shield
#24
Posted 10 April 2012 - 12:36 PM
You could do the same for the PIR sensor, also with jumper wires
Hi Stefan
I have connected RN-XV WiFly module to the netduino using breadboard and it works great.
thanks
#25
Posted 10 April 2012 - 04:16 PM
Good to read that!!I have connected RN-XV WiFly module to the netduino using breadboard and it works great.
Could you make a seperate thread about it on the forums? I would love to look into it, but it's not really related to the RN-XV module anymoreI am having a problem connecting this pir device PIR Sensor
I cant detect any movement also cant seem to get to work
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#26
Posted 11 April 2012 - 11:18 AM
#27
Posted 11 April 2012 - 02:20 PM
Good to read that!!
Could you make a seperate thread about it on the forums? I would love to look into it, but it's not really related to the RN-XV module anymore
Stephan sometimes I get an IP sometimes I dont is there a way to see why I am not receiving an IP. Alos as soon as I get an Ip and try opening a socket to a webpage it cant connect ? Is there a problem with the netduino and wifly module ?
#28
Posted 11 April 2012 - 03:16 PM
Hi trencaesh,Stephan sometimes I get an IP sometimes I dont is there a way to see why I am not receiving an IP. Alos as soon as I get an Ip and try opening a socket to a webpage it cant connect ? Is there a problem with the netduino and wifly module ?
It can happen that it takes too much time to get a good signal, I'm not sure. if you enable debugging, you'll see a lot more.
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#29
Posted 11 April 2012 - 09:04 PM
Attached Files
#30
Posted 12 April 2012 - 10:59 AM
Hi trencaesh,
It can happen that it takes too much time to get a good signal, I'm not sure. if you enable debugging, you'll see a lot more.
Stephan this is the debug output
Starting wifi config...
Instace created...
Local IP: 192.168.0.200
MAC address: 00:06:66:71:e1:de
Dns Lookup google.com.au: 74.125.237.119
#### Exception System.ApplicationException - 0x00000000 (1) ####
#### Message: Can't connect:<2.31> ERR:Connected!
Disconn from TEHS_4B6B22,1:0
#### Toolbox.NETMF.Hardware.WiFlyGSX::OpenSocket [IP: 0084] ####
#### Toolbox.NETMF.NET.WiFlySocket::Connect [IP: 001c] ####
#### NetduinoApplication1.wifi::Main [IP: 006d] ####
A first chance exception of type 'System.ApplicationException' occurred in Toolbox.NETMF.Hardware.WiFlyGSX.dll
An unhandled exception of type 'System.ApplicationException' occurred in Toolbox.NETMF.Hardware.WiFlyGSX.dll
Additional information: Can't connect:<2.31> ERR:Connected!
Disconn from TEHS_4B6B22,1:0
#31
Posted 12 April 2012 - 11:11 AM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#32
Posted 14 April 2012 - 06:21 AM
That's strange, could you please upload (a part of) your project so I can see what's going on?
using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; using Toolbox.NETMF; using Toolbox.NETMF.NET; using Toolbox.NETMF.Hardware; namespace NetduinoApplication1 { public class wifi { public static void Main() { // write your code here Debug.Print("Starting wifi config..."); WiFlyGSX WifiModule = new WiFlyGSX(); Debug.Print("Instace created..."); WifiModule.EnableDHCP(); WifiModule.JoinNetwork("TEHS_4B6B22", 0 , WiFlyGSX.AuthMode.MixedWPA1_WPA2, "12121212121"); //// Showing some interesting output Debug.Print("Local IP: " + WifiModule.LocalIP); Debug.Print("MAC address: " + WifiModule.MacAddress); Debug.Print("Dns Lookup google.com.au: " + WifiModule.DnsLookup("google.com.au")); // Creates a socket SimpleSocket Socket = new WiFlySocket("google.com.au", 80, WifiModule); // Connects to the socket Socket.Connect(); // Does a plain HTTP request Socket.Send("GET / HTTP/1.1\r\n"); Socket.Send("Host: " + Socket.Hostname + "\r\n"); Socket.Send("Connection: Close\r\n"); Socket.Send("\r\n"); // Prints all received data to the debug window, until the connection is terminated and there's no data left anymore while (Socket.IsConnected || Socket.BytesAvailable > 0) { string Text = Socket.Receive(); if (Text != "") Debug.Print(Text); } // Closes down the socket Socket.Close(); } } }
One thing is funny if I disconnect and reconnect the output works. The second time i run the code it errors out when it tries to create the socket
#33
Posted 15 April 2012 - 01:23 AM
#34
Posted 15 April 2012 - 01:40 PM
Thanks, I'm going to test that scenario. Please stay tuned...One thing is funny if I disconnect and reconnect the output works. The second time i run the code it errors out when it tries to create the socket
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#35
Posted 04 May 2012 - 08:37 PM
I did a very small modification to the code ( ) that could have fixed this issue.One thing is funny if I disconnect and reconnect the output works. The second time i run the code it errors out when it tries to create the socket
Could you download the latest version? Also, it has a new debug method so it's easier to look into problems.
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#36
Posted 07 June 2012 - 03:22 AM
#37
Posted 07 June 2012 - 04:39 AM
The module can support only one request at once. It has some built-in http features I don't use though, but very limited. This driver is just for a single tcp/ip socket.Would it be possible to create a web server with the RN-XV? Can it continuously listen on a port and handle multiple simultaneous requests? It looks like the simple socket does not have the ability to send data as streams or chunks, so sending a 50kb file would require changes... right?
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#38
Posted 12 June 2012 - 03:11 AM
I got the XBee Shield (show in the pics below) from sparkfun but I didn't come with the black connectors (as shown in the picture of your project demo), so I can't mount it on top of my N+ at this moment until I solder those connector to this base. I am not eletronic savvy, so I can't come up with a better name for thise connectors. Do you know where to get them?
Thanks
#39
Posted 12 June 2012 - 03:16 AM
Yea, Sparkfun does sell them seperately: http://www.sparkfun.com/products/10007Hi Stefan,
I got the XBee Shield (show in the pics below) from sparkfun but I didn't come with the black connectors (as shown in the picture of your project demo), so I can't mount it on top of my N+ at this moment until I solder those connector to this base. I am not eletronic savvy, so I can't come up with a better name for thise connectors. Do you know where to get them?
- Giuliano likes this
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#40
Posted 12 June 2012 - 03:21 AM
Yea, Sparkfun does sell them seperately: http://www.sparkfun.com/products/10007
It's hard to see from your picture but I think there are 4 of those on top and 4 in the bottom. Am I right? Any soldering involve?
And one last question, can I use this same shield on top of the N Go shield base as well?
Thanks
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users