LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


Closed Thread
  Search this Thread
Old 05-27-2019, 04:29 PM   #1
Ronnie76
LQ Newbie
 
Registered: May 2019
Posts: 2

Rep: Reputation: Disabled
Angry Sending serial information over USB from RPI to Arduino only works if GtkTerm is active


*SORRY, DOUBLE POSTED*

Hello,

GIVEN:
* 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:
Code:
void serialEvent(){
  if (Serial.available()) { //makes sure something is ready to be read
         digitalWrite(led, HIGH);
         delay(1000);
         digitalWrite(led, LOW);
         delay(1000); 
      }
  }
* On the RX port and the GND port of the Arduino I have an analyzer attached and SALEAE running to listen to the data.

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

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

BUT WHEN:
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

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

Last edited by Ronnie76; 05-28-2019 at 02:39 PM.
 
Old 05-29-2019, 12:21 PM   #2
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,000
Blog Entries: 25

Rep: Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


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
Problem with slaving Arduino to RPI, Tx from only works when GtkTerm is active although Arduino does Rx data Ronnie76 Linux - Embedded & Single-board computer 0 05-29-2019 10:45 AM
LXer: IoT box supports internal RPi, Arduino shields, and more LXer Syndicated Linux News 0 05-31-2015 06:27 PM
LXer: Mini-PC taps RPi Compute Module and supports RPi 2 LXer Syndicated Linux News 0 02-22-2015 04:03 PM
minicom vs. Gtkterm vs. Putty - app for serial communications don_wombat_73 Linux - Software 2 05-21-2009 11:59 AM
gtkterm or other serial communications software for puppy 4.1.2 cncman Puppy 2 02-25-2009 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 09:56 AM.

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