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

BUG Unable to open RS232 device (IO Exception (2): No such file or directory, file

Discussion in 'Bug Reports' started by caveman, 29 September 2017.

  1. caveman

    caveman New Member

    Messages:
    18
    Hardware:
    RPi3, +Arduino
    My USB appears to be connecting through ttyAMA0, that is why I am choosing that connection in Hyperion. I've tried the others as well and they fail also.

    [email protected]:~$ dmesg | grep "tty"
    [ 0.000272] console [tty0] enabled
    [ 1.310612] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
    [ 5.971692] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
    [ 135.712971] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
    [ 222.233813] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device


    I've tried other rates as well. Had no effect.
    Yes. The rate in the sketch matches the config. I've test a few variants on this also.

    The only thing at this point seems to be hardware related. I am thinking the video grabber might not be working properly, even though the launch indicates the grabber was started.
     
  2. penfold42

    penfold42 Moderator Developer

    Messages:
    742
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    You don't want /dev/ttyAMA0 - this is the onboard serial port on the gpio headers.

    You USB device is /dev/ACM0

    Forget the grabber for now, we need to focus on getting the leds working.
    Use this arduino sketch https://github.com/hyperion-project...assets/firmware/arduino/adalight/adalight.ino

    Set the baud rate to 11520 in the sketch.

    Hand edit the Hyperion config on the Pi to check the baud rate and ACM0

    Kill any existing hyperiond:
    killall hyperiond
    hyperiond /<path where your config is>/hyperion.conf.json
     
  3. Akriss

    Akriss Active Member

    Messages:
    378
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I apologize, I was in error about the dmesg line, It seems my dyslexia got the better of me. Two lines very similar and close together. /sigh

    The above statement from Penfold42 is is correct.
     
  4. caveman

    caveman New Member

    Messages:
    18
    Hardware:
    RPi3, +Arduino
    That worked!
    Well, parts of it. I did change back to /dev/ACM0 as well.
    I think it was the sketch I was using that was corrupting things, regardless of /dev/tty* setting.
    I still used the HyperCon interface to send the config and stop/start things. Don't know enough about editing in 'vi' yet.

    Thanks for all the help.
    Much appreciated.

    Definitely learned a lot by starting from scratch though.
    Works with KODI and ROKU.

    Now I need to mount the LEDs.
     
  5. penfold42

    penfold42 Moderator Developer

    Messages:
    742
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    @caveman - yay !
    Btw, 'pico' is a much simpler editor if you don't want brain damage just to do simple edits.

    @Akriss - I hear you ! I had to triple check to be sure to be sure to be sure cos it does my head in too
     
  6. tonydif123

    tonydif123 New Member

    Messages:
    3
    Hardware:
    RPi3, +Arduino
    I see this is an old thread but this issue clearly describes the issue I'm currently experiencing, specifically with the RS232 device error listed on my log here:

    ssh in: Aug 04 17:14:17 osmcAllie hyperiond[283]: Opening UART: /dev/ttyUSB0
    ssh in: Aug 04 17:14:17 osmcAllie hyperiond[283]: 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.)
    ssh in: Aug 04 17:14:17 osmcAllie hyperiond[283]: Device blocked for 3000 ms
    ssh in: Aug 04 17:14:20 osmcAllie hyperiond[283]: Device unblocked
    ssh in: Aug 04 17:14:20 osmcAllie hyperiond[283]: Opening UART: /dev/ttyUSB0
    ssh in: Aug 04 17:14:20 osmcAllie hyperiond[283]: 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.)
    ssh in: Aug 04 17:14:20 osmcAllie hyperiond[283]: Device blocked for 3000 ms

    @penfold42 or anyone that can help, I followed these instructions noted above

    Forget the grabber for now, we need to focus on getting the leds working.
    Use this arduino sketch https://github.com/hyperion-project...assets/firmware/arduino/adalight/adalight.ino

    Set the baud rate to 11520 in the sketch.

    That was easy, no problem. However I don't understand how to do the next step in osmc...

    "Hand edit the Hyperion config on the Pi to check the baud rate and ACM0

    Kill any existing hyperiond:
    killall hyperiond
    hyperiond /<path where your config is>/hyperion.conf.json"

    I'm struggling and really hoping for help!
     
  7. tonydif123

    tonydif123 New Member

    Messages:
    3
    Hardware:
    RPi3, +Arduino
    I'm all set, it's up and running. For me it was important to make sure baud rate and uno address were correct