如何利用透明转发实现连接乐鑫云

binary
Posts: 13
Joined: Tue Jun 14, 2016 2:58 pm

如何利用透明转发实现连接乐鑫云

Postby binary » Tue Jun 21, 2016 9:17 am

乐鑫:
您好!
当前我们正利用ESP8266方案做开发,现阶段想使用乐鑫云平台进行业务处理。
但考虑到后期需要使用自己的平台进行业务。
现阶段想直接利用中转处理,先将设备数据收发指向到我们的域名,然后转发至乐鑫云,业务层直接调用乐鑫云API。
待我们自己平台搭建好再直接重新指向。

遇到问题:设备能激活,在乐鑫云能看到。但设备会马上断开,不断重复下面过程(见打印信息)。请问什么原因及如何解决。
下面是设备端的打印信息。(直接连接乐鑫云,所有功能正常)

谢谢!

dhcp client start...
ip:192.158.1.50,mask:255.255.255.0,gw:192.158.1.1
user_esp_platform_dns_found X.X.X.X (X我们的域名对应IP)
user_esp_platform_connect
user_esp_platform_connect_cb
{"nonce": 1512832649, "path": "/v1/device/identify", "method": "GET","meta": {"Authorization": "token 设备key"}}

user_esp_platform_sent_cb
user_esp_platform_recv_cb {"nonce": 1512832649, "status": 200, "mdev_mac": "5CCF7F836840", "datetime": "2016-06-20 16:39:53", "device": {"productbatch_id": 0, "bssid": "5c:cf:7f:83:68:40", "ptype": 45772, "activate_status": 1, "serial": "UD100001", "id": 131126, "description": "desc-UD100001", "last_active": "2016-06-20 16:15:55", "rom_version": "b1.0.0t2655(a)", "last_pull": "2016-05-26 16:05:32", "last_push": "2016-05-26 16:05:32", "location": "", "last_activated_at": "2016-06-20 16:15:53", "metadata": "", "status": 1, "updated": "2016-06-20 16:15:55", "latest_rom_version": "b1.1.0t45772(a)", "activated_at": "2016-05-26 16:33:42", "visibly": 1, "is_private": 1, "product_id": 2655, "name": "UD100001", "created": "2016-05-26 16:05:32", "is_frozen": 0, "key_id": 155700}, "message": "device identified"}

user_esp_platform_discon_cb
user_esp_platform_reconnect
user_esp_platform_dns_found X.X.X.X (X我们的域名对应IP)
user_esp_platform_connect
user_esp_platform_connect_cb
{"nonce": 1298538959, "path": "/v1/device/identify", "method": "GET","meta": {"Authorization": "token token 设备key "}}

user_esp_platform_sent_cb
user_esp_platform_recv_cb {"nonce": 1298538959, "status": 200, "mdev_mac": "5CCF7F836840", "datetime": "2016-06-20 16:39:56", "device": {"productbatch_id": 0, "bssid": "5c:cf:7f:83:68:40", "ptype": 45772, "activate_status": 1, "serial": "UD100001", "id": 131126, "description": "desc-UD100001", "last_active": "2016-06-20 16:39:53", "rom_version": "b1.0.0t2655(a)", "last_pull": "2016-05-26 16:05:32", "last_push": "2016-05-26 16:05:32", "location": "", "last_activated_at": "2016-06-20 16:15:53", "metadata": "", "status": 1, "updated": "2016-06-20 16:39:53", "latest_rom_version": "b1.1.0t45772(a)", "activated_at": "2016-05-26 16:33:42", "visibly": 1, "is_private": 1, "product_id": 2655, "name": "UD100001", "created": "2016-05-26 16:05:32", "is_frozen": 0, "key_id": 155700}, "message": "device identified"}

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

Re: 如何利用透明转发实现连接乐鑫云

Postby ESP_Faye » Wed Jun 22, 2016 11:39 am

您好,

您可以抓包对比,直连连接乐鑫云和转发的数据包有什么差别,来进行查证。

感谢您对 ESP8266 的关注!

Who is online

Users browsing this forum: No registered users and 3 guests