Amazon IOT disconnects and won't reconnect

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: Amazon IOT disconnects and won't reconnect

Postby fly135 » Fri Mar 08, 2019 10:00 pm

jrounds wrote:
Fri Mar 08, 2019 9:38 pm
Even with a wait it still the same message sorry the example I posted must of left that code out but the result is the same with our without it
You don't want to use a wait. Look at the examples. The wifi connects and then signals that the connection is complete. Only then do you start talking to the internet.

John A

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Amazon IOT disconnects and won't reconnect

Postby Ritesh » Sat Mar 09, 2019 8:42 am

fly135 wrote:
Fri Mar 08, 2019 10:00 pm
jrounds wrote:
Fri Mar 08, 2019 9:38 pm
Even with a wait it still the same message sorry the example I posted must of left that code out but the result is the same with our without it
You don't want to use a wait. Look at the examples. The wifi connects and then signals that the connection is complete. Only then do you start talking to the internet.

John A
Yeah. Exactly like that.
Regards,
Ritesh Prajapati

jrounds
Posts: 15
Joined: Thu Dec 13, 2018 6:11 pm

Re: Amazon IOT disconnects and won't reconnect

Postby jrounds » Tue Mar 19, 2019 8:09 pm

Even with code to wait for a ip it still does not recconect
I (3171866) AIOT: Stack remaining for task 'aws_iot_task' is 2272 bytes
I (3177776) wifi: bcn_timout,ap_probe_send_start
I (3180276) wifi: ap_probe_send over, resett wifi status to disassoc
I (3180276) wifi: state: run -> init (c800)
I (3180286) wifi: pm stop, total sleep time: 2955676083 us / 3177578234 us

I (3180286) wifi: n:10 0, o:10 0, ap:255 255, sta:10 0, prof:1
I (3180296) AirCylcer: RAM left 3772
I (3180296) AirCylcer: Event called 5
I (3182716) AirCylcer: RAM left 3804
I (3182716) AirCylcer: Event called 5
I (3183906) AIOT: Subscribe callback

I (3183906) AIOT: Aircylcer/DeviceUpdates/_NowfSd_Dy {"Aircylcyer": {"clientid":"_NowfSd_Dy" ,"id":"0F1190", "Fan": 1, "light": 0, "setdelay": 10 , "setFan": 20, "currentime": 40, "remtime": 0, "wifistrenght": -29, "Product": "connectedSW" }}
E (3183926) aws_iot: failed! mbedtls_ssl_write returned -0x4e
Saved time 10
Saved time 20
W (3183986) wifi: Haven't to connect to a suitable AP now!
I (3183986) AIOT: Stack remaining for task 'aws_iot_task' is 2272 bytes
E (3183996) aws_iot: failed! mbedtls_ssl_write returned -0x4e
E (3196106) aws_iot: failed! mbedtls_ssl_write returned -0x4e
W (3196106) AIOT: MQTT Disconnect
I (3196106) AIOT: RAM left 20660
W (3196106) AIOT: Waiting for IP

W (3300106) AIOT: Waiting for IP
I (3300296) event: station ip lost
I (3300296) AirCylcer: RAM left 22464
I (3300296) AirCylcer: Event called 8
I (3300416) wifi: n:10 0, o:10 0, ap:255 255, sta:10 0, prof:1
I (3300416) wifi: state: init -> auth (b0)
I (3300416) wifi: state: auth -> assoc (0)
I (3300426) wifi: state: assoc -> run (10)
I (3300456) wifi: connected with AirLinksys24G, channel 10
I (3300456) wifi: pm start, type: 1

I (3300456) AirCylcer: RAM left 21524
I (3300456) AirCylcer: Event called 4
W (3301106) AIOT: Waiting for IP
I (3301296) event: sta ip: 192.168.1.127, mask: 255.255.255.0, gw: 192.168.1.1
I (3301296) AirCylcer: RAM left 21600
I (3301296) AirCylcer: Event called 7
1

