Commit Graph

35 Commits (dabad7a074364b462d29ab08392dac34acf3edec)

Author SHA1 Message Date
Veijo Pesonen c9eaa07236 ESP8266: astyle, remove from the .astyleignore-file 2019-03-04 09:38:20 +02:00
Cruz Monrreal 9d9a076f10
Merge pull request #9885 from VeijoPesonen/esp8266_conn_timeout_err2trace
ESP8266: graceful disconnect on network state timeout
2019-02-28 19:56:11 -06:00
Veijo Pesonen 7bb887fef4 ESP8266: in unknown network state driver tries to disconnect 2019-02-28 12:44:49 +02:00
Veijo Pesonen 688a4e42bc ESP8266: recv() is able to handle device busy indication 2019-02-27 09:54:43 +02:00
Veijo Pesonen cbbe2ff55e ESP8266: retry reset attempt once in failure 2019-02-14 11:08:37 +02:00
Veijo Pesonen 706dd39569 ESP8266: protects setting UART HW flow control with a mutex 2019-02-14 10:41:04 +02:00
Veijo Pesonen 108ec44b66 ESP8266: fixes UART HW flow control enabling sequence 2019-02-14 10:41:04 +02:00
Veijo Pesonen 71e5321f0f ESP8266: fixes network status refresh procedure 2019-02-14 10:41:04 +02:00
Veijo Pesonen 876a397101 ESP8266: handles reset ready as OOB
Makes possible to recover from spurious resets addiotionally to planned
ones.
2019-02-14 10:41:04 +02:00
Veijo Pesonen 832eed02ce ESP8266: calls MBED_ERROR if modem's watchdog reset gets triggered 2019-01-22 16:11:32 +02:00
Cruz Monrreal 30e0d8f1f6
Merge pull request #9366 from VeijoPesonen/bugfix-esp8266_verify_rcvd_data_len
ESP8266: add an error check for data overflow from modem side
2019-01-17 21:52:11 -06:00
Veijo Pesonen 02cd9f1884 [ESP8266] adds an error check for data overflow from modem side 2019-01-14 12:22:41 +02:00
Seppo Takalo 7db2292417 Flush ESP8266 serial input buffers after HW reset 2019-01-10 18:13:32 +02:00
Martin Kojtal e25611aad8
Merge pull request #9309 from VeijoPesonen/bugfix-esp8266_send_busy
ESP8266 - fix send buffer exhaustion handling
2019-01-10 12:24:09 +00:00
Veijo Pesonen 7c112b2843 [ESP8266] socket_send() returns WOULD_BLOCK if server won't accept
Driver must return NSAPI_ERROR_WOULD_BLOCK if a server won't accept
data from the modem and the modem's buffers are full. In case that
socket is closed driver returns NSAPI_ERROR_CONNECTION_LOST.
2019-01-09 16:34:25 +02:00
Veijo Pesonen 4a9f86565a [ESP8266] Fixes AT-layer socket_open-functions
When a socket open fails it musn't be treated as fatal error. Returning
a device error which is then handled by an application is the correct
solution
2019-01-09 13:20:52 +02:00
Michal Paszta d6e385b330 ESP8266 send returns WOULD_BLOCK error when busy 2018-12-11 17:48:37 +01:00
Veijo Pesonen 12fa3e59bb Fixes AT command timeout values from reset&connect 2018-12-11 09:49:23 +02:00
Veijo Pesonen 9857ee1c17 [ESP8266] Adds support for controlling HW reset of the modem from the driver
While connecting will run HW reset for the modem if reset wire is attached to a know pin.
2018-12-11 09:49:23 +02:00
Cruz Monrreal 61ade84447
Merge pull request #8875 from deepikabhavnani/fix_components
Add dependency checks to components
2018-12-10 19:20:30 -06:00
Martin Kojtal be817bab44
Merge pull request #8853 from VeijoPesonen/feature-esp8266_reconnect2
Reports NSAPI_STATUS_CONNECTING when trying to reconnect
2018-12-05 10:37:17 +01:00
Martin Kojtal b52c164028
Merge pull request #8911 from c1728p9/esp8266_flow_control_fix
Fix ESP8266 recv_udp timeout with flow control
2018-12-03 13:41:23 +01:00
Deepika 76220fa89c Add Serial + EventQueue dependency to ESP8266 2018-11-30 15:38:28 -06:00
Russ Butler 53ed3f5c3d Fix ESP8266 recv_udp timeout with flow control
UDP packets are always received as OOB data. Without checking for
new OOB data with a call to "_process_oob" then recv_udp never blocks.
If a UDP packet is not available then NSAPI_ERROR_WOULD_BLOCK is
returned. This causes mbed-os's DNS handling to always fail when
flow control is enabled.

This patch fixes recv_udp by always calling "_process_oob" regardless
of if flow control is enabled. This ensures that recv_udp follows the
timeout parameter and waits for new data to arrive.
2018-11-29 19:13:37 -06:00
Deepika b32c6ba2a5 Components if using RTOS modules should be enabled only when RTOS is present
Build failures were observed when rtos is ignored with .mbedignored.
Components dependent on RTOS should be guarded with MBED_CONF_RTOS_PRESENT
2018-11-27 13:55:59 -06:00
Deepika 6c6ef87c19 Fix header files used in esp8266
"ns_types.h" results in build failure when networking feature is ignored with
.mbedignored. ESP8266 component should be enabled only when NSAPI is present.
2018-11-27 13:55:59 -06:00
Veijo Pesonen e0924532e7 Reports NSAPI_STATUS_CONNECTING when trying to reconnect 2018-11-23 12:56:02 +02:00
Veijo Pesonen fefef0d855 Truncates TCP stream and NACKs UDP datagram when sending too much data
ESP8266 maximum packet size when sending is 2048 bytes.
2018-11-23 12:22:20 +02:00
Veijo Pesonen c0f9e65af6 Fixes return value check when calling ATCmdParser::read() 2018-11-22 15:57:46 +02:00
Veijo Pesonen 95511bc7eb Dropping duplicate "using namespace mbed;" 2018-11-22 15:57:33 +02:00
Veijo Pesonen 1f4a1af6ed Truncates data to be send to modem to 2048 bytes 2018-11-22 15:57:21 +02:00
Veijo Pesonen 934472be1d esp8266 driver - don't set UART flow control if no support 2018-11-09 16:03:41 +02:00
Veijo Pesonen 8dd6a5d039 Add ESP8266 driver v1.7 2018-11-09 14:49:48 +02:00
deepikabhavnani 451cf7ccb3 Add required namespace instead of relying on mbed.h
mbed.h has 'using namespace mbed;', hence some of the files skip
adding required namespace to the code, it is always good to specify the
namespace around the elements in header and `using namespace` in
specific CPP files, instead of all
2018-10-25 12:43:59 -05:00
Seppo Takalo fc5bf5986b Add ESP8266 driver v1.6 2018-09-01 12:36:28 -05:00