Quantcast
Channel: The Things Network - Latest posts
Viewing all 116642 articles
Browse latest View live

Calculating the Latency for the Packets (TTN + Node-Red)

$
0
0

Good afternoon every one, following this topic Getting uplink metadata using Node-RED i was able to see the MetaData of the packets that i’m sending from TTN to Node-Red . I want to calculate the difference in time between the received packets so i can know the latency of the transmission , i don’t have any experience with Javascript ,but i tried to write some simple math operations but with no success , kindly i want to know how i can subtract the time of arrival of the previous packet from the time of arrival of the the latest received packet .

NodeRed_Issue


Calculating the Latency for the Packets (TTN + Node-Red)

Heltec CubeCell - part 2

$
0
0

Hello, thank you very much for your help. I did what you told me, I modified the channel mask (from 0x00FF to 0XFF00) and it worked perfectly. I can already see data traffic on the TTN console of the gateway and the device. Thanks to that I can move forward. Now if it’s not annoyance, I have more questions for you:

  1. What does the LoRaWAN sample code do exactly? How does it work? What does it perform?
  2. What is the difference between OTAA and ABP?
  3. Why if I work with OTAA connection in the TTN console of the device Frames up and Frames down are 0? When I work with ABP connection if they increase although unevenly? (Increase Frames down more than Frames up, 7 to 1).

Any information you can offer me will be of great help. Thank you again.

Heltec CubeCell - part 2

$
0
0

You can get the answers to those questions and more by attending the free LoRaWAN Acedemy.

Heltec CubeCell - part 2

Graphing data

$
0
0

Hi Qmick,
it deppends what you want, your skills and your butget.

AllThingsTalk Maker ttn intergration is easy and free.

For free, you can also install Grafana, pass your data into a database (eg with TTN http intergration-this need some work) and have some pretty dashboards. Grafana can update data automatically. You will need a static ip.

If you like to make an application with your data, i think that you have to make everything from scratch in order to be super flexible.

Calculating the time between two packets (TTN + Node-RED)

$
0
0

Just for those who are facing the same issue , i’d found a node which called (interval length node) that measure the time between 2 successive messages. you can read about this node in:
Interval length Node

the result on my flow was like:

Node-RED

Calculating the time between two packets (TTN + Node-RED)

$
0
0

Nice.

Just in case you need time handling later on: msg.metadata.time is a text string. Programming languages cannot automatically tell the difference from "2020-07-04T15:38:25.418218894Z" to, say, "Hello World". So you’ll first need to tell JavaScript the text denotes some date and time. For the ISO 8601 formatted text that TTN gives you that’s easy:

var previous = new Date("2020-07-04T15:38:25.418218894Z");
var current = new Date(msg.metadata.time);
var milliseconds = current - previous;
var seconds = milliseconds / 1000;
var hours = seconds / 3600;

Aside: this is not called “latency”. Latency is the time it takes for a packet to get from node to gateway (this is the calculated air time), then from gateway(s) to the network server and other TTN components, and finally up to your Node-RED application server. That kind of delay you cannot calculate as you don’t know anything about the accuracy of the clocks in all those systems. You may even get negative values then. But that’s not what you wanted anyway. “Interval” is a much better name!

Another aside, please don’t post code as images: it just adds a lot of unrelated details (even inactive code and comments; why even bother the readers with that?), it’s hard to view on small devices, it’s not searchable, and one cannot copy code out of an image.

Thanks for posting the solution!


Calculating the time between two packets (TTN + Node-RED)

Using community gateways for a commercial product

$
0
0

Apart from the technical knowledge that would be required, DDoS’ing LoRaWAN isn’t focused on any particularly user group as the perpetrator wouldn’t know precisely who was using it, so philosophically would probably be at student prank level. I’d think the mobile phone networks would be a more impactful target.

However this thread isn’t about naughty people, it’s about the wisdom of basing a commercial offering on the potentially ephemeral community gateway coverage in an area (town, region, country).

TTN Console stopped showing downlinks for TTIG

$
0
0

i found no use for ttnctl. but from UART I got at least a clue.

