Mesh Send Error
Mesh Send Error
Postby SL!M » Mon Oct 05, 2015 5:21 pm
I have been testing the new mesh library, what does the error : "sta-2 wrong pkt:" mean?
Here's what I'm trying to do, both nodes are configured as ONLINE,one node is set as Parent and the other is a Child. The parent is connected to the WiFi(internet) the other device connects to the SSID created by the Parent node.
The Child is able to establish TCP connection with the remote sever on the internet using Mesh connect function "espconn_mesh_connect". Now when i try to send data to the server with "espconn_mesh_sent" function which returns 0, Succeed. But I get the error "sta-2 wrong pkt:".
Any ideas?
Re: Mesh Send Error
Postby ESP_Faye » Mon Oct 12, 2015 6:42 pm
The reason of this issue is that the packet format is illegal.
The packet format supported by current mesh is as follows:
1. unicast
{"mdev_mac":"mac_captal_hex_string", ...}\r\n
example: {"mdev_mac":"18FE34A53BAD", ...}\r\n
2. bcast
{"mdev_mac":"000000000000", ...}\r\n
Re: Mesh Send Error
Postby foad62 » Mon Dec 07, 2015 3:57 pm
I'm trying to setup the mesh_sdk_app_light example using the Mesh_User_Guide.
I was able to compile the mesh_sdk_app_light example using CHERTS DevKit and the flash it to the ESP8266-01. Then I installed the IOT_app on my android mobile phone. But the IOT_app can not detect the ESP8266 chip. I think the problem is that the ESP8266 chip is not connected to the router and I don't know how to set the router SSID and Pass in the mesh_sdk_app_light example. I would appreciate your help in advanced.
Re: Mesh Send Error
Postby foad62 » Tue Dec 08, 2015 7:52 pm
Thank you for your answer Faye,
Since I am a newbie I have some questions which are at the following:
1. By ESPTOUCH do you mean ESPTOUCH android app?
2. After flashing the mesh_sdk_app_light to the chip, I can not connect to the chip since the ESP8266 is not in AP mode anymore! So if I want my chip to be connected to the home router how this process is done!? I've studied the manual a few times but it's still unclear!
Thank you in advance
Re: Mesh Send Error
Postby ESP_Alen » Fri Mar 04, 2016 10:39 am
foad62 wrote:Hi,
Thank you for your answer Faye,
Since I am a newbie I have some questions which are at the following:
1. By ESPTOUCH do you mean ESPTOUCH android app?
2. After flashing the mesh_sdk_app_light to the chip, I can not connect to the chip since the ESP8266 is not in AP mode anymore! So if I want my chip to be connected to the home router how this process is done!? I've studied the manual a few times but it's still unclear!
Thank you in advance
Hi, We have released ESP_MESH_DEMO on github, please follow the steps of README to setup mesh network.
https://github.com/espressif/ESP8266_MESH_DEMO
You can use API(espconn_mesh_set_router) to set router information for mesh node, mesh node will connect router you set.
Re: Mesh Send Error
Postby ESP_Alen » Fri Mar 04, 2016 10:41 am
Espressif_Faye wrote:Hi,
The reason of this issue is that the packet format is illegal.
The packet format supported by current mesh is as follows:
1. unicast
{"mdev_mac":"mac_captal_hex_string", ...}\r\n
example: {"mdev_mac":"18FE34A53BAD", ...}\r\n
2. bcast
{"mdev_mac":"000000000000", ...}\r\n
Now, sep-mesh supports HTTP/JSON/BIN-STREAM/MQTT, please get document in ESP_MESH_DEMO/document/
Re: Mesh Send Error
Postby ESP_Alen » Fri Mar 04, 2016 10:46 am
foad62 wrote:Hi,
Thank you for your answer Faye,
Since I am a newbie I have some questions which are at the following:
1. By ESPTOUCH do you mean ESPTOUCH android app?
2. After flashing the mesh_sdk_app_light to the chip, I can not connect to the chip since the ESP8266 is not in AP mode anymore! So if I want my chip to be connected to the home router how this process is done!? I've studied the manual a few times but it's still unclear!
Thank you in advance
You can use API(espconn_mesh_seet_router) to set router information for mesh node, please get document from github
https://github.com/espressif/ESP8266_ME ... r/document
In addition, ESPTOUCH is functional module of our android APP.
Who is online
Users browsing this forum: No registered users and 189 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.