Michal Paszta
5dbaa40eb0
Add the INTERRUPTIN compilation guard for ESP8266
2019-03-28 11:16:30 +02:00
Cruz Monrreal
ecfe0c83ae
Merge pull request #9955 from VeijoPesonen/esp8266_wifi_scan_timeout
...
ESP8266: treats Wi-Fi scan results as out-of-band data; new API to adjusting Wi-Fi scan settings
2019-03-27 00:25:43 -05:00
Cruz Monrreal
1c23c5b85b
Merge pull request #9927 from VeijoPesonen/esp8266_country_code_policy
...
ESP8266: Country code API
2019-03-27 00:25:29 -05:00
Veijo Pesonen
e2bd0644df
ESP8266: new API for setting Wi-Fi scan active/passive mode
...
Makes possible to decide between active and passive mode.
Makes possible to adjust for how long a single channel is scanned.
2019-03-14 12:01:42 +02:00
Veijo Pesonen
b5f3fcf49b
ESP8266: Wi-Fi scan results as OOB
2019-03-14 12:00:17 +02:00
Veijo Pesonen
50984e5d2d
ESP8266: makes usable channels runtime configurable
2019-03-05 10:40:22 +02:00
Veijo Pesonen
eb27a23641
ESP8266: Exposes country code config API
2019-03-05 10:40:21 +02:00
Veijo Pesonen
96247dd76a
ESP8266: sets hardcoded country code(CC) policy to track AP's CC
2019-03-05 10:40:21 +02:00
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
Cruz Monrreal
b5878b164d
Merge pull request #9871 from VeijoPesonen/bugfix-esp8266-recv_busy
...
ESP8266: receive is able to handle device busy indication
2019-02-28 18:22:54 -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
2e5d1d959b
ESP8266: halts if unable to add an event to the event queue
2019-02-26 09:44:15 +02:00
Martin Kojtal
ad2cb910f9
Merge pull request #9503 from VeijoPesonen/feature-esp8266_oob_handling_by_sigio
...
ESP8266: OOB handling done based on arrival of SIGIOs
2019-02-20 09:35:29 +01:00
Martin Kojtal
1892e2dd8e
Merge pull request #9741 from michalpasztamobica/esp8266_fix_nonblocking_connect
...
ESP8266: connect() returns OK in non-blocking calls
2019-02-18 13:22:19 +01:00
Veijo Pesonen
d6701c36a3
ESP8266: does OOB handling based on SIGIO and not on a certain interval
2019-02-18 12:39:16 +02:00
Michal Paszta
32686d48a8
ESP8266: connect() returns OK in non-blocking calls
2019-02-15 17:33:21 +02:00
Veijo Pesonen
cbbe2ff55e
ESP8266: retry reset attempt once in failure
2019-02-14 11:08:37 +02:00
Veijo Pesonen
2d6b63d5a2
ESP8266: prevents doing reset twice in a row, unnecessary
2019-02-14 11:08:36 +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
Michal Paszta
6a184da381
ESP8266: connect() can handle ESP's errors.
...
ESP8266Interface::connect() checks the exact return value from
the underlying ESP8266::connect() call.
Increased timeout for network-wifi greentea tests to 6 minutes.
2019-02-11 17:20:14 +02:00
Martin Kojtal
f1bf5dbd63
Merge pull request #9520 from VeijoPesonen/bugfix-esp8266_reduce_sigio
...
ESP8266: reduces SIGIO signaled to the upper layers
2019-02-01 08:23:35 +01:00
Cruz Monrreal
b506b03055
Merge pull request #9456 from VeijoPesonen/feature-esp8266_mbed_error_if_wdt
...
ESP8266: calls MBED_ERROR if modem's watchdog reset gets triggered
2019-01-31 10:51:38 -06:00
Veijo Pesonen
53c2879a5c
ESP8266: makes guarding variable for deferring events atomic
2019-01-30 17:00:56 +02:00
Veijo Pesonen
7d3621dae4
ESP8266: reduces SIGIO signaled to the upper layers
2019-01-30 17:00:56 +02:00
Veijo Pesonen
d712568b8f
ESP8266: with empty packet send returns zero if TCP, unsupported otherwise
2019-01-28 13:46:48 +02:00
Veijo Pesonen
832eed02ce
ESP8266: calls MBED_ERROR if modem's watchdog reset gets triggered
2019-01-22 16:11:32 +02:00
Veijo Pesonen
c4d96e6309
ESP8266: provides blocking/non-blocking connect
...
Implements NetworkInterface::set_blocking() and implements the
functionality to distinguish between the two in connect()
2019-01-21 16:22:53 +02:00
Veijo Pesonen
58c1a88348
ESP8266: turns connect fully to non-blocking mode
...
Blocking mode connect is not supported anymore when this patch is
applied
2019-01-21 16:22:53 +02:00
Veijo Pesonen
c60c5244c1
ESP8266: makes connect() connection status aware
2019-01-21 14:43:35 +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
Martin Kojtal
b59b93e828
Merge pull request #9331 from VeijoPesonen/bugfix-esp8266_udp_prevent_would_block
...
ESP8266: prevent WOULD BLOCK from TX if UDP
2019-01-17 12:41:42 +01:00
Martin Kojtal
a180d69e60
Merge pull request #9356 from VeijoPesonen/bugfix-esp8266_disconnect_return_code
...
ESP8266 - fixes disconnect to check the state from modem
2019-01-15 10:38:40 +01:00
Veijo Pesonen
02cd9f1884
[ESP8266] adds an error check for data overflow from modem side
2019-01-14 12:22:41 +02:00
Veijo Pesonen
e83b883e08
[ESP8266] fixes disconnect to check the state from modem
...
Additionally to internal bookkeeping lets check from the modem
that what is connection state in disconnect. There might be
inconsistencies.
2019-01-11 16:25:26 +02:00
Seppo Takalo
7db2292417
Flush ESP8266 serial input buffers after HW reset
2019-01-10 18:13:32 +02:00
Veijo Pesonen
e9ceff2450
[ESP8266] fixes a debug print
2019-01-10 14:33:15 +02:00
Veijo Pesonen
9a3c9a30b3
[ESP8266] Drop signalling SIGIO artificially if UDP send fails
...
With TCP it's desirable that SIGIO wakes up the application to check
if there is buffer space space available on the mode. With UDP the
behavior is not acceptable as we don't know if the other endpoint is
there as connection establishment is missing. Hence buffers might
stay full forever.
2019-01-10 14:33:15 +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
Cruz Monrreal
b9d5dceb72
Merge pull request #9284 from VeijoPesonen/bugfix-esp8266_socket_close
...
ESP8266: Fixes AT-layer socket_open-functions
2019-01-09 13:47:46 -06: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
Seppo Takalo
8bf3ce3d68
ESP8266: Set HW reset time to 2ms
2019-01-08 18:18:46 +02:00
Michal Paszta
034c72e12c
Prevent ESP8266 stopping HW control on init
2018-12-20 13:22:13 +01:00
Russ Butler
6210805696
Fix ESP8266 "Link Type" errors after reset
...
As part of the ESP8266 connect sequence, ESP8266Interface::connect,
a software reset is performed. If the ESP8266 had been connected
previously then the ESP8266 will sometimes send a "WIFI DISCONNECT" OOB
message before performing the software reset. This causes the
ESP8266::_oob_connection_status to change its state (_conn_status) from
NSAPI_STATUS_DISCONNECTED to NSAPI_STATUS_CONNECTING. This causes
ESP8266Interface::_startup, called later in the boot seqeunce, to skip
ESP8266::startup. Without this call socket mux mode (CIPMUX=1) is never
enabled and all send commands using this format fail with a "Link Type"
error.
This patch fixes that problem by unconditionally calling
ESP8266::startup as part of the ESP8266 connect sequence.
2018-12-17 10:11:52 -06:00
Michal Paszta
d6e385b330
ESP8266 send returns WOULD_BLOCK error when busy
2018-12-11 17:48:37 +01:00