1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Rpi 3 'Unable to open RS232 device' issue

Discussion in 'Software Support' started by tuzoli, 18 February 2017.

Tags:
  1. tuzoli

    tuzoli New Member

    Messages:
    6
    Hardware:
    RPi3, 32/64bit, +Arduino
    Good afternoon everyone,
    I'm having an issue making my Raspberry Pi 3 with OSMC control the LEDs. I have tested them with my Arduino and they work just fine. As far as I can tell there is only one issue:

    Unable to open RS232 device (IO Exception (2): No such file or directory, file /home/sascha/hyperion/dependencies/build/serial/src/impl/unix.cc, line 100.)

    My LED lights are Apa102. Please help.
    Thank you in advance!
     

    Attached Files:

  2. penfold42

    penfold42 Moderator Developer

    Messages:
    749
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Do you have the right serial port name ?

    /dev/ttyUSB0 vs /dev/ttyACM0 ?
     
  3. tuzoli

    tuzoli New Member

    Messages:
    6
    Hardware:
    RPi3, 32/64bit, +Arduino
    Good afternoon penfold42,

    Thank you for your response.

    The port was automatically selected by HyperCon: as you can see in the hyperion.config.json file attached it chose /dev/ttyS0
    To my understanding on the Pi3 /dev/ttyACM0 is taken up by bluetooth and since this is not a USB device, it didn't even occur to me to try selecting /dev/ttyUSB0. Please give me a few minutes to have look.
     
  4. tuzoli

    tuzoli New Member

    Messages:
    6
    Hardware:
    RPi3, 32/64bit, +Arduino
    I have now checked the suggested settings, and the program still gives me the same error:

    Unable to open RS232 device (IO Exception (2): No such file or directory, file /home/sascha/hyperion/dependencies/build/serial/src/impl/unix.cc, line 100.)
     
  5. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,201
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    plug the device out and write "ls /dev" and then plug it in and write "ls /dev" than you can see which name the device has ACM0 or USB0
     
  6. tuzoli

    tuzoli New Member

    Messages:
    6
    Hardware:
    RPi3, 32/64bit, +Arduino
    Good afternoon,
    Thank you for your response. I've done as instructed and to be hones, I can't see the difference. Please find attached the screenshot first showing the unplugged then the plugged-in state. Thank you in advance!
     

    Attached Files:

  7. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,201
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    yeah you cant see a difference cause there is no one :)

    ähm other question: you have Apa102 why dont you use spi pins? you dont need the arduino...is there a reason why you want to use arduino?
     
  8. tuzoli

    tuzoli New Member

    Messages:
    6
    Hardware:
    RPi3, 32/64bit, +Arduino
    Good afternoon TPmodding,

    It seems there is a misunderstanding. As you can see from the picture attached to my first post, It's hooked up to the "secondary COM-port" as instructed on this tutorial: https://hyperion-project.org/threads/raspberry-pi-3-mediacenter-hyperion-ambilight-no-soldering.77/

    The Arduino was mentioned to communicate that there is no physical issue with the LEDs.
    I hope this can help. Thank you in advance.
     
  9. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,201
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    ah ok sorry, read it to fast, arduino was only for testing.

    you use the apa102 directly connected to the pi?

    "device" :
    {
    "name" : "MyHyperionConfig",
    "type" : "AdalightApa102",
    "output" : "/dev/ttyS0",

    "rate" : 100000,
    "delayAfterConnect" : 0,
    "colorOrder" : "rgb"
    },

    then this is wrong! this one is only for arduino with adalight apa102 code....

    you need this one

    "device" :
    {
    "name" : "MyHyperionConfig",
    "type" : "apa102",
    "output" : "/dev/spidev0.0",

    "rate" : 1000000,
    "colorOrder" : "rgb"
    },
     
    • Like Like x 1
  10. tuzoli

    tuzoli New Member

    Messages:
    6
    Hardware:
    RPi3, 32/64bit, +Arduino
    TPmodding,

    Thank you for your help. It worked. I'm not going to question why this didn't work before, as I tried this too... but at least I'm not getting this error.
    Now the LEDs still won't come on, but we can now mark this as 'Solved' as the original query has been addressed. If any issues I will either join another discussion or start a new one.

    Thank you again.