BROAN MiniHub Pro Flash User Manual

June 7, 2024
Broan

MiniHub Pro Flash

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
Document Number BQW_02_0020.001
MiniHub Pro
User Guide
Version 1.6
2020 Browan Communications 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.

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

Index
Index Release History About this Document Required Equipment Wiring Diagram Software Package Requirement Erase Flash and Upgrade Firmware
Erase flash Firmware Upgrade Monitor Web Provision Connect to Web GUI AWS & LoRa Setting WiFi Setting Station EUI Writing LED Behavior Reset to Default OTA Q&A

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
2 3 4 4 5 6 11 12 13 14 15 15 17 19 20 21 22 23 31

Copyright 2020 Browan Co., Ltd.

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

Release History

Date 2020/01/21 2020/04/16 2020/04/16 2020/05/27

Version

Author

Jason Andrew Lin 1.1 Andrew Shiu Crux

Jason Andrew Lin 1.2 Andrew Shiu Crux

Jason Andrew Lin 1.3 Andrew Shiu Crux

Jason Andrew Lin 1.4 Andrew Shiu Crux

Comment
First release.
Add Web GUI for AWS IoT provision. Add Web GUI for Basic Station provision. Add writing station EUI command. Add LED behavior.
Fix some typos.
Add Q&A.

2020/06/22

Jason 1.5
Joey

Add OTA flow.

2020/06/30

1.6 Jason

Correct some wording Browan Official Release, add Document Number

Copyright 2020 Browan Co., Ltd.

3

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
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)

Copyright 2020 Browan Co., Ltd.

4

Wiring Diagram

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

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”.

Copyright 2020 Browan Co., Ltd.

5

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
Software Package Requirement
The original development tools are from Amazon FreeRTOS GitHub. To make it easier for non-developers to u pdate the firmware, Browan extracts the required parts and repackages them into browan_esptool.
Please refer to browan_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
The folders/files in browan_esptool/:
browan_esptool-v2.0/ |– browan_esptool.sh |– esptool | |– CONTRIBUTING.md | |– LICENSE | |– MANIFEST.in | |– README.md | |– ecdsa | |– espefuse.py | |– espsecure.py | |– esptool.py | |– flasher_stub | |– idf_monitor.py | |– pyaes | |– setup.cfg | |– setup.py

Copyright 2020 Browan Co., Ltd.

6

