Alexis Girard

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Sending triggered before Data -LoRa- Node-RED #19883
    Alexis Girard
    Participant

    Hi,

    I let my test run over the weekend and this first solution doesn’t seems to solve de problem. I still have about 8% of my message which get and empty string for a response.

    in reply to: Sending triggered before Data -LoRa- Node-RED #19877
    Alexis Girard
    Participant

    Hi Peter,

    My flow begins with a Lora input node.
    I’ll also try your proposition and see how it’s going. Thanks for you answer!

    in reply to: Empty Packet From the Gateway #19605
    Alexis Girard
    Participant

    The flow I’m using in Node-Red :
    (The one in the first message won’t be imported)

     [{"id":"aaed49fc.8415e8","type":"mqtt-broker","broker":"localhost","port":"1883","clientid":""},{"id":"e1afc6e3.f3bd98","type":"mqtt-broker","broker":"10.145.1.36","port":"1883","clientid":""},{"id":"568ea4ca.7304dc","type":"lora in","name":"","datatype":"utf8","x":328,"y":273,"z":"3abaccdb.89d6ac","wires":[["11a11f9d.a9fb4","e62ce779.58aa3","ce084f78.0b1768"]]},{"id":"a7b36fa2.74cb4","type":"lora out","name":"","eui":"","payload":"","ack":true,"port":"0","x":1076,"y":263,"z":"3abaccdb.89d6ac","wires":[]},{"id":"2e6d3069.5b252","type":"debug","name":"","active":true,"console":"false","complete":"payload","x":1069,"y":137,"z":"3abaccdb.89d6ac","wires":[]},{"id":"d6d2f744.120028","type":"mqtt out","name":"","topic":"mDot","qos":"","retain":"","broker":"e1afc6e3.f3bd98","x":1064,"y":204,"z":"3abaccdb.89d6ac","wires":[]},{"id":"14be1b82.7a757c","type":"function","name":"Reponse","func":"var nbr = msg.payload.substring(13);\nmsg.payload=\"Reponse_Test \";\nmsg.payload += nbr;\n\nreturn msg;","outputs":1,"noerr":0,"x":853,"y":263,"z":"3abaccdb.89d6ac","wires":[["a7b36fa2.74cb4","2e6d3069.5b252"]]},{"id":"ce084f78.0b1768","type":"mqtt out","name":"MQTT Clear Node","topic":"lora/00-80-00-00-00-00-d6-54/clear","qos":"","retain":"","broker":"aaed49fc.8415e8","x":602,"y":442,"z":"3abaccdb.89d6ac","wires":[]},{"id":"11a11f9d.a9fb4","type":"delay","name":"","pauseType":"delay","timeout":"500","timeoutUnits":"milliseconds","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":596,"y":202,"z":"3abaccdb.89d6ac","wires":[["14be1b82.7a757c","d6d2f744.120028"]]},{"id":"e62ce779.58aa3","type":"debug","name":"","active":true,"console":"false","complete":"true","x":600,"y":151,"z":"3abaccdb.89d6ac","wires":[]}] 
    
    
    
    
    • This reply was modified 6 years, 11 months ago by Alexis Girard.
    • This reply was modified 6 years, 11 months ago by Alexis Girard.
    • This reply was modified 6 years, 11 months ago by Alexis Girard.
    in reply to: Empty Packet From the Gateway #19604
    Alexis Girard
    Participant

    Hi Ajay,

    I’m using Class A. I understand what you are saying and it makes sense but most of the time my app works. For 1270 packets sent I only have received about 50 empty packets in my last test.

    So for now in Node-Red, when I received a Lora packet I cleared the “lora send” queue with the mqqt message. And after a delay I build a response with a number I get from the received packet and I sent it! My flow :

    [{“id”:”aaed49fc.8415e8″,”type”:”mqtt-broker”,”broker”:”localhost”,”port”:”1883″,”clientid”:””},{“id”:”e1afc6e3.f3bd98″,”type”:”mqtt-broker”,”broker”:”10.145.1.36″,”port”:”1883″,”clientid”:””},{“id”:”568ea4ca.7304dc”,”type”:”lora in”,”name”:””,”datatype”:”utf8″,”x”:328,”y”:273,”z”:”3abaccdb.89d6ac”,”wires”:[[“11a11f9d.a9fb4″,”e62ce779.58aa3″,”ce084f78.0b1768”]]},{“id”:”a7b36fa2.74cb4″,”type”:”lora out”,”name”:””,”eui”:””,”payload”:””,”ack”:true,”port”:”0″,”x”:1076,”y”:263,”z”:”3abaccdb.89d6ac”,”wires”:[]},{“id”:”2e6d3069.5b252″,”type”:”debug”,”name”:””,”active”:true,”console”:”false”,”complete”:”payload”,”x”:1069,”y”:137,”z”:”3abaccdb.89d6ac”,”wires”:[]},{“id”:”d6d2f744.120028″,”type”:”mqtt out”,”name”:””,”topic”:”mDot”,”qos”:””,”retain”:””,”broker”:”e1afc6e3.f3bd98″,”x”:1064,”y”:204,”z”:”3abaccdb.89d6ac”,”wires”:[]},{“id”:”14be1b82.7a757c”,”type”:”function”,”name”:”Reponse”,”func”:”var nbr = msg.payload.substring(13);\nmsg.payload=\”Reponse_Test \”;\nmsg.payload += nbr;\n\nreturn msg;”,”outputs”:1,”noerr”:0,”x”:853,”y”:263,”z”:”3abaccdb.89d6ac”,”wires”:[[“a7b36fa2.74cb4″,”2e6d3069.5b252”]]},{“id”:”ce084f78.0b1768″,”type”:”mqtt out”,”name”:”MQTT Clear Node”,”topic”:”lora/00-80-00-00-00-00-d6-54/clear”,”qos”:””,”retain”:””,”broker”:”aaed49fc.8415e8″,”x”:602,”y”:442,”z”:”3abaccdb.89d6ac”,”wires”:[]},{“id”:”11a11f9d.a9fb4″,”type”:”delay”,”name”:””,”pauseType”:”delay”,”timeout”:”500″,”timeoutUnits”:”milliseconds”,”rate”:”1″,”rateUnits”:”second”,”randomFirst”:”1″,”randomLast”:”5″,”randomUnits”:”seconds”,”drop”:false,”x”:596,”y”:202,”z”:”3abaccdb.89d6ac”,”wires”:[[“14be1b82.7a757c”,”d6d2f744.120028″]]},{“id”:”e62ce779.58aa3″,”type”:”debug”,”name”:””,”active”:true,”console”:”false”,”complete”:”true”,”x”:600,”y”:151,”z”:”3abaccdb.89d6ac”,”wires”:[]}]

    So if I understand well what you are telling this would never work. But it is, most of the time. And it’s a little bit strange that you should create the response before receiving a packet, no?

    Thank you a lot for your help again!
    Alexis

    in reply to: Empty LoRa send Buffer #19513
    Alexis Girard
    Participant

    Thanks a lot! I finally understand.

    Now I have to fix the fact that these packets are missed by my mDot even if it tells me that it successfully received it.

    But think I’ll do a new topic about that.

    Thanks again
    Alexis

    in reply to: Empty LoRa send Buffer #19493
    Alexis Girard
    Participant

    Thanks! it seems to be what I needed!

    But I’m not sure where I’m supposed to put this parameter, which node to use, and to which one I have to connect it.
    Or do I have to send a message on this topic from an mqtt server on my computer?

    Thanks a lot for your help!

Viewing 6 posts - 1 through 6 (of 6 total)