2020-07-05 09:35:29.180 [S2E:VERB] RX 867.5MHz DR2 SF10/BW125 snr=7.0 rssi=-73 xtime=0x2E0000066761C4 - updf mhdr=40 DevAddr=26012DC3 FCtrl=80 FCnt=729 FOpts=[] 0128E85D…266F mic=1335538791 (44 bytes)
2020-07-05 09:35:29.715 [SYS:DEBU] Free Heap: 18720 (min=16928) wifi=5 mh=7 cups=8 tc=4
2020-07-05 09:35:30.450 [S2E:DEBU] ::0 diid=28568 [ant#0] - next TX start ahead by 707ms471us
2020-07-05 09:35:30.718 [SYS:DEBU] Free Heap: 18720 (min=16928) wifi=5 mh=7 cups=8 tc=4
2020-07-05 09:35:31.148 [S2E:VERB] ::0 diid=28568 [ant#0] - starting TX in 19ms849us
2020-07-05 09:35:31.163 [S2E:INFO] TX ::0 diid=28568 [ant#0] - dntxed: 869.525MHz 27.0dBm ant#0(0) DR3 SF9/BW125 frame=A0C32D01268577020355FF00…DFDDEA94
2020-07-05 09:35:31.323 [S2E:DEBU] Tx done diid=28568

that TX started 1983ms, ended 2143ms after RX. LMIC default Downlink windows are 1+1 sec, I think. I’ll try to widen those. to see what happens.

Laird RG186 Factory Reset

$
0
0

I have a Laird RG186 and its been working but I need to do some troubleshooting and have forgotten the password (much to my annoyance). I have been looking around for how to do a factory reset and have followed the advice in the manual which does nothing.

I have tried pressing the user button for increments of 30 seconds, I have tried the same with the reset button held down. I have even read a 30/30/30 rule for Laird where its 30 seconds for the reset button in while power is on, then 30 seconds for power off and then 30 seconds with power on.

Has anyone out there got any clue on how to factory reset the thing?

Using community gateways for a commercial product

$
0
0

The “bottleneck” in the system is the actual gateway receive mechanism, which can work on a less than fully arbitrary combination of 8 potential packets arriving at various spreading factors on various frequencies (note the combinations do NOT necessarily all need to be on unique frequencies).

DOS’ing a gateway would be fairly simple; but also likely illegal as transmitting signals for the purpose of interference rather than to accomplish a legitimate purpose is banned essentially everywhere.

Given the limitation of the gateway, it should not be possible DOS the backhaul and servers if they are well designed as compared to most Internet-era data tasks the bandwidth of information that can fit through the gateways is fairly small. Attacks originating on the Internet are probably of more concern.

Laird RG186 Factory Reset

$
0
0

!!! I think you should use google better !!!
See manual on page 29 a https://assets.lairdtech.com/home/brandworld/files/Sentrius%20RG1xx%20User%20Guide%20v2_2.pdf

To factory reset the gateway back to default settings, complete the following steps:
Hold the user button while power is applied OR hold the user button while you press the reset button
(Figure 39).
Figure 39: Performing a factory reset
1 – User Button
2 – Reset Button
Continue to hold the user button until all the LEDs on the top begin to flash.
Once the LEDs start flashing, release the user button.
The factory defaults are applied, the gateway reboots, and it is ready to use.

Laird RG186 Factory Reset

$
0
0

Lol not to be rude but you should read the post better. Thats what I did… To quote myself which I must admit seems a bit pretentious:

“I have tried pressing the user button for increments of 30 seconds, I have tried the same with the reset button held down.”

How is that not is what is in the instructions?


Laird RG186 Factory Reset

$
0
0

But a power up with boot and hold the user button pressed till Hold the user button while power is applied, should be the way. Maybee longer then 30 seconds I don’t know.

Else go to the forum off support desk off https://www.lairdconnect.com/forum or faq or mail them self, they should help you with the right info.

Lgt-92 & Cayenne not working

$
0
0

hello,
i have a problem
i run lgt92 v1.60
the tracker is seen corectly on TTN running v1.5 payload decoder
butt it is nott seen corect on cayenne, the location is totaly different
any help would be appreciated
Capture2
Capture3
Capture4

Laird RG186 Factory Reset

$
0
0

I don’t know this gateway, but that’s not at all how I would interpret @jwijngaard’s quote. I’d say:

  1. Remove power
  2. Press and hold the User button
  3. Restore power while still holding down the User button
  4. Keep holding down the User button until all LEDs begin to flash
  5. Release the User button

Or:

  1. Press and hold the User button
  2. Press the Reset button while still holding down the User button
  3. Release the Reset button
  4. Keep holding down the User button until all LEDs begin to flash
  5. Release the User button

I don’t expect that to take more than a few seconds.

Laird RG186 Factory Reset

$
0
0

Interesting, I would have taken the instructions to mean ‘have the power on’ when they say “while power is applied”. It could be your interpretation however and I will give it a try. I must admit I was a little perplexed when it was suggested I should use google better with all the exclamations.

Graphing data

$
0
0

Thanks. I looked at UBI Dots and it’s $49/Mth which is out of my league.

Viewing all 116642 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>