Mesh Send Error

SL!M
Posts: 22
Joined: Tue Dec 30, 2014 11:17 pm

Mesh Send Error

Postby SL!M » Mon Oct 05, 2015 5:21 pm

Hi,

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?

SL!M
Posts: 22
Joined: Tue Dec 30, 2014 11:17 pm

Re: Mesh Send Error

Postby SL!M » Mon Oct 12, 2015 2:27 pm

I need a reply please.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Mesh Send Error

Postby ESP_Faye » Mon Oct 12, 2015 6:42 pm

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

foad62

Re: Mesh Send Error

Postby foad62 » Mon Dec 07, 2015 3:57 pm

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

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Mesh Send Error

Postby ESP_Faye » Tue Dec 08, 2015 10:29 am

Hi,

Please have a try with ESPTOUCH to connect it.

Thanks for your interest in ESP8266 !

foad62

Re: Mesh Send Error

Postby foad62 » Tue Dec 08, 2015 7:52 pm

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

ESP_Alen

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.

ESP_Alen

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/

ESP_Alen

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