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: 16350
Latest: bweber
New This Month: 136
New This Week: 6
New Today: 0
Stats
Total Posts: 130888
Total Topics: 16202
Most Online Today: 94
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 9
Guests: 54
Total: 63

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.

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod