Wiki source code of Connection to Senra
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | **~ Table of Contents:** | ||
2 | |||
3 | {{toc/}} | ||
4 | |||
5 | |||
6 | = 1. Introduction = | ||
7 | |||
8 | |||
9 | Here list some notice when connect to Senra. | ||
10 | |||
11 | |||
12 | = 2. Notice for Gateway = | ||
13 | |||
14 | |||
15 | ((( | ||
16 | After register an account in Senra, ask their support to approval your gateway: refer ths link [[https:~~/~~/docs.senraco.io/dev/gw/SemtechPacketForwarder/>>url:https://docs.senraco.io/dev/gw/SemtechPacketForwarder/]] for gateway instruction of Senra. | ||
17 | |||
18 | |||
19 | ))) | ||
20 | |||
21 | [[image:image-20220524181429-1.jpeg]] | ||
22 | |||
23 | |||
24 | Gateway Must be Approval | ||
25 | |||
26 | * The Gateway EUI must match the Approval Gateway EUI in above screen shot | ||
27 | * The keep alive status set to 300 seconds. Default 30 seconds is too short to Senra | ||
28 | |||
29 | |||
30 | [[image:image-20220524181455-2.png]] | ||
31 | |||
32 | |||
33 | Configure the Gateway with correct settings. | ||
34 | |||
35 | |||
36 | Gateway should be Active after have internet connection. like below: | ||
37 | |||
38 | [[image:image-20220526114401-1.png||height="395" width="1337"]] | ||
39 | |||
40 | Configure the Gateway with correct settings. | ||
41 | |||
42 | |||
43 | |||
44 | = 3. Notice for End node = | ||
45 | |||
46 | == 3.1 Set up for OTAA mode == | ||
47 | |||
48 | |||
49 | |||
50 | == 3.2 Set up for ABP Mode == | ||
51 | |||
52 | |||
53 | ((( | ||
54 | ((( | ||
55 | ABP Mode devices has to be IN868 frequency band as well, User can use ABP mode to update data. | ||
56 | ))) | ||
57 | ))) | ||
58 | |||
59 | ((( | ||
60 | ((( | ||
61 | For Dragino End Node, user can access to the device console and run AT Command "(% style="color:blue" %)**AT+NJM=0**(%%)" to set it to ABP mode. | ||
62 | ))) | ||
63 | ))) | ||
64 | |||
65 | ((( | ||
66 | ((( | ||
67 | User can know the keys by run (% style="color:blue" %)**AT+CFG**. | ||
68 | |||
69 | |||
70 | ))) | ||
71 | ))) | ||
72 | |||
73 | [[image:image-20220524181520-4.png]] | ||
74 | |||
75 | AT+CFG command output from End node | ||
76 | |||
77 | In Senra, need to create a ABP device | ||
78 | |||
79 | [[image:image-20220524181532-5.png]] | ||
80 | |||
81 | Create ABP Device | ||
82 | |||
83 | |||
84 | **(% style="color:blue" %)And input the keys:** | ||
85 | |||
86 | * **(% style="color:#037691" %)Device EUI : ** (%%) Use the value from AT+DEUI | ||
87 | * **(% style="color:#037691" %)Device ADDR:**(%%) Use the value from AT+DADDR | ||
88 | * **(% style="color:#037691" %)Application session key:** (%%) Use the value from AT+APPSKEY | ||
89 | * **(% style="color:#037691" %)Network Session Key:** (%%) Use the value from AT+NWKSKEY | ||
90 | |||
91 | [[image:image-20220524181549-6.png]] | ||
92 | |||
93 | Create ABP Device | ||
94 | |||
95 | |||
96 | After Successfule uplink, User will be to see the activity: | ||
97 | |||
98 | [[image:image-20220526114506-2.png]] | ||
99 | |||
100 | ABP Device Info |