| – test |– images | |– aws_demos | |– aws_demos.bin | |– bootloader.bin | |– ecdsasigner.crt | |– ecdsasigner.key | |– ota_data_initial.bin | |– partition- table.bin |– storage.bin |– install_pkg.sh `– requirements.txt

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

browan_esptool.sh 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 python-pip python-setuptools python-serial python-pyparsing

And install the following packages using pip:

  • testresources setuptools pyserial>=3.0 * future>=0.15.2

Copyright 2020 Browan Co., Ltd.

7

  • cryptography>=2.1.4 * pyparsing>=2.0.3,<2.4.0

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.

8

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
MiniHub Pro uses the CP2102 chip as a USB-to-serial interface. Your system needs a correct driver.
Connect the MiniHub to the type-C breakout board and then connect it to your host Linux. Use the following c ommands to check whether the system automatically mounts the CP2012 driver.

$ lsmod | grep cp210x

cp210x

28672 0

usbserial

49152 2 pl2303,cp210x

If UART does not work well, download the “CP210x USB to UART Bridge VCP Drivers” from Silicon Labs o fficial website, and install the device driver following 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 automatically using the install_pkg.sh provided by Browan. To apply the installed drivers, please restart the system after executing install_pkg.sh.

$ cd browan_esptool-v2.0/
$ ls -l total 20 -rwxrwxr-x 1 andrew andrew 1081 Jan 21 16:21 browan_esptool.sh drwxrwxr-x 6 andrew andrew 4096 Jan 21 16:19 esptool drwxrwxr-x 2 andrew andrew 4096 Apr 16 11:44 images -rwxrwxr-x 1 andrew andrew 620 Jan 21 15:59 install_pkg.sh -rw-rw-r– 1 andrew andrew 434 Jan 21 14:37 requirements.txt
$ ./install_pkg.sh

Copyright 2020 Browan Co., Ltd.

9

$ reboot

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

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
Erase Flash and Upgrade Firmware
If your system installed correct CP2012 driver, when MiniHub Pro connects to the host Linux through USB, Li nux should automatically generate the corresponding /dev/ttyUSB? character-device. You can use the following command to 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 note that before executi ng an erase or program, you need to power off the device, then hold down the SETUP button and reconnect the USB power supply. The device will switch to flash download mode before executing browan_esptool.sh

Copyright 2020 Browan Co., Ltd.

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
Erase flash
1. Remove the USB power cable. 2. Press and hold the SETUP button and then reconnect the USB power cable. 3. Execute ./browan_esptool.sh and pass in the ttyUSB path and operation 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… Stub running… Changing baud rate to 460800 Changed. Erasing flash (this may take a while)… Chip erase completed successfully in 8.2s Hard resetting via RTS pin… $

Copyright 2020 Browan Co., Ltd.

12

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
Firmware Upgrade
1. Remove the USB power cable. 2. Press and hold the SETUP button and then reconnect the USB power cable. 3. Execute ./browan_esptool.sh and pass in the ttyUSB path and operation command “flash” as parameter
s. 4. Power recycle after finish the step 3.
Here is the output of browan_esptool.sh:
$ ./browan_esptool.sh /dev/ttyUSB0 flash 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… 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 bytes to 132… Wrote 3072 bytes (132 compressed) at 0x00008000 in 0.0 seconds (effective 2176.0 kbit/s)… Hash of data verified. Compressed 8192 bytes to 31… Wrote 8192 bytes (31 compressed) at 0x00016000 in 0.0 seconds (effective 14256.4 kbit/s)… Hash of data verified. Compressed 1336640 bytes to 807124… Wrote 1336640 bytes (807124 compressed) at 0x00020000 in 19.0 seconds (effective 563.3 kbit/s)… Hash of data verified.

Copyright 2020 Browan Co., Ltd.

13

Leaving… Hard resetting via RTS pin… $

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

Monitor
1. Power recycle. 2. Execute ./browan_esptool.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 on Windows.
The UART connection settings is: 115200-8-N-1

Copyright 2020 Browan Co., Ltd.

14

Web Provision

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

Connect to Web GUI
The 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 back label.

Copyright 2020 Browan Co., Ltd.

15

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
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.

Copyright 2020 Browan Co., Ltd.

16

AWS & LoRa Setting
Click “Configure AWS & LoRa Setting” to open setting page.

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

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
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.

Copyright 2020 Browan Co., Ltd.

18

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
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.

Copyright 2020 Browan Co., Ltd.

19

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
You can also set connection information and switch to WiFi Station mode in CLI prompt:
esp32> wifi_conf my_ssid my_pwd esp32> 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 from nvs= 80029cXXXXXX
After writing the EUI, you should restart the device to apply the setting.

Copyright 2020 Browan Co., Ltd.

20

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

LED Behavior

Colors

Blink Pattern

Mode

Status

Green Blinking 1 sec WIFI_STA WiFi station not connected

Green

Blinking 1/4 sec

WiFi station connected, establishing the connection to LNS, WIFI_STA
configuring radio

Green

Solid

WiFi station connected, Sta is connected to LNS, radio liste WIFI_STA
ning

Green/ Ora Blinking 1/4 sec
nge

WiFi station connected, CUPS transaction in progress WIFI_STA Note: Do not unplug device in this state

Orange Blinking 1/4 sec CONFIG Scanning WiFi networks, setting up configuration AP

Orange Blinking 1 sec

CONFIG

Note:

WIFI_STA is WiFi Station Mode

CONFIG is Configuration Mode

Configuration AP active

Copyright 2020 Browan Co., Ltd.

21

Reset to Default

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

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>

Copyright 2020 Browan Co., Ltd.

22

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
OTA
1. Please register things for MiniHub Pro on the AWS IoT and configure the AWS & LNS Setting.

2. Create an Amazon S3 bucket to store your 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 job
a. Go to “IoT Core” service. b. Go to “Manage Jobs” and click the “Create” button. c. Select “Create OTA update job”

Copyright 2020 Browan Co., Ltd.

23

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
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

Copyright 2020 Browan Co., Ltd.

24

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
Certificate private key:
https://drive.google.com/file/d/1EavG36gmL3cdkQxqTrTZIWTjDPm4Mmz4/view?usp=sharing
– Input the Pathname of code 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 the “Create” button. l. You can find the successfully created job message.
m. The OTA job status is “Queued”

Copyright 2020 Browan Co., Ltd.

25

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

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
6. Now please power on the MiniHub Pro. To trigger the OTA job process.
Current App Version: 20200601_TB-300_release Application information: Project name: esp-idf App version: 20200601_TB-300_release Compile time: Jun 1 2020 17:55:15 ELF file SHA256: 6208adb82674992c… ESP-IDF: v3.3-163-g601a03e
Current OTA Version: 0.9.2
12 621 [iot_thread] INFO: NVS> iot_thing_name = [MiniHubPro-3D807C] 13 621 [iot_thread] OTA Version 0.9.2
Start OTA Job:
28 1111 [OTA Agent Task] [prvOTAAgentTask] Called handler. Current State [Ready] Event [Start] New st ate [RequestingJob] 29 1111 [OTA Agent Task] [INFO ][MQTT][11110] (MQTT connection 0x3ffef418) SUBSCRIBE operation scheduled. 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 Task] [INFO ][MQTT][11210] (MQTT connection 0x3ffef418) SUBSCRIBE operation scheduled. 34 1121 [OTA Agent Task] [INFO ][MQTT][11210] (MQTT connection 0x3ffef418, SUBSCRIBE operation 0x3fffbbbc) Waiting for operation completion. 35 1131 [OTA Agent Task] [INFO ][MQTT][11300] (MQTT connection 0x3ffef418, SUBSCRIBE operation 0x3fffbbbc) Wait complete with result SUCCESS. 36 1131 [OTA Agent Task] [prvSubscribeToJobNotificationTopics] OK: $aws/things/MiniHubPro- 3D807C/j obs/notify-next 37 1131 [OTA Agent Task] [prvRequestJob_Mqtt] Request

0 38 1131 [OTA Agent Task] [INFO ][MQTT][11310] (MQTT connection 0x3ffef418)

MQTT PUBLISH oper ation queued.

Copyright 2020 Browan Co., Ltd.

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
39 1131 [OTA Agent Task] [INFO ][MQTT][11310] (MQTT connection 0x3ffef418, PUBLISH operation 0x 3fffbbbc) Waiting for operation completion. 40 1138 [OTA Agent Task] [INFO ][MQTT][11380] (MQTT connection 0x3ffef418, PUBLISH operation 0x 3fffbbbc) Wait complete with result SUCCESS. 41 1138 [OTA Agent Task] [prvOTAAgentTask] Called handler. Current State [RequestingJob] Event [Requ estJobDocument] New state [WaitingForJob] 42 1139 [OTA Agent Task] [prvParseJobDoc] Size of OTA_FileContext_t [64] 43 1139 [OTA Agent Task] [prvParseJSONbyModel] Extracted parameter [ clientToken: 0:MiniHubPro-3D8 07C ] 44 1139 [OTA Agent Task] [prvParseJSONbyModel] Extracted parameter [ jobId: AFR_OTA-minihubpro_ot a_demo_0001 ] 45 1139 [OTA Agent Task] [prvParseJSONbyModel] Extracted parameter [ protocols: [“MQTT”] ] 46 1139 [OTA Agent Task] [prvParseJSONbyModel] Extracted parameter [ streamname: AFR_OTA- 7bd6fc 8c-d14f-4a3c-8789-08aee20d6cc4 ] 47 1139 [OTA Agent Task] [prvParseJSONbyModel] Extracted 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] [prvParseJobDoc] Job was accepted. Attempting to start transfer.
Downloaded and verified:
1182 3338 [OTA Agent Task] [prvIngestDataBlock] Received final expected block of file. 1183 3338 [OTA Agent Task] [prvStopRequestTimer] Stopping request timer. 1184 3341 [OTA Agent Task] [INFO ][DEMO][33410] Entering get_item_from_nvs with [P11_CSK] 1185 3341 [OTA Agent Task] [INFO ][DEMO][33410] Non-Volatile Storage (NVS) handle…[22] 1186 3341 [OTA Agent Task] [INFO ][DEMO][33410] Length of the [P11_CSK] is: [365] 1187 3351 [OTA Agent Task] [INFO ][DEMO][33510] Leaving get_item_from_nvs 1188 3351 [OTA Agent Task] [prvIngestDataBlock] File receive complete and signature is valid. 1189 3351 [OTA Agent Task] [prvStopRequestTimer] Stopping request timer. 1190 3351 [OTA Agent Task] [prvUpdateJobStatus_Mqtt] Msg: {“status”:”IN_PROGRESS”,”statusDetails”: {“self_test”:”ready”,”updatedBy”:”0x90002″}}
Upgraded App Version: 20200616_TB-300_release

  • Application information:

Copyright 2020 Browan Co., Ltd.

28

  • Project name: esp-idf App version: 20200616_TB-300_release Compile time: Jun 16 2020 11:31:12 AWS APP Version: 0.9.4 ELF file SHA256: 2af7743e892cd34e… * ESP-IDF: v3.3-163-g601a03e

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

Upgraded OTA Version: 0.9.4 12 773 [iot_thread] INFO: NVS> iot_thing_name = [MiniHubPro-3D807C] 13 773 [iot_thread] OTA Version 0.9.4

Update the “SUCCEEDED” message to AWS IoT:
42 1293 [OTA Agent Task] [prvParseJobDoc] Size of OTA_FileContext_t [64] 43 1294 [OTA Agent Task] [prvParseJSONbyModel] Extracted parameter [ clientToken: 0:MiniHubPro-3D8 07C ] 44 1294 [OTA Agent Task] [prvParseJSONbyModel] Extracted parameter [ jobId: AFR_OTA-minihubpro_ot a_demo_0001 ] 45 1294 [OTA Agent Task] [prvParseJSONbyModel] Identified parameter [ self_test ] 46 1294 [OTA Agent Task] [prvParseJSONbyModel] Extracted 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 [OTA Agent Task] [prvParseJSONbyModel] Extracted parameter [ fileid: 0 ] 52 1294 [OTA Agent Task] [prvParseJSONbyModel] Extracted parameter [ certfile: P11_CSK ] 53 1294 [OTA Agent Task] [prvParseJSONbyModel] Extracted parameter [ sig-sha256-ecdsa: MEUCIQCl1u Q8fw/5qJbMeVJYGVbvXULR… ] 54 1294 [OTA Agent Task] [prvParseJobDoc] In self test mode. W (13260) ota_pal: Set image as testing! 55 1305 [OTA Agent Task] [prvUpdateJobStatus_Mqtt] Msg: {“status”:”IN_PROGRESS”,”statusDetails”:{“s elf_test”:”active”,”updatedBy”:”0x90004″}} 56 1305 [OTA Agent Task] [INFO ][MQTT][13050] (MQTT connection 0x3fff979c) MQTT PUBLISH oper ation queued. 57 1306 [OTA Agent Task] [INFO ][MQTT][13060] (MQTT connection 0x3fff979c, PUBLISH operation 0x 3fffc000) Waiting for operation completion.

Copyright 2020 Browan Co., Ltd.

29

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
58 1312 [OTA Agent Task] [INFO ][MQTT][13120] (MQTT connection 0x3fff979c, PUBLISH operation 0x 3fffc000) Wait complete with result SUCCESS. 59 1312 [OTA Agent Task] [prvUpdateJobStatus_Mqtt] ‘IN_PROGRESS’ to $aws/things/MiniHubPro- 3D80 7C/jobs/AFR_OTA-minihubpro_ota_demo_0001/update 60 1313 [OTA Agent 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 callback from OTA Agent. 65 1322 [OTA Agent Task] [prvStopSelfTestTimer] Stopping the self test timer. 66 1322 [OTA Agent Task] [prvUpdateJobStatus_Mqtt] Msg: {“status”:”SUCCEEDED”,”statusDetails”:{“rea son”:”accepted v0.9.4″}}
7. Go to AWS IoT to check the status. The status is “Succeeded”

Copyright 2020 Browan Co., Ltd.

30

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
Q&A
Where is the LoRa gateway library?
LoRa gateway library is a library to control Semtech LoRa multi-channel RF receiver. The path of the LoRa gat eway library is: $TOP_DIR/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 call at the end of lora_bas ic_station_demo.c. The path of lora_basic_station_demo.c is: $TOP_DIR/demos/lora_basic_station/lora_basic_station_demo.c

Copyright 2020 Browan Co., Ltd.

31

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

Federal Communication Commission Interference Statement

This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Par

t 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference i

n a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not ins

talled and used in accordance with the instructions, may cause harmful interference to radio communications. H

owever, there is no guarantee that interference will not occur in a particular installation. If this equipment does c

ause harmful interference to radio or television reception, which can be determined by turning the equipment of

f and on, the user is encouraged to try to correct the interference by one 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 compliance co uld void the user’s authority to operate this equipment. This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) T his device may not cause harmful interference, and (2) this device must accept any interference received, includ ing interference that may cause undesired operation.

IMPORTANT NOTE: Radiation Exposure Statement:

This equipment complies with FCC radiation exposure limits set forth for an uncontrolled environment. This eq uipment should be installed and operated with minimum distance 20cm between the radiator & your body.

This transmitter must not be co-located or operating in conjunction with any other antenna or transmitter.

Country Code selection feature to be disabled for products marketed to the US/CANADA

Copyright 2020 Browan Co., Ltd.

32

Read User Manual Online (PDF format)

Read User Manual Online (PDF format)  >>

Download This Manual (PDF format)

Download this manual  >>

Related Manuals