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.
Photo

Lost serial characters


  • Please log in to reply
4 replies to this topic

#1 avonwood

avonwood

    New Member

  • Members
  • Pip
  • 3 posts

Posted 21 August 2013 - 08:32 AM

Hi

 

I am using a Netduino PLus 2 with s/w 4.2.2 update 2 and have met a strange problem.

 

I  am sending a serial message to a device which responds with a reply of 26 characters.

The default baud rate is 115200 on com2. My software continually sends a message to the device waits for a reply and then sends it again.

After about 10 seconds I get a reply but with 1 or 2 missing characters.

I have tried reducing the baud rate but the same problem occurs.

 

I have been running with a network cable plugged into the netduino ( my code does not use the network ) but if i remove the network cable the problem improves - at 19200 it will then seem to run for 10's of minutes with no problem.

 

 

My question :-

Is there a known problem with serial receive?

Is there a known problem with the network interface interfering with serial receive?

 

 

 



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 22 August 2013 - 02:58 AM

Hi avonwood,

 

Have you tried enabling flow control?  My first guess is that a buffer somewhere is being overflown, although we're also not talking about a lot of bytes here...

 

Chris



#3 avonwood

avonwood

    New Member

  • Members
  • Pip
  • 3 posts

Posted 22 August 2013 - 07:37 AM

Hi

 

The device i am trying to connect to does not support flow control.



#4 Yanoch

Yanoch

    New Member

  • Members
  • Pip
  • 3 posts

Posted 27 August 2013 - 10:34 AM

Just for testing, remove the event and try to wait for your 26 bytes in a while loop then read it...



#5 avonwood

avonwood

    New Member

  • Members
  • Pip
  • 3 posts

Posted 29 August 2013 - 03:16 PM

Hi

 

Any thoughts on this ???

 

My only solution at the moment is to abandon using a Netduino if this cannot be solved.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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.