background image

 

 

Browan Communications Inc. 

No.15-1, Zhonghua Rd., Hsinchu Industrial Park, 

Hukou, Hsinchu, Taiwan, R.O.C. 30352 

Tel: +886-3-6006899 

Fax: +886-3-5972970 

 

 

Copyright 2020 Browan Co., Ltd. 

17 

 

AWS & LoRa Setting 

Click "Configure AWS & LoRa Setting" to open setting page. 

 

 

 

 

 

 

Summary of Contents for MiniHub Pro

Page 1: ...mmunications Inc All Rights Reserved This document is for planning purposes only and is not intended to modify or supplement any specifications or warranties rel ating to products of Browan Communications Browan may make changes to specifications and descriptions at any time without notice Document Number BQW_02_0020 001 MiniHub Pro User Guide Version 1 6 ...

Page 2: ...Browan Communications Inc No 15 1 Zhonghua Rd Hsinchu Industrial Park Hukou Hsinchu Taiwan R O C 30352 Tel 886 3 6006899 Fax 886 3 5972970 Copyright 2020 Browan Co Ltd 1 ...

Page 3: ... Co Ltd 2 Index Index 2 Release History 3 About this Document 4 Required Equipment 4 Wiring Diagram 5 Software Package Requirement 6 Erase Flash and Upgrade Firmware 11 Erase flash 12 Firmware Upgrade 13 Monitor 14 Web Provision 15 Connect to Web GUI 15 AWS LoRa Setting 17 WiFi Setting 19 Station EUI Writing 20 LED Behavior 21 Reset to Default 22 OTA 23 Q A 31 ...

Page 4: ...Andrew Shiu Crux First release 2020 04 16 1 2 Jason Andrew Lin Andrew Shiu Crux Add Web GUI for AWS IoT provision Add Web GUI for Basic Station provision Add writing station EUI command Add LED behavior 2020 04 16 1 3 Jason Andrew Lin Andrew Shiu Crux Fix some typos 2020 05 27 1 4 Jason Andrew Lin Andrew Shiu Crux Add Q A 2020 06 22 1 5 Jason Joey Add OTA flow 2020 06 30 1 6 Jason Correct some wor...

Page 5: ...d 4 About this Document This document explains how to erase the MiniHub Pro flash Model Name TBMH110 how to upgrade new fi rmware and the WiFi behaviors after powering up The Web GUI usage for AWS IoT provision and Basic Stat ion provision Required Equipment MiniHub Pro USB Type C Breakout Board USB Type C Cable Linux machine We use Ubuntu 14 04 LTS in the document ...

Page 6: ... 30352 Tel 886 3 6006899 Fax 886 3 5972970 Copyright 2020 Browan Co Ltd 5 Wiring Diagram You must use the Type C breakout board provided by Browan to erase the flash or upgrade the firmware Please pay attention to the direction The label of the Type C breakout board is aligned with the word RESE T ...

Page 7: ...n_esptool v X Y tar gz which attached in this document and copy it to your Linux ma chine ls l rw rw r 1 vagrant vagrant 8896515 Jan 21 08 23 browan_esptool v2 0 tar gz Extract the tarball using the following command tar zxvf browan_esptool v2 0 tar gz ls l drwxrwxr x 4 vagrant vagrant 4096 Jan 21 08 21 browan_esptool v2 0 rw rw r 1 vagrant vagrant 8896515 Jan 21 08 23 browan_esptool v2 0 tar gz T...

Page 8: ... is a script to invoke esptool commands esptool provided by Amazon FreeRTOS images includes the firmware images released by Browan New firmware updates only need to update t his folder install_pkg sh is a script to install the required packages requirements txt is the python module require list for esptool In Ubuntu 14 04 LTS you need to install the following packages libssl dev libffi dev python ...

Page 9: ...an Communications Inc No 15 1 Zhonghua Rd Hsinchu Industrial Park Hukou Hsinchu Taiwan R O C 30352 Tel 886 3 6006899 Fax 886 3 5972970 Copyright 2020 Browan Co Ltd 8 cryptography 2 1 4 pyparsing 2 0 3 2 4 0 ...

Page 10: ...the guideline https www silabs com products development tools software usb to uart bridge vcp drivers If not you need to install the following packages linux modules extra uname r If you need to monitor the MiniHub Pro terminal screen on Linux you would need to add the user to the dialo ut group sudo usermod a G dialout USER The above installation and settings operations can be completed automatic...

Page 11: ...Browan Communications Inc No 15 1 Zhonghua Rd Hsinchu Industrial Park Hukou Hsinchu Taiwan R O C 30352 Tel 886 3 6006899 Fax 886 3 5972970 Copyright 2020 Browan Co Ltd 10 reboot ...

