[beagleboard] Re: CBB-Serial Cape: Problems with RS-485

2015-08-31 Thread benjamin . meier70
Hello:) I have a new problem. I use now a script to read the data from the external device (see my post before: http://beagleboard.org/Community/Forums?place=msg%2Fbeagleboard%2FpfRLpoOEv9M%2Fj4LJHPGOJgAJ ). This script is just a copy of the script in the linked tutorial. I just changed the

[beagleboard] Re: CBB-Serial Cape: Problems with RS-485

2015-08-27 Thread benjamin . meier70
Thank you very much for the input. Now it works:) I switched the wires and i played around with the tutorial. I use now this script: import serial, fcntl, struct, time ser = serial.Serial( port='/dev/ttyO4', baudrate=9600, timeout=10, parity=serial.PARITY_EVEN, stopbits=seri

[beagleboard] Re: CBB-Serial Cape: Problems with RS-485

2015-08-26 Thread Alexander Hiam
The BeagleBone's omap-serial driver doesn't support RS-485 DE/RE control with the RTS flow control signal. Instead it has an RS-485 mode using a GPIO pin for DE/RE control, and has a modified serial_rs485 struct from the standard serial driver. You have to use ioctl on the corresponding /dev/tt