Commit Graph

107 Commits (b35579ba39534b0d82e14a5acd54a0a789ad1057)

Author SHA1 Message Date
Anna Bridge 64df07288c
Merge pull request #11551 from Tharazi97/Coverity
Coverity updates
2019-10-11 11:01:10 +01:00
Martin Kojtal 4ed8603d64
Merge pull request #11541 from dmaziec1/recv_scanf_oob_fixed
esp8266 _oob_* : recv() brought back where it was needed
2019-09-30 13:59:53 +02:00
Anna Bridge 372a3f19c9
Merge pull request #11514 from dmaziec1/UART_deep_sleep_enable
ESP8266 unlocks deep sleep when disconnected
2019-09-27 16:50:22 +01:00
Dominika Maziec e84e098bcb esp8266 in _oob_* : recv() brought back where it was needed 2019-09-27 15:54:43 +02:00
int_szyk 24cb0334eb esp8266-driver: fix variables init in constructor.
Fixes Coverity issue about not initialized members.
2019-09-23 15:27:34 +02:00
Dominika Maziec 1aa3b5d9d0 UART in deep sleep mode when it is disconnected 2019-09-20 17:18:32 +02:00
Martin Kojtal 656fed16da
Merge pull request #11430 from tymoteuszblochmobica/name
Member get_interface_name implemented  in ESP8266Interface
2019-09-20 14:17:05 +02:00
Dominika Maziec 66bf8bc97b ESP8266 Unified Mbed trace prints.
All logs now:
- start with a function name (it is not automatically logged by the logger)
- do not contain class name (this can be inferred from log preamble)
- message starts with a capital letter and ends with a full-stop
2019-09-13 16:54:31 +02:00
Martin Kojtal f5dd7db8c7
Merge pull request #11459 from dmaziec1/recv_scanf_oob
Replaced in ESP8266::_oob_* recv() with scanf()
2019-09-13 16:17:48 +02:00
Martin Kojtal ac7b851ba0
Merge pull request #11409 from dmaziec1/esp8266-nonblocking
esp8266 nonblocking connect/disconnect
2019-09-13 16:12:13 +02:00
Dominika Maziec 9ddef624bc Replaced in ESP8266::_oob_* recv() with scanf()
`ATCmdParser::recv()` should be used when we skim through data trying to look for something and `ATCmdParser::scanf()` is to be used when we know what we are supposed to get- as in `_oob_*` functions, except from `_oob_connection_status()`
2019-09-11 17:00:37 +02:00
Dominika Maziec f5ccbe7972 esp8266 nonblocking connect/disconnect
`ESP8266Interface::connect()` and `ESP8266Interface::disconnect()` can be used in terms of asynchronous operations. Mainly, it is based on newly added private variable of type  `esp_connection_software_status` which is used to keep tracking of state of connection.`wifi_connect_nonblock` test was renamed and amended to test both `connect()` and `disconnect()` operation
2019-09-10 09:37:46 +02:00
Tymoteusz Bloch 56ede03e37 Member get_interface_name implemented in ESP8266Interface 2019-09-06 11:00:31 +02:00
Dominika Maziec 93119eb785 ESP8266Interface buffer null-terminated and parameters of scan function in correct order 2019-09-05 16:28:47 +02:00
Martin Kojtal 98c0fd06be
Merge pull request #11343 from OpenNuvoton/nuvoton_esp8266_power_pin
ESP8266: Support power pin in custom wiring
2019-08-29 10:09:52 +02:00
Martin Kojtal 56a8227c54
Merge pull request #11304 from AnttiKauppila/esp8266_fix
RSSI getter fixed for ESP8266
2019-08-29 08:49:24 +02:00
Chun-Chieh Li 650e2e593c ESP8266: Support power on/off in custom wiring
In custom wiring, there can be a power pin to power on/off the modem. This
commit supports it and allows for the following configurations:

- power pin name
- power pin polarity
- power on/off delay time
2019-08-27 17:57:06 +08:00
Antti Kauppila 2bdf3bbf23 astyle fixes 2019-08-26 09:56:18 +03:00
Desmond Chen 77d403b20a Enable json overriding ESP8266 default baud rate 2019-08-26 11:38:30 +08:00
Antti Kauppila a074721d18 RSSI getter fixed for ESP8266 2019-08-23 12:28:04 +03:00
Antti Kauppila 84063bf222 Coverity issues fixed 2019-08-14 16:22:05 +03:00
Kevin Bracey a522dcfa0a Replace deprecated wait calls 2019-07-15 10:13:50 +03:00
Marcin Tomczyk 9ae4463ccc Need to change ESP8266 driver's support AT firmware version. Only AT version 1.6 0r above support AT+CWCOUNTRY command. Command AT+CWLAP format is different for version 1.6 and above 2019-07-05 10:07:29 +02:00
Martin Kojtal 3ea1c56124
Merge pull request #10147 from kjbracey-arm/atomic_bitwise
Assembler atomics
2019-05-13 14:18:05 +01:00
Kevin Bracey 87396e0bf6 Assembler atomics
Reimplement atomic code in inline assembly. This can improve
optimisation, and avoids potential architectural problems with using
LDREX/STREX intrinsics.

API further extended:
* Bitwise operations (fetch_and/fetch_or/fetch_xor)
* fetch_add and fetch_sub (like incr/decr, but returning old value -
  aligning with C++11)
* compare_exchange_weak
* Explicit memory order specification
* Basic freestanding template overloads for C++

This gives our existing C implementation essentially all the functionality
needed by C++11.

An actual Atomic<T> template based upon these C functions could follow.
2019-04-26 13:12:35 +03:00
Martin Kojtal 7392d51460
Merge pull request #10394 from kjbracey-arm/networking_warnings
Networking: Fix some ARMC6 warnings
2019-04-18 13:15:45 +01:00
Kevin Bracey 69c6cc341b Networking: Fix some ARMC6 warnings
Some int-versus-long and signed-versus-unsigned format string
mismatches, and missing `class` keyword.
2019-04-17 16:03:44 +03:00
Michal Paszta 3e70df7f0a ESP8266: Timeout if chip keeps returning errors
The ESP chip returns timeout, but keeps trying to connect, so we want to
keep track of time ourselves, instead of relying on the chip's timeout.
This fixes failing WIFI-CONNECT-SECURE-FAIL test.
2019-04-16 14:23:36 +03:00
Michal Paszta 8eda11a5a3 Perform disconnection regardless of the IP address 2019-04-12 11:50:55 +03:00
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