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.

SpitfireMike's Content

There have been 6 items by SpitfireMike (Search limited from 27-April 23)


By content type

See this member's

Sort by                Order  

#53048 Serial Port Data Lost

Posted by SpitfireMike on 04 October 2013 - 04:03 PM in Netduino Plus 2 (and Netduino Plus 1)

I'd guess that the Main loop is spinning, preventing the event from firing.  Add a Thread.Sleep(10) in your Main while (true) loop to give the event queue a little breathing room.

 

The .NET event is similar to the Arduino interrupt, the big difference is the event is queued and processed in the same thread as the event source and interrupts are much more immediate.  Since the _port is running in the main thread, the light loop in Main isn't yielding to let the event fire.




#48076 Easiest way for a noob to control 3 relays?

Posted by SpitfireMike on 05 April 2013 - 04:09 PM in Netduino Go

I haven't done this myself, but you could use one of these:http://www.ghielectr...log/product/405 to break out the pins from the GO socket to the pins on the relay board.

I've had great success with the SainSmart relay boards using Netduino+, haven't tried them with the GO.




#44339 Netduino Plus 2 non-standard serialports

Posted by SpitfireMike on 28 January 2013 - 12:57 AM in Netduino Plus 2 (and Netduino Plus 1)

Just to close the loop, using a few RS232 Shifters (SparkFun PRT-00449) and the Netduino Plus 1, I was able to communicate at 19200 7E2.  Unfortunately, after all of this, the barcode scanner doesn't support the UCCEAN128 barcode format required for the DHL label we needed to use.  After all of that, the project was scrapped.

The good news is that we have identified a few other places on our manufacturing floor where the Netduino platform can be used,




#43690 Netduino Plus 2 non-standard serialports

Posted by SpitfireMike on 18 January 2013 - 08:13 PM in Netduino Plus 2 (and Netduino Plus 1)

The scanner is an old AccuSort Mini-X, I'm pretty sure I can change the data line to 8N1.  If I can't, I have a few Netduino 1s on my desk at home, I'll grab one of those. 

 

I really can't thank y'all enough.  Evey time I've had a problem and posted a question, I've had a helpful response far quicker than I expect.




#43634 Netduino Plus 2 non-standard serialports

Posted by SpitfireMike on 18 January 2013 - 01:29 AM in Netduino Plus 2 (and Netduino Plus 1)

Specs for the barcode scanner said 5V, but meter says 12V a few minutes ago. Hmph. I only need to validate the receive bit tomorrow, I'll whip up a voltage divider until I can get a proper level converter.  If it was a simple voltage problem, this should take care of it.

 

I'll hold off on updating the firmware, last time I did that it didn't work out quite so well.




#43622 Netduino Plus 2 non-standard serialports

Posted by SpitfireMike on 17 January 2013 - 09:58 PM in Netduino Plus 2 (and Netduino Plus 1)

Having trouble reading 19200, 7E2 data from COM2 and COM3 with Netduino Plus 2.

 

<details>

After playing with Netduinos at home, I finally brought one in to work for a relatively simple project.  The board is the Netduino Plus 2 RevA with stock firmware.  The Netduino should sit in the middle of an RS232 connection, reading values from one SerialPort, converting the data, then sending it out the other SerialPort.  The problem seems to be the port configuration that I have to use.  It's 19200, 7E2.  I read in another forum topic here that COM1 may have problems with anything other than 8N1, so I'm using COM2 and COM3.  Everything initializes correctly, no exceptions creating or opening the ports.  The data that is read looks like regular garbage data that you'd see with a config mismatch.  Connecting the input to a Windows XP Hyperterminal session with 19200 7E2 gives me good valid reads.  It sure looks like the Netduino is having trouble with this configuration.

 

The setup is pretty straight forward, an overhead barcode scanner sends data through RS232, RS232 connected to Netduino COM2 pins, DataReceived handler writes to SerialLCD on COM1 and log file on SD card.  Once receive is OK from COM2, send the modified data out COM3 at the same config.

</details>





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.