Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

fletcham

Member Since 03 Jan 2011
Offline Last Active Sep 13 2015 03:27 AM
-----

Posts I've Made

In Topic: Webserver on NetduinoPlus + (wired or wireless) library

25 January 2011 - 12:03 AM

Okay I got it to work! It was a simple issue with the baud rate. The first time the WiFly shield is hooked up it has a default baud rate of 9600, so by setting the SPI baud rate to 9600 the first time the program ran allowed it to communicate with the WiFly shield and could then tell the WiFly shield to run at 38400. Every time after that I have been able to set the SPI baud rate to 38400 and it has been working correctly and all of the data printed to the output window in Visual Studio looks correct without any missing letters. Thanks again for writing this driver! -Adam

In Topic: Webserver on NetduinoPlus + (wired or wireless) library

24 January 2011 - 02:07 AM

Hi Guys, First off, thanks JP for writing a driver for the WiFly shield! It looks much cleaner and complete than my attempt. I also seem to be having an issue with the baud rate. I am using a Netduino and my wifly shield has a 14.7456 MHz crystal on it. Whenever the code is run using the baud rate set to 38400 "WriteRegister(WiflyRegister.DLL, 24); " and data is received from the shield the data is a bunch of strange characters. However, when I change the baud rate to 9600 "WriteRegister(WiflyRegister.DLL, 0x60); " and data is received from the shield it is legible and returns what is expected. At the 9600 baud rate it seems to miss some characters as it is receiving them. For example when it calls getIP() it should return 192.168.1.143, but instead it might return 192.18.1.143. I think the RN-131C has a default baud rate of 9600 and when the baud rate for the SPI is also set to that it seems to function properly. Could it possibly be that the the baud rate on the WiFly module is not being saved or being set correctly when the SPI is first set to 38400? Thanks for you help, Adam

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.