Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. npkhoi
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by npkhoi

    • nRF24L01 - Interference

      Hi everyone, at first I want to say sorry because I use another library to develop my network but I create a topic here.

      I would like to know that whether anyone using Mysensors library got the problem with Interference when using nRF24L01 ?

      It means the network will get stuck, the node can't join the network and the gateway can't recognise the node (for example: gateway can't send/receive message to/from node) for some minutes (sometimes 30 minutes) and it will run again after that. I used "scanner.ino" (a sample code from RF24 library) to test interference and I found that there was interference on the channel that I was using.

      I'm trying to find a solution for this issue. Recently, I change the channel manually in the code, but it's too inconvenient, I have to reupload the code each time I change the channel.

      Does anyone have experience with this issue ?

      Thank you for reading.

      posted in Troubleshooting
      npkhoi
      npkhoi
    • RE: How to change sender, command, msg type, payload type, ... ?

      @mfalkvidd I just want to use AirQualitySensor to send a random number to GatewaySerial (because I don't have an Air Sensor so I send a random number). That's exactly what I want to do now.

      posted in Troubleshooting
      npkhoi
      npkhoi
    • RE: How to change sender, command, msg type, payload type, ... ?

      @mfalkvidd I've read this link https://www.mysensors.org/download/sensor_api_20#message-constructor too, but I'm so confused what I have to do to change "255 - 255 - 255 - 255" to "2 - 2 - 0 - 0", I don't know what to do with the code in the link. Where do I have to change the code to configure the message frame ?

      posted in Troubleshooting
      npkhoi
      npkhoi
    • RE: How to change sender, command, msg type, payload type, ... ?

      Thank you martinhjelmare.
      I have read the page https://www.mysensors.org/download/serial_api_20 and I know the format of the message frame but I don't know how to change these things in the sketch . I spent a week trading code in the library and got nothing @@
      Maybe I'm so noob to fine the way to build just an example 😥 Could you give me a link that shows how to change the message frame ?

      posted in Troubleshooting
      npkhoi
      npkhoi
    • How to change sender, command, msg type, payload type, ... ?

      Hi everyone, I'm using UNO to build a Serial Gateway and Pro mini to build a sensor node. I use GatewaySerial and AirQualitySensor in Mysensors' example to test the code. I want to send continuously a random number from the AirQualitySensor to GatewaySerial. This is what appearing on my Serial Monitor:
      0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
      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
      0;255;3;0;9;TSP:MSG:READ 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
      0;255;3;0;9;TSP:MSG:BC
      0;255;3;0;9;TSP:MSG:FPAR REQ (sender=255)
      0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
      0;255;3;0;9;TSP:MSG:GWL OK
      0;255;3;0;9;TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=bc:0
      0;255;3;0;9;TSP:MSG:READ 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
      0;255;3;0;9;TSP:MSG:BC
      0;255;3;0;9;TSP:MSG:FPAR REQ (sender=255)
      0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
      0;255;3;0;9;TSP:MSG:GWL OK
      0;255;3;0;9;TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=bc:0
      0;255;3;0;9;TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
      255;255;3;0;3;

      Could you tell me how to change the structure of this line "0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=bc:0" like in this example:
      Building an IoT Humidity Sensor – 07:15
      — R Brown (4Crawler)

      Thank you very much.

      posted in Troubleshooting
      npkhoi
      npkhoi