fidi bokok

fidi bokok

  • NA
  • 1
  • 2k

RS232 Communication - Random Data Sent After Some Time

Jan 24 2012 6:19 AM
Hello,

I'm trying to send some data to serial port. I'm using Aten UC-232A USB to serial adapter and I've installed the supplied drivers for Win7 x64. I haven't found anyone who has had any similar problems with it. The other side of serial cable is connected to another laptop which has a serial port and I'm receiving data in Linux console. I believe the port is configured correctly on both sides (speed 9600, 8 data bits, 1 stop bit, no parity, no flow control).

I've tried some code examples and they all work fine, except:

Sometimes, data is sent correctly, for example, I'm sending characters ABCDEFGH. But usually, they get corrupted, like ACBDEGH, AC??CHEF etc. ...then, after some time, some random is data starts flowing! Mostly unknown characters and the flow doesn't stop. 

I've no idea what is happening - I don't know if this is a programming error (most probably not?) or is there a problem with my USB-to-serial adapter or my system.. I could go buy another adapter with a different chipset (the FTDI one, not Prolific like this one). I have no idea what initiates that random flow of data. It happens randomly - sometimes not at all, sometimes almost instantly after I open the port. 

Answers (1)