BLE MESH console用例怎么跑起来
BLE MESH console用例怎么跑起来
BLE MESH console用例跑起来,除了开发板、串口线、小灯还需要什么外设吗?其次是输入命令行的窗口是不是执行idf build的窗口?最后就是能输入的命令行是否在ble_mesh_commands_README.md中,我尝试输入第一个Example: bmreg,显示没有此条命令?
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: BLE MESH console用例怎么跑起来
不需要,是的,是的。
终端上是这样的:
终端上是这样的:
Code: Select all
Type 'help' to get the list of commands.
Use UP/DOWN arrows to navigate through command history.
Press TAB when typing command name to auto-complete.
esp32>
esp32> bmreg
E (27066) ble_mesh_console: enter ble_mesh_register_cb
I (27076) ble_mesh_console: Bm:Reg,OK
esp32>
Re: BLE MESH console用例怎么跑起来
C:\Users\w00463922\Desktop\ble_mesh_console>bmreg
'bmreg' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Users\w00463922\Desktop\ble_mesh_console>esp32
'esp32' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
我的终端怎么是这样的?
'bmreg' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Users\w00463922\Desktop\ble_mesh_console>esp32
'esp32' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
我的终端怎么是这样的?
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: BLE MESH console用例怎么跑起来
你需要 idf.py flash monitor,在 esp32 的 console 里输入。
Re: BLE MESH console用例怎么跑起来
多谢,控制台已经可以输入了。还想请问下,通过控制台可以实现设备注册节点、配置模型、绑定key、设置地址等操作,我理解成设备入网是吧?那应该要按一定的顺序去执行命令行是吗,因为我在输入bmreg之后,再输入bminit -m 0x0001就卡住了,虽然有执行结果但是没有esp>出现。
如下:
E (167900) ble_mesh_console: enter ble_mesh_register_cb
I (167900) ble_mesh_console: Bm:Reg,OK
esp32> I (223570) ble_mesh_console: Bm:Init,OK
E (677950) BLE_MESH: No element found, addr 0x0001
E (677960) ble_mesh_console: Provisioner:AppKeyBind,Fail,-19
I (677960) ble_mesh_console: Provisioner:BindModel,OK
esp32>
后面再输入别的命令,比如bmpbind -a 0 -e 0x01 -m 0x1001 -n 0x00就失败了?
如下:
E (167900) ble_mesh_console: enter ble_mesh_register_cb
I (167900) ble_mesh_console: Bm:Reg,OK
esp32> I (223570) ble_mesh_console: Bm:Init,OK
E (677950) BLE_MESH: No element found, addr 0x0001
E (677960) ble_mesh_console: Provisioner:AppKeyBind,Fail,-19
I (677960) ble_mesh_console: Provisioner:BindModel,OK
esp32>
后面再输入别的命令,比如bmpbind -a 0 -e 0x01 -m 0x1001 -n 0x00就失败了?
Re: BLE MESH console用例怎么跑起来
这个用例需要几个开发板?开发板分别作为什么角色,是provisioner还是node?目的是完成provisioner和设备的入网配置?
-
- Posts: 132
- Joined: Thu Nov 15, 2018 2:06 am
Re: BLE MESH console用例怎么跑起来
基本:其中一个作为 provisioner ,其他作为 node。
你可以先从 ble mesh node 入手,了解 ble mesh
你可以先从 ble mesh node 入手,了解 ble mesh
Re: BLE MESH console用例怎么跑起来
比如两个开发板,两个开发板都烧录console的用例,分别使用命令行把一个配为provisioner,另一个配为node节点吗?
-
- Posts: 132
- Joined: Thu Nov 15, 2018 2:06 am
Re: BLE MESH console用例怎么跑起来
您使用 console 的目的是什么?如果是评估 Mesh,您可以先用 node server 和 provisioner 这两个示例,一个烧录 node,一个烧录 provisioner,相关说明在 Readme 可以找到。
示例目录:
1. examples/bluetooth/esp_ble_mesh/ble_mesh_node
2. examples/bluetooth/esp_ble_mesh/ble_mesh_provisioner
示例目录:
1. examples/bluetooth/esp_ble_mesh/ble_mesh_node
2. examples/bluetooth/esp_ble_mesh/ble_mesh_provisioner
Re: BLE MESH console用例怎么跑起来
单纯想跑这个用例,有些不明白这个用例的目的是什么?如果是把节点入网,直接点击app上的入网配置就可以了。
Who is online
Users browsing this forum: No registered users and 177 guests