03-11-2012 05:46 PM
I am trying to send small amounts of data between a Java program and a SP605 development board. I had communications working under XP, but I am having issues after upgrading to a new PC with Win 7. I downloaded the CP210x_VCP_Win_XP_S2K3_Vista_7 and installed. I can see the bridge on COM3. If I use RealTeam to display the output from the SP605, everything looks fine, but when I attempt to read the information from Java using either RXTXCOMM or SerialPort from SerialIO the data is sometimes corrupted. I am running at 9600 baud, 8 data bits, 1 stop bit, and no parity.
Any help would be appreciated.
03-11-2012 07:15 PM - edited 03-11-2012 07:17 PM
I am trying to send small amounts of data between a Java program and a SP605 development board. I had communications working under XP, but I am having issues after upgrading to a new PC with Win 7.
There are at least two possible factors at play:
I downloaded the CP210x_VCP_Win_XP_S2K3_Vista_7 and installed. I can see the bridge on COM3. If I use RealTeam to display the output from the SP605, everything looks fine,
In other words, communication from SP605 to the PC is working fine, yes?
but when I attempt to read the information from Java using either RXTXCOMM or SerialPort from SerialIO the data is sometimes corrupted.
In other words, there is a problem between the PC serial receiver and Java? If so, I would look for help in a Windows OS or Windows API forum (or a Java programmers' forum). Are there experienced Windows programmers close at hand who might be able to provide some insight or suggestions?
Did the same applications and configurations (e.g. Java, RXTXCOMM, SerialPort) work differently on the XP machine, or did you use a different software configuration?
Also, the term "corrupted" is unhelpfully vague. Does "corrupted" mean dropped (missing) characters? This should be useful information where ever you seek help.
I am running at 9600 baud, 8 data bits, 1 stop bit, and no parity.
As the link between SP605 and the PC is running fine, the only aspect of these settings which might affect your problem is the character rate. Does this make sense?
It would probably help if you ran some experiments to see what factors -- if any -- affect your results. This might provide useful clues of where to look and where not to look for solutions.
-- Bob Elkind
03-18-2012 08:26 AM