Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Serial Gateway freezes on Raspberry Pi's USB Port

Serial Gateway freezes on Raspberry Pi's USB Port

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 2 Posters 2.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi,

    I have an Arduino Pro Mini (3.3V) connected to an NRF24l01 acting as my Serial Gateway. As a first sensor I use the same configuration with a DHT22 attached to it. And it all works fine, as long as the Gateway is connected to my MacBooks USB port (via an FTDI board btw.)
    However, I connected the gateway to my Raspberry to test it there and the gateway hangs after:

    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSM:RADIO:OK
    0;255;3;0;9;TSM:GW MODE
    0;255;3;0;9;TSM:READY
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.0.0
    0;255;3;0;9;No registration required
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    

    Not even something like a SANCHK:OK, which I would expect. Even stranger: The sensors debug output seems ok:

    TSP:MSG:SEND 105-105-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:23.9
    T: 23.90
    

    From st=ok I figure the sensor believes the gateway ACKed its message? Then why doesn't it print the received message?

    I suspected power issues, since the USB supply should be the only thing different compared to the macbook, so soldered in a capacitor, but still no luck :(

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Solved it using a direct serial connection. Maybe my FTDI Board is bogus.

      1 Reply Last reply
      1
      • breimannB Offline
        breimannB Offline
        breimann
        wrote on last edited by
        #3

        Hi Andre, I'm about to build a serial GW for my controller (Rasp Pi 3 running the latest build of Domoticz). I'm a little confused how the GW will practically interface with my controller however. Do i just plug the GW into one of my RPi's USB ports?? Is it as simple as that? Thanks for answering my "newbie" questions!!

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Hi!

          The serial Port on the current Raspberry Pi 3 is on Pins 8/10. That is the big row of pins on the board. With the current Raspbian you have to first add enable_uart=1 to the cmdline in /boot/config.txt.
          After a reboot /dev/ttyS0 becomes available. You need to disable getty on /dev/ttyS0 using systemctl mask serial-getty@ttyAMA0.service. Otherwise, it will interfere with communication between your gateway and the Pi.

          When set up properly, the serial interface can be checked for data using terminal software such as picocom or minicom (seriously, use picocom ;)).

          1 Reply Last reply
          0
          • breimannB Offline
            breimannB Offline
            breimann
            wrote on last edited by
            #5

            Thank you! That's helpful. When i get some more hardware in the mail I'll test it out.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            26

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular