物联网套件,C-SDK
使用版本:华东2站点 版本V2.0
问题描述:
在x86上编译,例程执行正常。登录IOT后台查看,设备在线;交叉编译移植到arm板子上,运行例程报错。打印如下:
[root@OBU2 ~]# /home/mqtt-example loop
[inf] iotx_device_info_init(40): device_info created successfully!
[dbg] iotx_device_info_set(50): start to set device info!
[dbg] iotx_device_info_set(64): device_info set successfully!
[dbg] _calc_hmac_signature(211): | source: clientIdB8Y6JdDUmND.obu01deviceNameobu01productKeyB8Y6JdDUmNDtimestamp2524608000000 (83)
[dbg] _calc_hmac_signature(212): | secret: VdEMtOsNgiG8Cq94LEhAZi02cGyNs0Vp (32)
[dbg] _calc_hmac_signature(215): | method: hmacsha1
[dbg] _calc_hmac_signature(228): | signature: 8ce4079b78ea076bba224299d6ca548574d2dfc2 (40)
[dbg] iotx_guider_authenticate(764): ....................................................
[dbg] iotx_guider_authenticate(765): ProductKey : B8Y6JdDUmND
[dbg] iotx_guider_authenticate(766): DeviceName : obu01
[dbg] iotx_guider_authenticate(767): DeviceID : B8Y6JdDUmND.obu01
[dbg] iotx_guider_authenticate(768): DeviceSecret : VdEMtOsNgiG8Cq94LEhAZi02cGyNs0Vp
[dbg] iotx_guider_authenticate(769): ....................................................
[dbg] iotx_guider_authenticate(770): PartnerID Buf :
[dbg] iotx_guider_authenticate(771): Guider URL : http://iot-auth.cn-shanghai.aliyuncs.com/auth/devicename
[dbg] iotx_guider_authenticate(775): Guider Timestamp : 2524608000000
[dbg] iotx_guider_authenticate(776): ....................................................
[dbg] iotx_guider_authenticate(777): Guider Sign : 8ce4079b78ea076bba224299d6ca548574d2dfc2
[dbg] iotx_guider_authenticate(782): ....................................................
[dbg] iotx_guider_authenticate(801): req_str = 'productKey=B8Y6JdDUmND&deviceName=obu01&signmethod=hmacsha1&sign=8ce4079b78ea076bba224299d6ca548574d2dfc2&version=default&clientId=B8Y6JdDUmND.obu01×tamp=2524608000000&resources=mqtt'
[dbg] _http_response(272): requ_payload:
productKey=B8Y6JdDUmND&deviceName=obu01&signmethod=hmacsha1&sign=8ce4079b78ea076bba224299d6ca548574d2dfc2&version=default&clientId=B8Y6JdDUmND.obu01×tamp=2524608000000&resources=mqtt
[dbg] httpclient_common(783): host: 'iot-auth.cn-shanghai.aliyuncs.com', port: 443
[inf] _ssl_client_init(164): Loading the CA root certificate ...
issuer name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
subject name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
issued on : 1998-09-01 12:00:00
expires on : 2028-01-28 12:00:00
signed using : RSA with SHA1
RSA key size : 2048 bits
basic constraints : CA=true
key usage : Key Cert Sign, CRL Sign
[inf] _ssl_parse_crt(132): crt content:451
[inf] _ssl_client_init(172): ok (0 skipped)
[inf] TLSConnectNetwork(337): Connecting to /iot-auth.cn-shanghai.aliyuncs.com/443...
[inf] TLSConnectNetwork(339): failed ! net_connect returned -0x0052
[err] httpclient_conn(79): establish connection failed
[err] httpclient_common(789): httpclient_connect is error,ret = -8
[dbg] _iotId_iotToken_http(389): http response:
[err] iotx_guider_authenticate(813): _iotId_iotToken_http() failed
mqtt_client|160 :: AUTH request failed!
[err] LITE_dump_malloc_free_stats(297): WITH_MEM_STATS = 0
main|289 :: out of sample!
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。