Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 05-28-2019, 02:43 AM   #1
LQ Newbie
Registered: May 2019
Posts: 2

Rep: Reputation: Disabled
Problem with slaving Arduino to RPI, Tx from only works when GtkTerm is active although Arduino does Rx data


* Arduino slaved to my RPI over the USB cable
* Having a simple led connected to the Arduino and a firmware that does the led make blinky blinky if there is any serial activity going on:

void serialEvent(){
if (Serial.available()) { //makes sure something is ready to be read
digitalWrite(led, HIGH);
digitalWrite(led, LOW);

* On the RX port and the GND port of the Arduino I have an analyzer attached and SALEAE running to listen to the data.

From my RPI:
pi@raspberrypi:~$ echo 1 > /dev/ttyACM0

- nothing happends on the Arduino (led does not blink)
- SALEAE recieves as data: 1\n

On RPI GtkTerm is active (configured 9600 baud, 8 databits, 1 stopbit, no parity)
and then I do from a terminal
pi@raspberrypi:~$ echo 1 > /dev/ttyACM0

- LED starts blinking
- SALEAE recieves as data: 1\n

On my RPI I programmed a little JAVA program that also writes a '1\n' to the serial port (configured port /dev/ttyACM0, 9600 baud, 8 databits, 1 stopbit, no parity)

and running this leads to the same result:
without GtkTerm active nothing happends and SALEAE recieves as data: 1\n over the Ardiuno
with GtkTerm active LED starts blinking and SALEAE recieves as data: 1\n over the Ardiuno

I tried running GtkTerm as user pi but same results a above

Any ideas how to get the led blinking without GtkTerm active ?
This one is driving me crazy for days


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending serial information over USB from RPI to Arduino only works if GtkTerm is active Ronnie76 Linux - Embedded & Single-board computer 1 05-29-2019 12:21 PM
Issue - zrep slaving bigger than master RayLui20 Solaris / OpenSolaris 0 01-25-2017 11:47 PM
LXer: Mini-PC taps RPi Compute Module and supports RPi 2 LXer Syndicated Linux News 0 02-22-2015 04:03 PM
Cent OS: Slaving Possibly Bad HDD mellomutt Linux - Hardware 2 12-03-2008 07:20 PM
Slaving my old machine brandon14u2 Ubuntu 1 10-22-2005 07:16 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration