Share

Python Serial Port Extension

Tracker: Bugs

5 wrong data on 64-bit Linux - ID: 2867387
Last Update: Comment added ( sf-robot )

We have a (virtual) serial device on a 64-bit Linux (Red Hat Enterprise
Server release 5.2) machine. We wrote a C program to capture binary data
coming from the serial device, which works as expected. We also wrote a
python script which attempts to do likewise employing PySerial. Although
we receive data, it appears to be mangled?

Attached is a file showing snippets of console output for each.


degenaro ( degenaro ) - 2009-09-26 11:48

5

Closed

Works For Me

Nobody/Anonymous

None

None

Public


Comments ( 3 )

Date: 2009-11-04 02:21
Sender: sf-robotSourceForge.net Site Admin

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2009-10-20 21:58
Sender: cliechtiProject Admin

So far i did not have problems on my 64 bit Linux machine. pySerial has
unit tests sending binary data through a loop-back adapter and those worked
fine.

1) do you have the correct baud rate and other port settings?

2) did you test the same on 32 bit linux?

3) is the c code using different port settings? pySerial sets the port up
for binary transmission but maybe there is still a difference. maybe "stty"
can be used to display the port settings while the C respectively the
Python program is running?

out of curiosity, is that Ethernet transport using RFC2217? (since
pySerial 2.5 will have support for that built in)


Date: 2009-09-26 12:14
Sender: degenaro

Note: the virtual serial device is an IOLAN DS1 that transports serial data
across Ethernet to a TruePort daemon. We've shown that the IOLAN-device +
TruePort-daemon are not the issue, since we are successful on Windows using
C or PySerial, and on Linux using C.


Attached File ( 1 )

Filename Description Download
PySerial-Data.doc console output showing incorrect? PySerial data Download

Changes ( 7 )

Field Old Value Date By
close_date 2009-10-20 21:58 2009-11-04 02:21 sf-robot
status_id Pending 2009-11-04 02:21 sf-robot
allow_comments 1 2009-11-04 02:21 sf-robot
close_date - 2009-10-20 21:58 cliechti
status_id Open 2009-10-20 21:58 cliechti
resolution_id None 2009-10-20 21:58 cliechti
File Added 344402: PySerial-Data.doc 2009-09-26 11:48 degenaro