News:

Server migration complete, Welcome to version 2.1.1

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 16476
Latest: jbhubert
New This Month: 8
New This Week: 5
New Today: 2
Stats
Total Posts: 132727
Total Topics: 16475
Most Online Today: 114
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 56
Total: 56

Generic serial

Started by Dan555, November 01, 2015, 10:03:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dan555

Hi
I have an arduino connected to the raspberry pi
However when ever I try to play a playlist nothing happens on the arduino beside the RPI starts playing music
The baud rates and channel ranges are set correctly the only 2 ports shown are ttyAMA0 and ttyUSB0
Everytime I try to select USB0 I click save and it reverts back to AMA0
I have tried the command lsusd and it shows arduino uno
The code I have is from here http://www.instructables.com/id/Arduino-Light-Display-With-Vixen/step7/The-arduino-code/
The code works fine when connected to vixen with a p.c but not with fpp
My sequences are converted .vix files
Thanks

CaptainMurdoch

What chipset does your USB dongle use?  We have had some users with a similar issue and their USB dongle wasn't supported very well in Linux.

Also, could you connect FPP to your PC to see if FPP is sending the right data?  I tested the code but not with any actual device listening on the serial that needed the header and footer so I believe the code works but can't say for 100% sure that there aren't any bugs.
-
Chris

Dan555

My arduino uses an atmega 16u2 as and usb to serial converter (built into board)
no data is being received by the arduino but i think this could be because its on the wrong port as described above

CaptainMurdoch

Can you grab the logs zip and I can look at the kernel logs to see if anything stands out?
-
Chris

Dan555

just tried connecting the arduinos serial directly to the rpi gpio uart and it worked perfectly

Dan555

There must be an issue  with outputting serial via a USB to serial adapter

CaptainMurdoch

Ok, glad you got it working using the onboard serial.
-
Chris

byaky

I am having the same issue - Dan555 do you have the schematic connection the gpio part

Dan555

After some more testing I managed to connect them together via USB.
I realised that when I ran the command "ls /dev/tty*" no usb0 was listed so after googling I realised that the raspberry pi sometimes use the port "/dev/ttyACM0" so I went to the media directory (flash drive) there was a file called channeloutputs using the nano editor I found the line saying generic serial and within that line there was a parameter saying port which I changed to "/dev/ttyACM0" I then saved and rebooted the pi
This made it work correctly for me

byaky

Dan555 - Thanks so much it worked! I had a little trouble at first because I placed the literal "/dev/ttyACM0" in the channeloutputs file which did not work.  When it just put "ttyACM0" it worked.  This is what it looked like in the channeloutputs file for an 8 channel SRR connected to arduino:
GenericSerial,1,8,device=ttyACM0;speed=9600;header=;footer=

Thanks again.

Dan555


CaptainMurdoch

Quote from: Dan555 on November 22, 2015, 02:07:02 AM
After some more testing I managed to connect them together via USB.
I realised that when I ran the command "ls /dev/tty*" no usb0 was listed so after googling I realised that the raspberry pi sometimes use the port "/dev/ttyACM0" so I went to the media directory (flash drive) there was a file called channeloutputs using the nano editor I found the line saying generic serial and within that line there was a parameter saying port which I changed to "/dev/ttyACM0" I then saved and rebooted the pi
This made it work correctly for me

I will get a fix into FPP v1.7 which will list ttyACM0 in the dropdown.
-
Chris

Dan555

Thanks glad I could help

Dan555

Also when you click the port on the drop down and click save it just reverts to displaying ttyAMA0 and not the port it is set as although in channel outputs its changed to the port I selected
This is more of a issue with the ui

tom_falcon

I have the latest version of FPP and the generic serial GUI appears to still be messed up. The drop downs only allow me to pick from ttyAMA0 or ttyS0. I have an Arduino hooked up to the rpi and I couldn't get it to work until I saw this thread. My Arduino is on port ttyACM0, once I manually added that to the config file it's working perfectly. I think the GUI need some attention as most user are not going to log into Linux to change the information. Great job on all you programmers have done on this software it works perfectly once setup.

Support FPP

+- Recent Topics

FPP led Panel Troubleshooting. by Poporacer
Today at 09:29:56 AM

output controller by JonD
Today at 09:29:07 AM

Looking for SRx2 V5... by darylc
July 11, 2024, 05:54:34 PM

FPP 8.0 by colonelcline
July 11, 2024, 04:05:15 PM

SMPTE timecode by k6ccc
July 11, 2024, 10:36:03 AM

Matrix panels go full while on every restart by k6ccc
July 11, 2024, 08:17:58 AM

Multiple text effects cause re-render by breese
July 09, 2024, 06:19:48 AM

Cannot change serial settings for Renard by jeff.ott
July 08, 2024, 09:11:47 PM

7.5 wlan ARP issue? by peterjp
July 05, 2024, 11:44:49 PM

FPPv7.5 octoscoller error by dkulp
July 05, 2024, 10:44:41 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod