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
npkhoiN

npkhoi

@npkhoi
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • nRF24L01 - Interference
    npkhoiN npkhoi

    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.

    Troubleshooting

  • How to change sender, command, msg type, payload type, ... ?
    npkhoiN npkhoi

    @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.

    Troubleshooting

  • How to change sender, command, msg type, payload type, ... ?
    npkhoiN npkhoi

    @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 ?

    Troubleshooting

  • How to change sender, command, msg type, payload type, ... ?
    npkhoiN npkhoi

    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 :disappointed_relieved: Could you give me a link that shows how to change the message frame ?

    Troubleshooting

  • How to change sender, command, msg type, payload type, ... ?
    npkhoiN npkhoi

    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:
    https://www.youtube.com/watch?v=doz9mEtw_8g&feature=youtu.be

    Thank you very much.

    Troubleshooting
  • Login

  • Don't have an account? Register

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