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. SerialGateway print garbage [ Clue added! ]

SerialGateway print garbage [ Clue added! ]

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 2 Posters 1.9k Views 1 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.
  • G Offline
    G Offline
    goblock
    wrote on last edited by goblock
    #1

    Hello,

    I'm trying to setup a simple SerialGateway, using the following components:

    • Arduino Pro Mini (3.3V, 8MHz)
    • nRF 24L01+
    • USB 2 TTL from icstation.com

    But the serial output only print garbage strings, like

    p{p{s{p{qt{‡ÁôÅ÷Áù@óôÁòôõð@ÃÏÍðÌÅôÅN
    p{p{s{p{y{òÅÁÄz@ruuMruuMp@ó}ruuLÃ}sLô}sLðô}pLÌ}pz
    ruu{ruu{s{p{s{
    p{p{s{p{y{òÅÁÄz@ruuMruuMp@ó}ruuLÃ}sLô}sLðô}pLÌ}pz
    ruu{ruu{s{p{s{
    p{p{s{p{y{òÅÁÄz@ruuMruuMp@ó}ruuLÃ}sLô}sLðô}pLÌ}pz
    ruu{ruu{s{p{s{

    When I add another Arduino Uno with some sensor, it seems both are communicating. The sensor serial debug gives correct logs like:

    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
    read: 255-1-0 s=255,c=3,t=3,pt=0,l=0:
    Nb Sensors = 1
    Temperature = 25.10
    req node id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
    read: 255-1-0 s=255,c=3,t=3,pt=0,l=0:
    Nb Sensors = 1
    Temperature = 25.00
    req node id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
    read: 255-1-0 s=255,c=3,t=3,pt=0,l=0:

    What could be the issue with my gateway? Both are 115200 bauds.

    Please note that I'm a noob in both MySensors & Arduino :)

    1 Reply Last reply
    0
    • daulagariD Offline
      daulagariD Offline
      daulagari
      Hero Member
      wrote on last edited by
      #2

      Could it be your USB2TTL is not wired correctly?

      Mine looks (not wired):

      USB2TTL.jpg

      If so, you will have to make a connection between the 3.3V pad and the middle pad.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goblock
        wrote on last edited by
        #3

        Thanks for your comment.

        Mine is this one : http://www.icstation.com/product_info.php?products_id=1393

        Actually, I think all my wires are correct, because everything (sending temperature data from an arduino to another and logging through serial port) is working fine when I use "simpler" code, mixing Dallas and nRF24L01+ libraries.

        I only have this behavior when trying to use MySensors code.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goblock
          wrote on last edited by
          #4

          Update: New clue!

          Actually, everything works fine if I decrease the baud rate to 9600 in MySensor.h (but not higher !).

          Could it be possible that I have an alimentation issue? Do I need a decoupling capacitor?

          1 Reply Last reply
          0
          • daulagariD Offline
            daulagariD Offline
            daulagari
            Hero Member
            wrote on last edited by
            #5

            Not 100% sure what you mean with "an alimentation issue" but apart from signal quality it could be also that the clocks of your gateway and computer are not matching.

            Does the Pro Mini have a Xtal or is it running from the internal oscillator?

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


            11

            Online

            11.7k

            Users

            11.2k

            Topics

            113.0k

            Posts


            Copyright 2019 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