Skip to content
Advertisement

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,

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

Advertisement