3
I (3301296) AirCylcer: Socket created
4
I (3302106) AIOT: Auto Reconnect is enabled, Reconnecting attempt will start now
I (3302106) wifi: state: run -> init (0)
I (3302106) wifi: pm stop, total sleep time: 1344688 us / 1650461 us

I (3302106) wifi: n:10 0, o:10 0, ap:255 255, sta:10 0, prof:1
I (3302116) AirCylcer: RAM left 19236
I (3302116) AirCylcer: Setting WiFi configuration SSID AirLinksys24G...
I (3302116) AirCylcer: Event called 5
I (3302266) wifi: n:10 0, o:10 0, ap:255 255, sta:10 0, prof:1
I (3303246) wifi: state: init -> auth (b0)
I (3303246) wifi: state: auth -> assoc (0)
I (3303256) wifi: state: assoc -> run (10)
I (3303286) wifi: connected with AirLinksys24G, channel 10
I (3303286) wifi: pm start, type: 1

I (3303286) AirCylcer: RAM left 18472
I (3303286) AirCylcer: Event called 4
I (3304296) event: sta ip: 192.168.1.127, mask: 255.255.255.0, gw: 192.168.1.1
I (3304296) AirCylcer: RAM left 18552
I (3304296) AirCylcer: Event called 7

E (3319806) AirCylcer: Socket unable to connect: errno 113
I (3319806) AirCylcer: Successfully connected
E (3319806) AirCylcer: Error occured during sending: errno 113
E (3319806) AirCylcer: Shutting down socket and restarting...
1

3
I (3319816) AirCylcer: Socket created
4
1

3
I (3320296) AirCylcer: Socket created
4
E (3338316) AirCylcer: Socket unable to connect: errno 113
E (3338316) AirCylcer: Socket unable to connect: errno 113
I (3338316) AirCylcer: Successfully connected
I (3338316) AirCylcer: Successfully connected
E (3338326) AirCylcer: Error occured during sending: errno 113
E (3338326) AirCylcer: Shutting down socket and restarting...
E (3338336) AirCylcer: Error occured during sending: errno 113
1

3
E (3338346) AirCylcer: Shutting down socket and restarting...
I (3338346) AirCylcer: Socket created
1

3
4
I (3338356) AirCylcer: Socket created
4
E (3356856) AirCylcer: Socket unable to connect: errno 113
E (3356856) AirCylcer: Socket unable to connect: errno 113
I (3356856) AirCylcer: Successfully connected
I (3356856) AirCylcer: Successfully connected
E (3356866) AirCylcer: Error occured during sending: errno 113
E (3356866) AirCylcer: Shutting down socket and restarting...
E (3356876) AirCylcer: Error occured during sending: errno 113
1

3
E (3356886) AirCylcer: Shutting down socket and restarting...
I (3356886) AirCylcer: Socket created
1

3
4
I (3356896) AirCylcer: Socket created
4
E (3362316) aws_iot: failed! mbedtls_ssl_setup returned -0x7f00
E (3375396) AirCylcer: Socket unable to connect: errno 113

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Amazon IOT disconnects and won't reconnect

Postby chegewara » Wed Mar 20, 2019 1:29 pm

Looks like you end up with this error:
https://tls.mbed.org/api/ssl_8h.html#a7 ... 66c8602177

jrounds
Posts: 15
Joined: Thu Dec 13, 2018 6:11 pm

Re: Amazon IOT disconnects and won't reconnect

Postby jrounds » Thu Mar 21, 2019 4:05 pm

Yes for some reason it looks like a wifi buffer gets over run and disconnects and never frees the space back up. I am lost at ideas on how to prvent and or recovry from it

jrounds
Posts: 15
Joined: Thu Dec 13, 2018 6:11 pm

Re: Amazon IOT disconnects and won't reconnect

Postby jrounds » Thu Mar 28, 2019 5:28 pm

Just wondering if anyone had any ideas still stumped by this one.

jrounds
Posts: 15
Joined: Thu Dec 13, 2018 6:11 pm

Re: Amazon IOT disconnects and won't reconnect

Postby jrounds » Mon Apr 08, 2019 9:03 pm

BUmp

Who is online

Users browsing this forum: Gaston1980 and 175 guests