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. Development
  3. help to manual sed sensor ID ..

help to manual sed sensor ID ..

Scheduled Pinned Locked Moved Development
serialgatewayserial protocol
14 Posts 4 Posters 8.8k 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.
  • D dzairo

    yes .. I know this .. but I want AUTO assign ID from serial gateway ..
    I don't want assign ID manually ..

    regards.

    PS: how to define ACK .. serial gateway if send packet then want received back ACK that node packet received..
    and how to check that node if send data to gateway , gateway got this data ..

    regards.

    N Offline
    N Offline
    NotYetRated
    wrote on last edited by
    #5

    @dzairo
    Cannot help you with sensors not auto assigning properly, as I have the same issue on a few of mine. I manually assigned them, and moved on.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dzairo
      wrote on last edited by
      #6

      hhmmmm... very interesting .. no other help.. only me and you have this problem..may be problem is with sketch .. must test another sketch..

      must contact MySensors master for help... because if not work manual , then with controller will not working too..

      regards

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #7

        Are you sure there isn't any communication problem?

        Here is a thread with exactly the same question:
        http://forum.mysensors.org/topic/457/cannot-send-id/4

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dzairo
          wrote on last edited by
          #8

          hi Hek .
          I use node with 2xAA batteries with 47uF capacitor (tantalum ).. if power ON node then in gateway received all what node send . and if debugging node then see st=ok. then I mean that packet transmit OK . if remove batteries then node can send packet form capacitor many time with out of batteries . in serial gateway I test many type capacitors .. 1500uF 6,3V special with low ESR .. and sill now working .. I try all check again .. I try set different board with nRF24L01+ as receiver and try received packet from serial gateway.. and I will see ...

          hek what does't it mean if node debugging this : st=ok or st=fail ??
          if configure one node as repeater .. can I see debugging from repeating too???

          regards.

          hekH 1 Reply Last reply
          0
          • tbowmoT Offline
            tbowmoT Offline
            tbowmo
            Admin
            wrote on last edited by
            #9

            It depends on what kind of sensor you want to use. If the sensor can operate down to 1.9V, then you don't need boosters, as both arduino (8Mhz version) and radio can operate down to that voltage level (or there abouts).

            for a hint to a schematic, you could see this forum post

            Also, if arduino is running directly off the battery, you can use a trick with measuring the internal vREF compared VCC, and then calculate the battery voltage from that (no external resistors needed to monitor battery voltage):

            http://provideyourown.com/2012/secret-arduino-voltmeter-measure-battery-voltage/

            1 Reply Last reply
            0
            • D dzairo

              hi Hek .
              I use node with 2xAA batteries with 47uF capacitor (tantalum ).. if power ON node then in gateway received all what node send . and if debugging node then see st=ok. then I mean that packet transmit OK . if remove batteries then node can send packet form capacitor many time with out of batteries . in serial gateway I test many type capacitors .. 1500uF 6,3V special with low ESR .. and sill now working .. I try all check again .. I try set different board with nRF24L01+ as receiver and try received packet from serial gateway.. and I will see ...

              hek what does't it mean if node debugging this : st=ok or st=fail ??
              if configure one node as repeater .. can I see debugging from repeating too???

              regards.

              hekH Offline
              hekH Offline
              hek
              Admin
              wrote on last edited by
              #10

              @dzairo said:

              hek what does't it mean if node debugging this : st=ok or st=fail ??

              "st=fail" means that no ack was received after sending a package.

              A repeating node prints debug messages as well.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dzairo
                wrote on last edited by
                #11

                hek thanks .. but st=ok it's mean so gateway received packet and is ACK packet to node
                or only first device what receive packet from node answer ACK?

                what I mean.. node not see gateway only repeater .. send packet to repeater .. repeater send to gateway... and gateway answer ACK to repeater and repeater send to node ... or only repeater answer to node ACK ...but gateway not ...
                sk=ok is mean that target device receive packet and answer ACK ?
                I don't look to source code how it work..
                sorry .. but there is not manual or more information how MySensors working..
                because in packet is 4 argument = ACK .. my node send packet with ACK 0 then I don't know why gateway answer ACK .. .. this will be good explain ..

                if repeater debugging all air communication then must see command for request new node ID

                regards.

                1 Reply Last reply
                0
                • hekH Offline
                  hekH Offline
                  hek
                  Admin
                  wrote on last edited by
                  #12

                  "st=ok" is only inter-node ack by using the NRFs. hardware ack-feature.

                  The end-to-end ack is handled by MySensors library by sending a new message from the receiving node back to sender (when requested).

                  Please note that you should be in range of gateway when requesting id. There is a known bug when id-requests travels through repeaters (because of the use of 255 as temporary id which is also used for broadcasts). In the next version 254 will be used for as temp-id which should resolve this problem.

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dzairo
                    wrote on last edited by
                    #13

                    ehm...
                    then st=ok is only hardware ACK .. if node is connected directly to gateway then ACK is that gateway receive packet and respond ACK . but if node is connected to gateway trough repeater .. then repeater return hardware ACK ..but don't guarantee that gateway received packet..
                    OK.. understand this ..

                    for request new node ID .. yes .. understand repeater make problems in topology scheme ..

                    I tested binary switch and binary switch sleep sketch .. then I will try another .. I will test it ..

                    but if send node request for new ID to network .. how many time wait for new packet ??? may be we have problem to answer for this request in correct time .. or??? I understand that binary switch sleep node go sleep .. but other not .. or ???

                    I understand this .. every time if node send any data to network and node ID is 255 (auto) then send request for new ID .. if ID is normal (not auto ) then send packet as code need..
                    for example : presentation .. if node id is auto then not send real presentation packet .. but send new ID request .. ...

                    regards.

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      dzairo
                      wrote on last edited by
                      #14

                      Hi all...

                      This is important for all ...
                      Hek I find problem with manual node ID setting ..

                      Your code is optimized for ATmega328P 16Mhz - 115200 serial speed ..

                      and here is problem ... big problem !!

                      16MHz -115200 is in normal speed : 3.549% ERROR , and in double speed : 2.124% ERROR
                      with no calibrated 8Mhz internal RC oscilator is normal speed : 8.507% ERROR and in double speed : 3.549%

                      then in fact .. no problem to send data from MCU to PC .. problem send data from PC to MCU ..

                      solution :
                      for sensor node or repeater .. we don't need received data from UART .. then can use 115200 with internal RC oscilator ..
                      for serial gateway is need to send and received data from to MCU with controller .. then use scrystal 16Mhz (as orginal code ) or use better crystall : 7.3728Mhz , 11.0592Mhz , 14.7456Mhz ... with this crystall is ERROR 0% ... or use lower speed for serial gateway for example 38400bps ...

                      sorry for all .. but I'm not thinking about it .. and problem was all time in hardware ..
                      interesting is that if generate own bootloader for my node then first time I set 115200 bps speed and my software show error more then 8.5% ERROR ..and I must change speed to 38400 ...

                      now it's working .. if node send request for new ID then I send it

                      regards.

                      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