- Netduino Forums
- → Viewing Profile: Topics: Genious
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.
Community Stats
- Group Members
- Active Posts 10
- Profile Views 5505
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
Neutral
User Tools
Friends
Genious hasn't added any friends yet.
Topics I've Started
Lots of Serial
04 January 2011 - 12:34 PM
Hi all,
Thinking of doing a simple GPS project with the netduino. Usual sort of thing with GPS module, LCD display and a data logger. Was thinking of using the OpenLog logger from Sparkfun as it's cheap and very simple to use. I know the Netduino plus has an SD card available, but not sure when I can get one...
Anyway, the problem is that GPS, Serial and LCD are all driven over serial. I'd prefer not to have to use a multiplexer or anything like that.
Is it possible to do "software" serial on the Netduino - i.e. use some digital IO pins to bit-bash serial data? If so...
How can it be done?
Is there a limit to the number of software serial ports that can be used at a time?
Cheers!
WiFly Shield
21 October 2010 - 11:52 AM
Hi, this is my first post, so please be kind!
I have been trying to get my Netduino to talk to a Sparkfun WiFly shield. I've been basing my code on the Arduino example on the Sparkfun website (the autoconnect example here: http://www.sparkfun....utorials_id=158).
The Arduino code compiles, runs and works straight out of the box. However, my port to the Netduino doesn't.
I manage to write a character out to the SPI/UART chip and get a response back as expected, so I assume my SPI connection is working (had to alter a baud rate setting to do this, as the shild I have has a different crystal). When I issue commands to the WiFly module via the SPI/UART chip the serial activity light flashes.
However, the commands I send seem to be completely ignored! According to the WiFly manual and the example, sending "$$$" should enter command mode and the module should reply with "CMD". This doesn't happen though. I attempt to read characters back after sending "$$$" and get nothing.
Is there some difference with reading and writing to the Netduino SPI port compared to the Arduino? I noticed that when I want to read a byte over SPI, I need to send the "read" command twice and get the return value in the second byte of the SPI data I get back. How is this handled with the Netduino's SPI? When is it safe to ignore the values returned on writes to the SPI port?
Is there any documentation for SPI on Netduino? Also, has anyone managed to get this module working before?
Many thanks!
PS: Will post code when I get home!
- Netduino Forums
- → Viewing Profile: Topics: Genious
- Privacy Policy