Wiki source code of AllThingsTalk

Version 18.10 by Xiaoling on 2022/07/25 14:56

Hide last authors
Xiaoling 18.5 1 **~ Table of Contents:**
Xiaoling 1.1 2
Xiaoling 1.4 3 {{toc/}}
Xiaoling 1.1 4
Xiaoling 1.4 5
Xiaoling 18.5 6 = 1.  Introduction =
Xiaoling 1.1 7
Xiaoling 18.5 8
Xiaoling 1.2 9 (((
10 AllThingsTalk abstracts many different and usually complex IoT concepts into couple of simple to use entities. In this section you will find out more about AllThingsTalk domain model entities and how to use them within Maker web interface.
Xiaoling 18.5 11
12
Xiaoling 1.2 13 )))
Xiaoling 1.1 14
Xiaoling 6.2 15 [[image:image-20220526155728-1.png]]
Xiaoling 1.1 16
Xiaoling 6.2 17
Xiaoling 1.1 18
Xiaoling 18.5 19 = 2.  Create device =
20
21
Xiaoling 1.2 22 To create a device
Xiaoling 1.1 23
Xiaoling 1.2 24 * Go to the ground in which you want to create it and select the Devices tab on the left
25 * Click the large New device button
Xiaoling 1.1 26
Xiaoling 18.5 27
28
Xiaoling 6.2 29 [[image:image-20220526155758-2.png||height="415" width="1289"]]
Xiaoling 1.1 30
Xiaoling 16.2 31
Xiaoling 16.3 32
Xiaoling 1.2 33 * Select the type of device you want to create
34 * Select your LoRaWAN provider
Xiaoling 1.1 35
Xiaoling 18.6 36
37
Xiaoling 16.2 38 [[image:image-20220601094502-1.png]]
Xiaoling 1.1 39
Xiaoling 16.2 40
Xiaoling 17.2 41 [[image:image-20220601094716-2.png]]
Xiaoling 6.2 42
Xiaoling 16.5 43
44
Xiaoling 1.2 45 * Enter a name for your device
46 * Enter the DEVEUI
47 * Copy network token
Xiaoling 1.1 48
Xiaoling 18.7 49
50
Xiaoling 6.2 51 [[image:image-20220526160030-5.png]]
Xiaoling 1.1 52
Xiaoling 11.2 53
Xiaoling 1.1 54
Xiaoling 18.8 55 = 3.  Create a device in TTNv3 =
56
57
Xiaoling 1.2 58 * Users create devices in TTNv3 and join the network, and then enter integration.
59 * Enter network token
60
Xiaoling 18.8 61
62
Xiaoling 11.2 63 [[image:image-20220526160107-6.png||height="446" width="1089"]]
Xiaoling 1.2 64
65
Xiaoling 11.2 66 [[image:image-20220526160137-7.png]]
67
68
Xiaoling 1.2 69
Xiaoling 18.9 70 = 4.  Assets =
71
72
Xiaoling 1.3 73 (((
Xiaoling 1.2 74 Assets are active components that hold value about a measure, either in physical or virtual space.
Xiaoling 1.3 75 )))
Xiaoling 1.2 76
Xiaoling 1.3 77 (((
Xiaoling 1.2 78 Most important physical assets are sensors and actuators.
Xiaoling 1.3 79 )))
Xiaoling 1.2 80
81 * Create assets
82
Xiaoling 18.9 83
84
Xiaoling 11.2 85 [[image:image-20220526160223-8.png]]
Xiaoling 1.2 86
87
Xiaoling 11.2 88 [[image:image-20220526160246-9.png]]
Xiaoling 1.2 89
Xiaoling 11.2 90
91 [[image:image-20220526160325-10.png||height="527" width="1124"]]
92
Xiaoling 14.2 93
Xiaoling 1.2 94
Xiaoling 18.10 95 = 5.  Asset payload =
96
97
Xiaoling 1.3 98 (((
Xiaoling 18.10 99 ABCL stands for AllThingsTalk Binary Conversion Language , and it's a JSON-based, domain specific language, used for encoding and decoding of AllThingsTalk asset data to and from binary payloads. It gives you the freedom to specify your own decoding scheme on a per device level.
100
101
Xiaoling 1.3 102 )))
Xiaoling 1.2 103
Xiaoling 14.2 104 [[image:image-20220526160427-11.png||height="654" width="971"]]
Xiaoling 1.2 105
106
Xiaoling 18.2 107 [[image:image-20220601094924-3.png]]
Xiaoling 14.2 108
Xiaoling 1.3 109 (((
Xiaoling 1.2 110 If you want to know more about ABCL language, please click this link: [[https:~~/~~/docs.allthingstalk.com/developers/data/custom-payload-conversion/>>url:https://docs.allthingstalk.com/developers/data/custom-payload-conversion/]]
Xiaoling 14.2 111
Xiaoling 18.10 112
Xiaoling 14.2 113
Xiaoling 1.3 114 )))
Xiaoling 1.2 115
Xiaoling 18.10 116 = 6.  Debug device data =
Xiaoling 1.2 117
Xiaoling 18.10 118
Xiaoling 1.3 119 (((
Xiaoling 18.10 120 Sometimes devices stop working for one or another reason and you need to know what's going on. Also, many devices (e.g. Arduino) memory is small enough to discourage an attempt to log errors on the device itself. For that reason AllThingsTalk allows you to know if system successfully receives or encounters a problem with incoming data.
121
122
Xiaoling 1.3 123 )))
Xiaoling 1.2 124
Xiaoling 1.3 125 (((
Xiaoling 1.2 126 System logs a debug message whenever:
Xiaoling 1.3 127 )))
Xiaoling 1.2 128
Xiaoling 1.3 129 * (((
130 It receives binary data that has been successfully decoded (lorawan devices only)
131 )))
132 * (((
133 It receives binary data that cannot be decoded due to false conversion definition (lorawan devices only)
Xiaoling 18.10 134
135
136
Xiaoling 1.3 137 )))
Xiaoling 1.2 138
Xiaoling 14.2 139 [[image:image-20220526160601-13.png]]