Commit Graph

5581 Commits (c01db25544a68009a745eb5ee4430dda9798c47e)

Author SHA1 Message Date
Teijo Kinnunen 4332d6649b LoRaPHY: Pass frequency set in rx_config() to caller
In AU/CN/US PHY, RX1 slot frequency is calculated in rx_config().
Since the caller is printing it to log, modify the frequency in
parameter structure so that the correct value will be printed.
2019-07-11 11:40:55 +01:00
George Beckstein 6f331ef96e Remove flexing on Tesla 💪💪💪 2019-07-11 11:40:55 +01:00
Darryl Green f4966c86b7 Add adjust-check-config script to mbedtls importer
In Mbed OS, there are configuration options with Mbed TLS that we
are more comfortable allowing than we do with Mbed TLS on its own.
Add a check-config adjusting script to enable removing or changing
options in check_config.h
2019-07-11 11:40:54 +01:00
Antti Kauppila 85470e759b Doubled ATHandler's BUFF_SIZE 2019-07-11 11:40:54 +01:00
Qinghao Shi fd829c625e Tests: enable kvstore test for Fastmodel for test code coverage 2019-07-11 11:40:54 +01:00
Qinghao Shi e9ca7ed914 FastModel: enable kvstore 2019-07-11 11:40:54 +01:00
Philipp Steiner 66ce92aa1b Solve bug: Low frequency clock will now selected by given "lf_clock_src" setting. 2019-07-11 11:40:54 +01:00
Sebastian Stockhammer 5f0b6dac3d Fix astyle 2019-07-11 11:40:54 +01:00
Sebastian Stockhammer b0997ad7a9 Allow IPV4V6 stack type 2019-07-11 11:40:54 +01:00
Sebastian Stockhammer 55243ae027 Require exact context type match 2019-07-11 11:40:54 +01:00
Paul Thompson a6b90e30dd Make the sys_arch_protect() mutex be recursive.
Fixes #9744

Appears to be a lwIP porting bug. Comments in our porting layer say:

    This function should support recursive calls from the same task or interrupt. In other words, sys_arch_protect() could be called while already protected.
2019-07-11 11:40:54 +01:00
Kimmo Vaisanen 7a5f1984ee Fix netconn_recv_tcp_pbuf ARMC6 linker error
If "lwip.tcp-enabled" is set to false, ARMC6 compilation fails to error
Error: L6218E: Undefined symbol netconn_recv_tcp_pbuf

LWIP::socket_recv() is TCP socket specific method so implementation can be
enabled only when LWIP_TCP flag is set.
2019-07-11 11:40:54 +01:00
Kimmo Vaisanen cf7911d4d6 Increase dns-response-wait-time
In some cellular networks or with some modems, DNS response can take longer than 5 seconds to arrive.
2019-07-11 11:40:54 +01:00
mudassar-ublox 0e6e1a6309 cellular socket flags updated 2019-07-11 11:40:54 +01:00
Antti Yli-Tokola 1eb799e4fa TLSSocket: print certificate info only when tracing is enabled
Flagging these functions out will reduce flash size more than 3k.
2019-07-11 11:40:53 +01:00
Jaeden Amero 5b47bb030a crypto: Enable use on non-PSA targets
Move PSA Crypto implementation files outside of a TARGET_PSA folder,
enabling use of PSA Crypto APIs on more Mbed OS targets.
2019-07-11 11:40:53 +01:00
Tymoteusz Bloch be4d40b1b3 Fixed LWIPStack socket_sendto member to fail if interface IP4/6 version differ from destination adress IP version 2019-07-11 11:40:53 +01:00
Laurent Meunier f1601b0ad7 Check Properties have been set 2019-07-11 11:40:53 +01:00
Martin Kojtal 74d2b8e5b9 cellular: fix file permission 2019-07-11 11:40:53 +01:00
jeromecoutant 4b751b3245 Wrong timeout value in greentea tests 2019-07-11 11:40:53 +01:00
Mirela Chirica 227013f7cc Cellular: Added handling for BG96 network PDP context deactivation 2019-07-11 11:40:53 +01:00
Kimmo Vaisanen 8a86811f1a Cellular: Fix PLMN debug trace for IAR
IAR does not allow printing from null pointer as parameter for %s. PLMN string
can be null depending on user configuration.
2019-07-11 11:40:53 +01:00
Teppo Järvelin 050af7c49c Cellular: fix athandler to use correct timeout in case of multiple urc's
Start time was not updated when multiple urc's were found and so timeout
was set to zero. Now that start time is updated, timeout is correct.
2019-07-11 11:40:53 +01:00
mudassar-ublox 6acf1d70cc Style issue fixed 2019-07-11 11:40:53 +01:00
mudassar-ublox 1e29490dba socket close callback 2019-07-11 11:40:52 +01:00
Kevin Bracey 15b103e5e5 NSAPI/lwIP: Use netconn_recv_tcp_pbuf
Slight RAM+speed efficiency improvement - read the TCP implementation's
native pbufs, rather than forcing netconn_recv to generate netbuf
wrappers for us. Saves one small lwIP heap allocation per TCP packet
received.
2019-07-11 11:40:52 +01:00
Chris Trowbridge 2679f2b6fc Moved DEFAULT_DELAY_BETWEEN_AT_COMMANDS constant to cpp file 2019-07-11 11:40:52 +01:00
Chris Trowbridge 8329fc1d52 Remove unnecessary init AT commands 2019-07-11 11:40:52 +01:00
Chris Trowbridge a214a3cb59 Modify ME910 driver to follow power on/off best practices and add custom get_context() function 2019-07-11 11:40:52 +01:00
Chris Trowbridge cbea74820e Add default soft/hard power on/off sequences for ME910 2019-07-11 11:40:52 +01:00
Chris Trowbridge 761ab4dd75 Remove ME910 trace group #define 2019-07-11 11:40:52 +01:00
Chris Trowbridge 19997f6013 Remove ME910 flow control debug message 2019-07-11 11:40:52 +01:00
Chris Trowbridge 1b28301f11 Remove unnecessary #includes 2019-07-11 11:40:52 +01:00
Chris Trowbridge 808d0c3a8e Remove default power on/off functions 2019-07-11 11:40:52 +01:00
Chris Trowbridge 179a4163d7 Add Telit ME910 driver 2019-07-11 11:40:52 +01:00
Tymoteusz Bloch 94a900814e LWIP DNS servers setting/getting fixed. 2019-07-11 11:40:51 +01:00
Lingkai Dong 37f6c89990 Workaround for legacy GAP advertising issue on Cordio LL
Due to some issue in Cordio link layer, advertising data does not
take effect unless we set it (or set it again) after advertising
parameters are set.
2019-07-11 11:40:51 +01:00
Lingkai Dong 28770391b7 Set extended advertising parameters upon first use of API v2
Previously, extended advertising parameters failed to be set
during BLE initialisation when the stack was not ready.

