Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
harelTur
Level 3
Level 3
25 sign-ins 10 replies posted 10 questions asked

Hi 

I try to connect to AWS in my application with wiced.

I add my log to describe my proble.

The device acceptes a TCP receive error but I donk't know why this?

I knos that error can be apearence only in dwiced driver.


2/23/2021 12:29:21.611 [RX] - ...0093 00:02:08.618 [Debug|WIFI | 243] WIFI operation 0<CR><LF>
0094 00:02:08.623 [Debug|WIFI | 258] WIFI CONNECTED<CR><LF>
0095 00:02:08.628 [Debug|SB2 | 144] Event : 15, arg = 0x0<CR><LF>
0096 00:02:08.634 [Debug|AWS | 551] AWS_NetworkUp()... ok<CR><LF>
0097 00:02:08.639 [Debug|SB2 | 140] Event: SB_EVENT_WIFI_CONNECTED, arg = 0x0<CR><LF>
0098 00:02:08.646 [Info |CRD | 271] DCT credentials - INVALID<CR><LF>
0099 00:02:08.652 [Debug|AWS | 384] Credentials loaded successfully<CR><LF>
0100 00:02:08.667 [Debug|AWS | 420] AWS_InitSession() ok<CR><LF>
[AWS] AWS endpoint: a12cgftt8ultrr-ats.iot.us-east-1.amazonaws.com is at 34.231.245.234<CR><LF>

2/23/2021 12:29:26.819 [RX] - .[AWS/MQTT] Event received 1<CR><LF>
0101 00:02:12.025 [Debug|AWS | 211] Connection Acknowledgment Received<CR><LF>
0102 00:02:12.031 [Debug|AWS | 495] AWS_ConnectSession() ok<CR><LF>
0103 00:02:12.037 [Debug|PRV | 423] AWS_SessionUp() ok<CR><LF>
0104 00:02:12.042 [Debug|SB2 | 140] Event: SB_EVENT_AWS_CONNECTED, arg = 0x0<CR><LF>
0105 00:02:12.049 [Debug|PRV | 425] Subscribing provisioning topics...<CR><LF>
[AWS/MQTT] Event received 4<CR><LF>
0106 00:02:12.277 [Debug|AWS | 261] Subscribe Acknowledged<CR><LF>
0107 00:02:12.283 [Debug|AWS | 714] AWS_Subscribe($aws/certificates/create/json/accepted) ok<CR><LF>
[AWS/MQTT] Event received 4<CR><LF>
0108 00:02:12.533 [Debug|AWS | 261] Subscribe Acknowledged<CR><LF>
0109 00:02:12.538 [Debug|AWS | 714] AWS_Subscribe($aws/certificates/create/json/rejected) ok<CR><LF>
.[MQTT-LIB] TCP receive error<CR>
<CR><LF>
..[AWS/MQTT] Event received 2<CR><LF>
0110 00:02:14.992 [Debug|AWS | 228] Disconnection Received<CR><LF>
.
2/23/2021 12:29:31.821 [RX] - .....
2/23/2021 12:29:36.825 [RX] - .0111 00:02:22.547 [#ERROR#|AWS | 716] wiced_rtos_get_semaphore(&AWS_SubscribedSemaphore) FAILED! (error: 2)<CR><LF>
0112 00:02:22.556 [#ERROR#|PRV | 196] FAILED to subscribe topic '$aws/provisioning-templates/somatixband2-registerThing-template/provision/json/accepted'<CR><LF>
0113 00:02:22.570 [#ERROR#|PRV | 196] FAILED to subscribe topic '$aws/provisioning-templates/somatixband2-registerThing-template/provision/json/rejected'<CR><LF>
0114 00:02:22.585 [Debug|PRV | 435] Creating keys & certificate...<CR><LF>

 

 

After this I cant do anything ....

Plwase hwlp me.

I working with SDK 6.6 

0 Likes
1 Solution
harelTur
Level 3
Level 3
25 sign-ins 10 replies posted 10 questions asked

This problem solved by the backend man form server side.

 

View solution in original post

2 Replies
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

Can you provide the code example or else some pointers to reproduce the issue on my side? Have you provided the same topic name on AWS as well as in your wiced application because I see that you're facing issues when you're receiving?

Thanks

Aditi

 

0 Likes
harelTur
Level 3
Level 3
25 sign-ins 10 replies posted 10 questions asked

This problem solved by the backend man form server side.