Page 12: ...o verify lsusb Bus 001 Device 001 ID 1d6b 0002 Linux Foundation 2 0 root hub Bus 002 Device 002 ID 10c4 ea60 Cygnal Integrated Products Inc CP210x UART Bridge myAVR mySm artUSB light Bus 002 Device 001 ID 1d6b 0001 Linux Foundation 1 1 root hub ls l dev ttyUSB crw rw 1 root dialout 188 0 Jan 21 09 03 dev ttyUSB0 You can use browan_esptool sh to do flash erasing and programming operations Please no...

Page 13: ...n command erase as parameter s 4 Power recycle after finish step 3 Here is the output of browan_esptool sh browan_esptool sh dev ttyUSB0 erase esptool py v2 8 dev Serial port dev ttyUSB0 Connecting Detecting chip type ESP32 Chip is ESP32D0WDQ5 revision 1 Features WiFi BT Dual Core 240MHz VRef calibration in efuse Coding Scheme None Crystal is 40MHz MAC 24 6f 28 3f 2e 18 Uploading stub Running stub...

Page 14: ...32D0WDQ5 revision 1 Features WiFi BT Dual Core 240MHz VRef calibration in efuse Coding Scheme None Crystal is 40MHz MAC 24 6f 28 3f 2e 18 Uploading stub Running stub Stub running Changing baud rate to 460800 Changed Configuring flash size Compressed 28224 bytes to 16081 Wrote 28224 bytes 16081 compressed at 0x00001000 in 0 4 seconds effective 618 0 kbit s Hash of data verified Compressed 3072 byte...

Page 15: ...ol sh and pass in the ttyUSB path and operation command monitor as paramet ers Here is the output of browan_esptool sh browan_esptool sh dev ttyUSB0 monitor idf_monitor on dev ttyUSB0 115200 Quit Ctrl Menu Ctrl T Help Ctrl T followed by Ctrl H esp32 If you don t want to use the monitor command provided by esptool You can use any terminal tool such as mini com screen picocom on Linux or use putty o...

Page 16: ...e device can run as WiFi AP mode or WiFi Station mode When the device in the initial state such as first b oot up time or after reset to default It will run with the WiFi AP mode That means it accepts any WiFi client t o connect to it You can find the SSID MiniHubPro XXXXXX in the WiFi site survey list The suffix 6 characters are the last 6 hex string of WiFi MAC address The password is in the bac...

Page 17: ...k Hukou Hsinchu Taiwan R O C 30352 Tel 886 3 6006899 Fax 886 3 5972970 Copyright 2020 Browan Co Ltd 16 After connected to MiniHubPro XXXXXX AP it will open the setup page If web page doesn t open automatic ally please using Firefox or Chrome to open 192 168 4 1 manually ...

Page 18: ...s Inc No 15 1 Zhonghua Rd Hsinchu Industrial Park Hukou Hsinchu Taiwan R O C 30352 Tel 886 3 6006899 Fax 886 3 5972970 Copyright 2020 Browan Co Ltd 17 AWS LoRa Setting Click Configure AWS LoRa Setting to open setting page ...

Page 19: ... C 30352 Tel 886 3 6006899 Fax 886 3 5972970 Copyright 2020 Browan Co Ltd 18 There are two parts one is for AWS and another one is for LoRa Please configure your setting and click the Save button at the bottom If you don t want to change any setting please click the Cancel button at the bott om ...

Page 20: ...l 886 3 6006899 Fax 886 3 5972970 Copyright 2020 Browan Co Ltd 19 WiFi Setting Choose one of the WiFi AP which you prefer to connect to the internet You also can add SSID manually by yo urself at this page After that the MiniHub Pro will store the connection information and switch to the WiFi St ation mode ...

Page 21: ...2 wifi_info WiFi MAC 24 6F 28 3F 2E 34 WiFi SSID MiniHubPro 3F2E34 WiFi PWD browan 3F2E34 Station SSID my_ssid Station PWD my_pwd esp32 opmode_conf 1 esp32 restart Note Station SSID is the connected WiFi Router s SSID Station PWD is the connected WiFi Router s Password Station EUI Writing You can write a Station EUI 6 bytes in HEX in CLI prompt esp32 lora_sync 80029cXXXXXX esp32 lora_sync loramac ...

Page 22: ...IFI_STA WiFi station connected establishing the connection to LNS configuring radio Green Solid WIFI_STA WiFi station connected Sta is connected to LNS radio liste ning Green Ora nge Blinking 1 4 sec WIFI_STA WiFi station connected CUPS transaction in progress Note Do not unplug device in this state Orange Blinking 1 4 sec CONFIG Scanning WiFi networks setting up configuration AP Orange Blinking 1...

