Show last authors
1 (% class="wikigeneratedid" %)
2 **Table of Contents:**
3
4 {{toc/}}
5
6
7
8
9 = 1. NB ST-BC660K-GL base Hardware =
10
11
12 Below hardware use NB ST -BC660K-GL module. They support UART Access for AT Command and Firmware Upgrade.
13
14 {{velocity}}
15 $xwiki.ssfx.use("js/xwiki/table/table.css")
16 $xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
17 {{/velocity}}
18
19 (% border="1" cellspacing="5" class="doOddEven filterable grid sortable" id="tableid" style="background-color:#f2f2f2; width:869px" %)
20 (% class="sortHeader" %)|=(% style="width: 291px; background-color: rgb(217, 226, 243);" %)Models|=(% style="width: 136px; background-color: rgb(217, 226, 243);" %)**Mother Board**|=(% style="width: 100.483px; background-color: rgb(217, 226, 243);" %)**UART Wiring**|=(% style="width: 339.517px; background-color: rgb(217, 226, 243);" %)**UART for Upgrade Firmware**
21 |(% style="width:291px" %)PS-NB, PS-NB-NA, SDI12-NB|(% style="width:136px" %)SIB|(% style="width:100.483px" %)[[Instruction>>||anchor="H2.2SIBmotherboard"]] |(% style="width:339.517px" %)[[Instruction>>||anchor="H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29"]]
22 |(% style="width:291px" %)(((
23 SN50v3-NB, S31-NB, S31B-NB, D20-NB. D20S-NB, D21-NB, D22-NB, DS03A-NB,
24 )))|(% style="width:136px" %)SN50v3|(% style="width:100.483px" %)[[Instruction>>||anchor="H2.1SN50v3basemotherboard"]]|(% style="width:339.517px" %)[[Instruction>>||anchor="H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29"]]
25 |(% style="width:291px" %)(((
26 RS485-NB, SE01-NB, SPH01-NB, LMS01-NB, LDS12-NB, LDS40-NB, DDS75-NB, DDS45-NB, DDS04-NB, DDS20-NB, MDS120-NB, MDS200-NB, WSC2-NB
27 )))|(% style="width:136px" %)RS485-BL|(% style="width:100.483px" %)[[Instruction>>||anchor="H2.3RS485-BLbasemotherboard"]]|(% style="width:339.517px" %)[[Instruction>>||anchor="H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29"]]
28
29 = 2. Hardware Wiring for UART =
30
31 Connection Structure:
32
33 [[image:image-20240316235825-1.png||height="157" width="738"]]
34
35 == 2.1 SN50v3 base mother board ==
36
37 [[image:微信图片_20230810085700.jpg||height="633" width="817"]]
38
39
40 == 2.2 SIB mother board ==
41
42 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/WebHome/image-20221224171304-3.png?width=863&height=545&rev=1.1||alt="image-20221224171304-3.png" height="545" width="863"]]
43
44
45 == 2.3 RS485-BL base mother board ==
46
47 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/WebHome/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20230809144604.jpg?width=791&height=673&rev=1.1||alt="微信图片_20230809144604.jpg" height="673" width="791"]]
48
49
50
51 = 3. UART for AT Commands =
52
53
54 (% class="lead" id="H3.1GeneralsoftwaresetupforATCommandsviaUART" %)
55 (% style="color:blue" %)**Step1:**(%%) Connect UART Interface & Set to Flash Mode
56
57 (% class="lead" %)
58 (% style="color:blue" %)**Step2:**(%%) Use Serial Utility to connect
59
60 * 1. Use a general serial tool. Download **[[Serial Port Utility>>https://serialport.en.softonic.com/]]**
61 * 2. Set up serial tool with : BaudRate: 9600, databit:8, No parity, No flow control.
62 * 3. The AT Command Password is printed as AT PIN in the sticker on the giftbox.
63
64 **Example:**
65
66 [[image:image-20240203205807-1.png]]
67
68
69 [[image:image-20240217102816-1.png]]
70
71
72 Notice: When Input AT Command. Please add a new line:
73
74 [[image:image-20240217103108-2.png||height="565" width="728"]]
75
76
77 = 4. Firmware Upgrade =
78
79 == 4.1 Check Your device already has bootloader ==
80
81 === 4.1.1 Firmware Structure ===
82
83 The -NB/-NS firmware structure is as below:
84
85
86
87 === 4.1.2 What is Dragino Bootloader for NB-IoT Model? ===
88
89
90 Dragino NB Bootloader is a bootloader which support below features:
91
92 * OTA Update via BLE
93 * OTA Batch update configure via BLE (Not Finished)
94
95 All Dragino End Devices which support BLE module are shipped with the NB Bootloader.
96
97
98 === 4.1.3 How can i know if my device already have bootloader? ===
99
100
101 If a device has a bootloader. it will output bootloader info to UART when boot. As below:
102
103 [[image:image-20240203171322-1.png]]
104
105
106 === 4.1.4 How to upload bootloader to device? ===
107
108
109 If your is NB ST -BC660K-GL base hardware but doesn't have bootloader or The bootloader is erased by mistake. You can upload a bootloader to it. ( This instruction works no matter the device has bootloader or not)
110
111 **[[Downlink Link for NB-IoT BLE bootloader>>https://www.dropbox.com/scl/fo/yr8vmzoc8eurebj3sban8/h?rlkey=6gmzx592c7x0r13oo034fcw3z&dl=0]].**
112
113
114 (% class="lead" %)
115 (% style="color:blue" %)**Step1:**(%%) download [[STM32 Cubeprogramer>>url:https://www.st.com/en/development-tools/stm32cubeprog.html#get-software]]
116
117 (% class="lead" %)
118 (% style="color:blue" %)**Step2:**(%%) Connect wires to Device's UART interface & Set Device to ISP mode
119
120 See UART Connection method for each device.
121
122 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/WebHome/image-20240202115041-1.png?width=590&height=303&rev=1.1||alt="image-20240202115041-1.png" height="303" width="590"]]
123
124
125 (% class="lead" %)
126 (% style="color:blue" %)**Step3:**(%%) Use STM32 Cube to Connect Device
127
128 (% style="color:red" %)**Note: Before clicking the "Connect", users need to press the reset button to reset the node, otherwise the connection may be incorrect**, (%%)for example:
129
130 [[image:image-20240514103635-3.png||height="574" width="985"]]
131
132
133 **Successful connection:**
134
135 [[image:image-20240514103315-1.png||height="574" width="984"]]
136
137
138 (% class="lead" %)
139 (% style="color:blue" %)**Step4:**(%%) Choose NB Bootloader and Start Programming
140
141 [[image:image-20240514104334-4.png||height="550" width="941"]]
142
143 [[image:image-20240514104459-5.png||height="551" width="945"]]
144
145 (% class="lead" %)
146 (% style="color:blue" %)**Step5:**(%%) Verify Programming
147
148 [[image:image-20240514104832-6.png||height="548" width="946"]]
149
150
151 (% class="lead" %)
152 (% style="color:blue" %)**Step6:**(%%) Switch Jumper from ISP to Flash mode
153
154
155 == 4.2 Update Firmware (Assume the device already have a bootloader) ==
156
157
158 (% class="lead" %)
159 (% style="color:blue" %)**Step1:**(%%) Download [[STM32 Cubeprogramer>>url:https://www.st.com/en/development-tools/stm32cubeprog.html#get-software]]
160
161 (% class="lead" %)
162 (% style="color:blue" %)**Step2:**(%%) Connect wires to Device's UART interface & Set Device to ISP mode
163
164 See UART Connection method for each device.
165
166 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/WebHome/image-20240202115041-1.png?width=590&height=303&rev=1.1||alt="image-20240202115041-1.png" height="303" width="590"]]
167
168
169 (% class="lead" %)
170 (% style="color:blue" %)**Step3:**(%%) Use STM32 Cube to Connect Device
171
172 (% style="color:red" %)**Note: Before clicking the "Connect", users need to press the reset button to reset the node, otherwise the connection may be incorrect**, (%%)for example:
173
174 [[image:image-20240514103635-3.png||height="606" width="1040"]]
175
176
177 **Successful connection:**
178
179 [[image:image-20240514105302-7.png||height="595" width="1035"]]
180
181
182 (% class="lead" %)
183 (% style="color:blue" %)**Step4:**(%%) Choose NB firmware and Start Programming
184
185 (% class="lead" %)
186 NB Firmware download address: [[NB-IoT - Dropbox>>url:https://www.dropbox.com/sh/sxrgszkac4ips0q/AADkCgZKS_Rl9dRG4TQiM6BKa/NB-IoT?e=2&subfolder_nav_tracking=1&dl=0]].  (% class="mark" %)**.hex**(%%) &(% class="mark" %)**.bin**(%%)files can be burned directly.
187
188 [[image:image-20240514110241-8.png||height="595" width="1023"]]
189
190 [[image:image-20240514110349-9.png||height="591" width="1022"]]
191
192 (% class="lead" %)
193 (% style="color:blue" %)**Step5:**(%%) Verify Programming
194
195 [[image:image-20240514110514-10.png||height="589" width="1023"]]
196
197
198 (% class="lead" %)
199 (% style="color:blue" %)**Step6:**(%%) Switch Jumper from ISP to Flash mode
200
201
202 = 5. FAQ =
203
204 == 5.1 What is the difference between .hex and .bin file? ==
205
206 When compile the firmware, there will be two files .hex and .bin. they are different:
207
208 * .bin : original firmware file. When use .bin file and update in STM32Cube, you need to specify the start address.
209 * .hex : file with control / meta info. When use .hex file and update in STM32Cube, you don't need to specify the start address. They are included in the file so hex file is bigger in size but actually firmware are the same\
210
211 == 5.2 How to use PC to send UART command to NB-IoT Module directly? ==
212
213 The default UART Connection as per above instruction is as below. PC is communicating with the MCU instead of NB-IoT Module.
214
215 [[image:image-20240317000017-2.png||height="139" width="653"]]
216
217
218 User can use MCU to pass AT Commands to NB-IoT modules. But in some case, we want the PC to communicate with NB-IoT module directly for advance debugging.
219
220 Structure like below:
221
222 [[image:image-20240317000542-3.png||height="196" width="651"]]
223
224 To do above, below are the step:
225
226 1. Upload a none-working firmware in the MCU STM32L072. So the STM32L072 will not send any AT Command to NB-IoT module to avoid conflict when you use PC to communicate with NB-Iot Module.
227 1. Connect PC to the TXD/RXD/GND pins of NB-IoT module BC660K-GL directly via USB to TTL adapter. Below is the location for the pins:
228
229 [[image:image-20240317001149-4.png||height="424" width="804"]]
230
231
232 Reference: [[**BC660K-GL Module AT Commands & Software Document**>>https://www.dropbox.com/scl/fo/gqphhnxbbsbbixjeb9onc/h?rlkey=xttdj8puf58gxws85fqvpz57l&dl=0]].
233
234
235
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0