To work around this, we delay it to the first use of
useVersionTwoAPI.
2019-07-11 11:40:51 +01:00
Martin Kojtal c1e97ec688 unsupported USBHAL: fix coding style 2019-07-11 11:39:48 +01:00
Tomasz Moń 59c6af569d STM USBHALHost: Fix NULL pointer dereference
On STM32F746G Discovery boards, the USB OTG HS port does not have a
dedicated GPIO for controlling the USB VBUS.

This change fixes HardFault (NULL pointer dereference) that triggered
when such USB host port was used.
2019-07-11 11:39:48 +01:00
Tomasz Moń 2b76a05a10 USBHostMSD: Implement BlockDevice get_type()
This makes it possible to create instances of USBHostMSD class.
2019-07-11 11:39:48 +01:00
Ari Parkkila c3119da987 Cellular: Fix socket connect on UBLOX_AT driver 2019-07-11 11:39:48 +01:00
Tymoteusz Bloch 6687f41177 Fixed LWIP warning issues found by Coverity scan 2019-07-11 11:39:48 +01:00
Ari Parkkila 390d7cc9f3 Cellular: Add BG96 power control 2019-07-11 11:39:48 +01:00
Pekka Pesu 97e9aed430 add BG96 povermanagemet 2019-07-11 11:39:48 +01:00
Pekka Pesu aff9b52a22 BG96 power handling added 2019-07-11 11:39:48 +01:00
Tomasz Moń 394036664c USBHost: Wait for device to implement SET ADDRESS
The USB Device must change the address within 2 ms after completing
SET ADDRESS status stage.

Wait 2 ms before issuing GET DESCRIPTOR under the new address. In my
case, this completely resolves the timeout issues.
2019-07-11 11:39:48 +01:00
Teppo Järvelin c87a7798a9 Cellular: AT_CellularContext disconnect in non-blocking mode
Disconnect was supporting only blocking mode.
2019-07-11 11:39:48 +01:00
Mirela Chirica 1533d2466b Cellular: Remove IPV6 and IPV4V6 as supported properties for BG96
IPV6 and IPV6V4 support is also network dependent not only modem.

Having these properties enabled for a modem requires a fallback
mechanism during PDP context activation. This mechanism is missing
at the moment and that can result in imposibility to establish
succesfull connection when network only supports IPV4 contexts.
2019-06-24 15:15:19 +01:00
Mirela Chirica bfbf3a728b Cellular: Fix requested socket id in socket_connect routines of BG96 and M26 2019-06-24 15:15:19 +01:00