Page 23: ... Copyright 2020 Browan Co Ltd 22 Reset to Default Press the reset button over 5 seconds to reset the system to default status After reset to default the orange LED will blink every 1 second You can also use restore_default command to reset to default in CLI prompt esp32 restore_default Restore to default Restore to default finished esp32 ...

Page 24: ...r update REF https docs aws amazon com freertos latest userguide dg ota bucket html 3 Create an OTA Update service role REF https docs aws amazon com freertos latest userguide create service role html 4 Create an OTA user policy REF https docs aws amazon com freertos latest userguide create ota user policy html If you use the Administrator user you can skip this step 5 Create a FreeRTOS OTA update...

Page 25: ...d Select the things name which configured to MiniHub Pro And click Next e Select the MQTT protocol f Select the Sign a new firmware image for me g Create a new Code signing profile Click Create Input the Profile name Select hardware platform ESP WROVER KIT Import the Certificate Certificate https drive google com file d 1SFUXl1uqm3OWOhDs5TyDo62jlqlksmGO view usp sharing ...

Page 26: ...ode signing certificate on device P11_CSK Click Create Next time you can select this profile directly h Upload the firmware Click Select Choose the bucket which store the firmware image Click Upload an image Upload the image file aws_demos bin i Input the pathname of firmware image on the device P11_CSK j Select IAM role for OTA update job Created at step 2 k Input the OTA job unique ID and click ...

Page 27: ...Browan Communications Inc No 15 1 Zhonghua Rd Hsinchu Industrial Park Hukou Hsinchu Taiwan R O C 30352 Tel 886 3 6006899 Fax 886 3 5972970 Copyright 2020 Browan Co Ltd 26 ...

Page 28: ...duled 30 1111 OTA Agent Task INFO MQTT 11110 MQTT connection 0x3ffef418 SUBSCRIBE operation 0x3fffbbbc Waiting for operation completion 31 1121 OTA Agent Task INFO MQTT 11210 MQTT connection 0x3ffef418 SUBSCRIBE operation 0x3fffbbbc Wait complete with result SUCCESS 32 1121 OTA Agent Task prvSubscribeToJobNotificationTopics OK aws things MiniHubPro 3D807C j obs next get accepted 33 1121 OTA Agent ...

Page 29: ...cted parameter filepath P11_CSK 48 1139 OTA Agent Task prvParseJSONbyModel Extracted parameter filesize 1312384 49 1139 OTA Agent Task prvParseJSONbyModel Extracted parameter fileid 0 50 1139 OTA Agent Task prvParseJSONbyModel Extracted parameter certfile P11_CSK 51 1139 OTA Agent Task prvParseJSONbyModel Extracted parameter sig sha256 ecdsa MEUCIQCl1u Q8fw 5qJbMeVJYGVbvXULR 52 1139 OTA Agent Task...

Page 30: ...acted parameter updatedBy 589826 47 1294 OTA Agent Task prvParseJSONbyModel Extracted parameter protocols MQTT 48 1294 OTA Agent Task prvParseJSONbyModel Extracted parameter streamname AFR_OTA 7bd6fc 8c d14f 4a3c 8789 08aee20d6cc4 49 1294 OTA Agent Task prvParseJSONbyModel Extracted parameter filepath P11_CSK 50 1294 OTA Agent Task prvParseJSONbyModel Extracted parameter filesize 1312384 51 1294 O...

Page 31: ...nt Task prvOTA_Close Context 0x0x3fffef90 61 1313 OTA Agent Task prvOTAAgentTask Called handler Current State WaitingForJob Event Recei vedJobDocument New state CreatingFile 62 1313 OTA Agent Task prvInSelfTestHandler prvInSelfTestHandler platform is in self test 63 1314 OTA Agent Task prvStartSelfTestTimer Starting OTA_SelfTest timer 64 1314 OTA Agent Task Received eOTA_JobEvent_StartTest callbac...

Page 32: ... vendors browan boards tb 300 components lora_gateway Where is Web GUI s source code Web GUI is base on esp32 wifi manager https github com tonyp7 esp32 wifi manager The path of esp32 w ifi manager is TOP_DIR vendors browan boards tb 300 components esp32 wifi manager Where is the entry point for LoRa Basic Station LoRa Basic Station s entry point is browan_cmd_station You can find this function ca...

Page 33: ... of the following measures Reorient or relocate the receiving antenna Increase the separation between the equipment and receiver Connect the equipment into an outlet on a circuit different from that to which the receiver is connected Consult the dealer or an experienced radio TV technician for help FCC Caution Any changes or modifications not expressly approved by the party responsible for complia...

Reviews: