guys tell me please what can be a problem – i send commands (sequence of bytes including bytes with most significant bit (MSB) = 1) to device through serial port, device successfully recognize the commands (so it seems all bytes are sent correct) and reply with almost correct answer. “Almost” here means than answer is correct except that all bytes
Tag: serial-port
Serial data over UART gets corrupted
I’m developing an application for a development board (Beagle Bone Black) that will send some data over UART peripheral. The developing board runs Linux Kernel (some Debian distribution, 3.8.x Linux Kernel version). For sending and receiving data over UART I use the standard UNIX API: open(), read(), and write() family functions. For setting the communication parameters (baud rate, stop/start bits,
Serial communication on Linux with flow control enabled – bad behaviour
I wrote common functions in order to manage serial ports, based on the following structure: I am calling these functions (see below) in another file in order to test an RS232 serial port. The flow control needs to be enabled. In order to validate the implementation, the pinouts Tx and Rx have been connected together, idem for CTS and RTS.
Send Command to serial port via Cu and exit in same line
I want to execute “sw i01” into cu command and exit cu (with “~.”) in just one line or in file bash because il will execute them from a distant server In this image i put: then it return “Connected.” i put “sw i01” (command switch HDMI to input 1) it return “Command Ok” then i exit with “~.” (the
linux – serial port programming ( ASCII to Byte )
I tried to receive data from serial port. However, those data is unrecognized to me. The root cause is because those are in ASCII. To decode the data, it needs to be the byte formate. The buffer I’ve created is unsigned char [255] and I try to print out the data by using Two questions here: The data might is
Communicating with CashCode bill acceptor in linux
I’ve implemented CCNET protocol to communicate with CashCode bill acceptor from my software on Linux. Initially I spent lots of time trying to figure out why the device does not respond to the commands I’m sending. Using trial-and-error method I found the solution to set the following options for the serial port: It was working on the development machine and
Openwrt linux devices list
I want to transfer some serial data as explained here:http://www.cse.dmu.ac.uk/~sexton/ENGD2003/openwrt/arduino%20teensy%20openwrt.html on an openwrt router. However, I directly connected to the serial port of the router as opposed to usb(in the guide) so now I don’t know which of the following is the device: Which one of the following is the serial port of the router? When I connect the device
Use picocom – sending request
I’m sorry, but I don’t understand how use picocom to send a request/command to the device. Official doc: http://linux.die.net/man/8/picocom I want to be IN the OS I reach, I connect to an Arduino YUN using linux OS inside and I want to be root on it, it’s probably easy, I’m already connected but I don’t understand what I have to
How to attach ttyS to screen and capture it simultaneously
For capturing ssh sessions I use “script” command: “script -c ‘ssh user@host’ outfile”. But I have no idea how to capture sessions to remote hosts, that connected over com(serial) port. ends immediately with empty log. Both 2 functions that implemented in screen is necessary: ability to switch between opened sessions and ability to perform i/o to /dev/ttyS. I started develop
XBee Linux Serial Port on Raspberry Pi
I have 2 Adafruit XBee 2 Modules each connected with 1 FTDI cable (ttyUSB0 and ttyUSB1)to the Raspberry Pi via a USB hub. I configure both XBee modules independently to be on the same PAN and then I try to read in a while loop with one, and write a simple message in a while loop in the other. For