Skip to content
Advertisement

Tag: serial-port

Bluetooth Serial Port on Raspberry Pi & something weird happened when using IDE and terminator to run python files

I am doing a project using the Bluetooth serial port. It is about the message communication between cellphones and the Rpi. I typed ‘sudo rfcomm watch hci0’ on the Terminator. The code on Python is simple: only assign the port address (‘/dev/rfcomm0’) and readline(). At first, things went right until I disconnected and reconnected. It said, “Cannot create Rfcomm TTY:

How to initialize pppd connection witsh RS232 modem?

I trying to run the pppd daemon on my embedded board. When I connect the modem to USB and run “pon provider” the initialization is correct (I get the IP address and in “ifconfig” I have ppp0 interface) “provider” file: “mobile-modem.chat” file: However, I would like to run pppd on the serial port over RS232 (ttyO1 or ttyO2). To do

Tcl refuses to set 76800 baud rate for serial channel on Linux

I have an FTDI USB/serial device at /dev/ttyUSB0. I set up my channel with which works just fine for Tcl on Windows. On Linux, baud rate queries show and I get all the garbage you’d expect from trying to communicate at the wrong baud rate. I saw this previous post: fconfigure refuses to set baud rate to 921600 …reference a

/dev/ttyACM0: permission denied on openSUSE

I am trying to use an “Arduboy,” based on the Arduino Leonardo, with the Arduino IDE. I cannot upload the example code, however, because of the following error: Before you mark this as a duplicate, here are all of the things I have tried Adding myself to the dialout group that /dev/ttyACM0 can be modified by Running chmod a+rw /dev/ttyACM0

Serial port hangs on close()

I developed this simple kernel module, which emulates a serial port by using a FIFO queue and a timer (read from hardware : out from the queue, write to hardware : insert in the queue). Source code is shown next. Then, I wrote a simple test-application which configures the port settings (baud rate, parity, stop bits, etc) and starts a

How do you check if a serial port is open in Linux?

How does one check if a serial port is already open in Linux using Posix/C functions? I want to check the status of the serial port to check if the serial port is open or not. I would like to know what methods work for: Checking the file descriptor to see if the serial port is open and Checking the

Advertisement