Netduino - WiFi
#21
Posted 17 October 2011 - 05:56 PM
#22
Posted 19 October 2011 - 09:40 AM
#23
Posted 22 October 2011 - 03:09 PM
#24
Posted 22 October 2011 - 03:30 PM
Hi,
Can you tell me the commands I need to pass using the usb ttl device to firstly connect to my network and secondly do the firmware update.
I have connected to the device and have found my network but can't figure out how to connect to it?
Also I have no idea what I need to do to flash the new firrmware on to it?
I am using the tera term app that came with the firmware update files.
Thanks in advadance your help is much appreciated.
Andy
If you're using a USB-to-TTL connection, just connect it directly to the Gainspan. You do not need to connect to any network. You're using UART comms at that point.
If you have the full documentation, the FIrmware download should have provided a com port program to use for updating the firmware (note: this is not the Tera Term app; it is another app in the download files. SOrry, I don't remember the name of it at the moment).
#25
Posted 23 October 2011 - 12:57 AM
#26
Posted 23 October 2011 - 03:39 AM
I just got a gainspan 1011 breakout board in the mail to give my netduino some wireless comm. I looked at the datasheet and it appeared all I had to do to it was put power and rs232 on it and start throwing AT commands down the serial connection. I'm using my netduino for powering the gainspan board. I'm using a rs232 cable with flying leads coming from my computer and a program called RealTerm (v2) for talking to it. I started with the my settings at 9600,8,n,1. When I send the "AT\r" command, I just get jibberish back. It looks like the baud settings are wrong, but those are the default settings from what I can tell. Does anybody have any ideas as to what I'm doing wrong?
According to the documentation, the module requires repeatedly sending the "AT\r" command until an "OK" response is received. Are you sending "AT\r" multiple times until you receive "OK"? If you are, and you're never getting an "OK", it sounds like a baud rate or wiring/setup issue.
#27
Posted 23 October 2011 - 03:54 AM
In this video, the Netduino's connect to each other via an ad-hoc Wi-Fi connection- there are no routers or computers involved in this demo. At the start, each Netduino powers up and sets its LED high. After a short initialization delay, the first Netduino then sends a TCP message to the other Netduino to set a random color for its LED. The second Netduino responds and sets its color. Then the second Netduino sends a TCP message to the first Netduino to set its LED to a random color. The first Netduino responds by setting its color and then sends a message back to the second Netduino, etc., etc...
The effect is a visual representation of the ad-hoc TCP messages between the two Gainspan modules. This could be the basis for a wireless sensor network. I did a rough test in the backyard and these modules can talk back and forth out to 150 feet apart in an open-air scenario.
I moved the modules around in the video just to demonstrate that it is completely wireless. It is kind of a long video, but still cool. My bag of Doritos and my iPad make a brief cameo appearance. Lol
Netduino: Gainspan ad-hoc Wi-Fi communications
#28
Posted 23 October 2011 - 02:47 PM
According to the documentation, the module requires repeatedly sending the "AT\r" command until an "OK" response is received. Are you sending "AT\r" multiple times until you receive "OK"? If you are, and you're never getting an "OK", it sounds like a baud rate or wiring/setup issue.
Thanks, but I have tried sending the AT command several times. I even took the time to ohm out the pinouts from the breakout board back to the module and everything seems to be good. I think it's a baud rate issue, but since it's out of the box it should have the default settings. Do you know of a way to reset to factory defaults without using AT commands?
#29
Posted 23 October 2011 - 04:05 PM
Thanks, but I have tried sending the AT command several times. I even took the time to ohm out the pinouts from the breakout board back to the module and everything seems to be good. I think it's a baud rate issue, but since it's out of the box it should have the default settings. Do you know of a way to reset to factory defaults without using AT commands?
Webenglar,
Have you tried different baud rates to see if you can match with the module?
Are you using 3.3v levels?
Do you have tx on the module going to rx on the computer and rx on the computer going to tx on the module?
I apologize if these questions seem real basic, but just wanted to make sure.
I will check if there is a way to reset to factory default without the uart and will let you know shortly.
Thanks,
Nick
#30
Posted 23 October 2011 - 05:07 PM
Webenglar,
Have you tried different baud rates to see if you can match with the module?
Are you using 3.3v levels?
Do you have tx on the module going to rx on the computer and rx on the computer going to tx on the module?
I apologize if these questions seem real basic, but just wanted to make sure.
I will check if there is a way to reset to factory default without the uart and will let you know shortly.
Thanks,
Nick
I did try different baud rates. No luck. I also thought I saw in either the datasheet or the manual that you can use a PC to talk to it. I'm going straight from the serial port of my laptop to the module. I don't know what the voltage is, I will double check that. Tx and Rx are connected properly. What program to you use to transfer your AT commands?
#31
Posted 23 October 2011 - 06:43 PM
I did try different baud rates. No luck. I also thought I saw in either the datasheet or the manual that you can use a PC to talk to it. I'm going straight from the serial port of my laptop to the module. I don't know what the voltage is, I will double check that. Tx and Rx are connected properly. What program to you use to transfer your AT commands?
Oops. You cannot connect directly from a PC serial port to the module. You will need to get 3.3V logic levels, and a standard serial port on a computer is not 3.3V. See how serial ports work. A USB-to-3.3V TTL converter works fine, and that is what I use.
#32
Posted 24 October 2011 - 12:04 AM
Oops. You cannot connect directly from a PC serial port to the module. You will need to get 3.3V logic levels, and a standard serial port on a computer is not 3.3V. See how serial ports work. A USB-to-3.3V TTL converter works fine, and that is what I use.
Awesome. I'll give it a try and report back.
Edit: I just got my "OK" that I was looking for. Now, on to the WiFi'n. Thanks for the help Nick.
#33
Posted 03 November 2011 - 11:26 AM
A co-worker had a CP2103 laying around the office so I used that for my 3.3V TTL and downloaded the drivers from sparkfun. That's when I got my first "OK" from the Gainspan board. Everything else I tried to do would give me an "ERROR". So I looked to reinstall the drivers and went here to get some new ones. I had to do this for both my XP and my Win7 machines. The drivers I got from this website uninstalled my old drivers and put the new ones on. Everything is working great now.
#34
Posted 08 November 2011 - 07:56 PM
#35
Posted 07 January 2012 - 05:28 PM
Hi Webenglar! I have looked everywhere on the gainspan site (I have the non disclosure) but cannot find anything that contains the gs_flashprogram.exe have you had any look ? Cheers Andy
**** Worked it out ****
If anyone else is struggling...
Download the MXP Eval Kit
Install the eval software
Goto to C:\Gainspan\
Install gs_flashprogram.exe
Get a ttl to usb device and your netduino for 3.3v
Connect up the tx, rx, gnd and 3.3v (remember rx to tx, tx to rx)
Before you power up you need to connect a wire from the g27 to 3.3v
Power up, wait 5 seconds and disconnect g27.
Open gs_flashprogram
Select the three files required for the firmware update the first is in C:\GainSpan\EvalKit\2_3_1\WLAN Firmware (WFW)\bin
and the last 2 are in C:\GainSpan\EvalKit\2_3_1\userapps\Serial to Wi-Fi (S2W)\bin\Web Server Provisioning
Tick the three checkboxes and click update.
Done
Hi,
Where can i Download the MXP Eval Kit? can you post a link?
Thanks
#37
Posted 02 February 2012 - 07:21 PM
I bought a Netduino Plus but decided I really need to go wireless, so I picked up a Gainspan WiFi breakout board from Sparkfun (http://www.sparkfun.com/products/10505) and after some fiddling with the AT commands, I was able to get a WiFi connection going.
I have the same board I was wondering if someone could help me get started with this board, just connecting to the internet.
I'm clueless as to how to start.
Thanks
#38
Posted 08 March 2012 - 10:22 AM
#39
Posted 08 March 2012 - 12:40 PM
#40
Posted 20 April 2012 - 02:43 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users