Commit Graph

3695 Commits (fd0612b763d819d5aaeb53389785b26109b57e90)

Author SHA1 Message Date
paul-szczepanek-arm fd0612b763 update internetsocket docs 2018-10-24 16:50:35 +01:00
Cruz Monrreal ba23fef90b
Merge pull request #8350 from mirelachirica/at_consume_to_tag_fix
Cellular: Fix for AT handler consume to tag
2018-10-22 19:45:24 -05:00
Cruz Monrreal ecb6e6effb
Merge pull request #8483 from paul-szczepanek-arm/eeprom-fix
BLE: write size first when writing an eeprom message
2018-10-22 19:03:41 -05:00
Cruz Monrreal e269d76888
Merge pull request #8465 from SeppoTakalo/secure_socket
Flag certificate verification functions with MBEDTLS_X509_CRT_PARSE_C.
2018-10-22 11:32:55 -05:00
paul-szczepanek-arm d5edd3f16c write size first 2018-10-19 15:15:10 +01:00
Anna Bridge 83dada3bdc
Merge pull request #8404 from anttiylitokola/mbed_coap_4.7.1
Update mbed-coap to version 4.7.1
2018-10-19 15:11:31 +01:00
Mirela Chirica 31f153af7d Cellular: Fix for AT handler consume to tag
If sequence from buffer contains tag but symbol before tag is same as
first symbol of the tag, then the tag wasn't detected.

For example, "\r\n" tag was not found from "\r\r\nOK" sequence.
2018-10-19 15:21:02 +03:00
Seppo Takalo c7643ea9c8 Flag certificate verification functions with MBEDTLS_X509_CRT_PARSE_C.
If Mbed TLS support for X509 is not compiled in, this class would
not compile anymore. However, there might be other uses for it, even
if certificates are not used. Therefore add flagging for X509 only
on specific functions.
2018-10-19 12:32:12 +03:00
Cruz Monrreal f3fee040c5
Merge pull request #8424 from c1728p9/doxygen_cleanup
Update doxygens to be in sync
2018-10-18 08:40:55 -05:00
Cruz Monrreal 116a743ba6
Merge pull request #8381 from michalpasztamobica/master
Fix status sequence and reporting for LWIP stack
2018-10-18 08:37:55 -05:00
Cruz Monrreal 8054060bf2
Merge pull request #8439 from KariHaapalehto/connection_status
Correct mesh network connection status callback functionality.
2018-10-17 17:41:46 -05:00
Cruz Monrreal c8ada378ab
Merge pull request #8453 from AnttiKauppila/valgrind_fixes
Fixed lorawan unittests valgrind issues
2018-10-17 17:38:38 -05:00
Cruz Monrreal fc41c3d8e3
Merge pull request #8311 from SeppoTakalo/secure_socket
Implement TLSSocket
2018-10-17 12:24:09 -05:00
Antti Kauppila f0864be1c5 Fixed lorawan unittests valgrind issues 2018-10-17 15:25:53 +03:00
Seppo Takalo 5d1cd2552b Check that MBEDTLS_ERROR_C is defined before using mbedtls_strerror().
If MBEDTLS_ERROR_C is not defined, that strerror function does not
exist, or is just dummy definition if MBEDTLS_ERROR_STRERROR_DUMMY is
defined.
2018-10-17 11:45:31 +03:00
Kari Haapalehto 1b1f5e7c0d Correct mesh network connection status callback functionality.
Now the status callback is only called if the status changed.
2018-10-17 08:30:58 +03:00
Cruz Monrreal d30ae07b6e
Merge pull request #8008 from deepikabhavnani/cleanup_features
Add required header file and namespace element instead add all
2018-10-16 21:37:20 -05:00
Cruz Monrreal adf9165af2
Merge pull request #8405 from hasnainvirk/QOS_impl_with_utests
[LoRaWAN]: Adding QOS in response to LinkADRReq and fixing class C bugs
2018-10-16 15:47:50 -05:00
Deepika 9db31d299b Resolve build issues in test
mbed.h was added in test, via greentea and utest header files. 'mbed.h' is removed
from header files and required header file and namespace is added to CPP/C files
2018-10-16 11:50:16 -05:00
Cruz Monrreal 8ac60bc1b0
Merge pull request #8050 from AriParkkila/cell-ublox-copn
Cellular: Fix Greentea tests for UBLOX_C027
2018-10-16 10:22:37 -05:00
Martin Kojtal 8faf40e3b0
Merge pull request #8434 from RonEld/change_platform_error
Change Mbed TLS platform error code and value
2018-10-16 07:17:33 -07:00
Hasnain Virk 0a9417299b Fixing coverity findings
A couple of the coverity analysis findings are being treated here. For
the rest there will be a separate PR.
2018-10-16 12:23:21 +03:00
Hasnain Virk 7818733728 Proper handling of RX1 frequency in rx_config
Previously, we weren't filling in RX1 frequecny in rx_window1_config
structure. However, everything worked as in LoRaPHY::rx_config() API
there was a check which filled in correct RX1 frequency.
Now we are filling in RX1 freq. properly while we are computing
parameters for RX1 window.
2018-10-16 12:23:21 +03:00
Hasnain Virk 9e4487c850 TX post-process for CONFIRMED UL in no-reception case
The idea behind the method post_process_no_reception() is to post
process any outgoing TX but we shouldn't do that if a CONFIRMED message
is outgoing and there are still some retries left.
2018-10-16 12:23:21 +03:00
Hasnain Virk 8d4cda11f7 Making sure that RX slots open after state change
After transmission we should change the state before invoking opening of
slots as we may start receiving in the rx slots and the state would
suddenly change from SENDING to RECEIVING without going through the
ACK_WAIT state (in case of CONFIRMED messages). Tests show that after
this slight adjustment, our number of ack retries have significantly
reduced.
2018-10-16 12:23:21 +03:00
Hasnain Virk d5ce0cc96f Adding QOS handling and fixing bugs for Class C
LinkADRReq mac command can be used by the network server to set a
certain level of QOS using NbTrans field which is applicable to
Unconfirmed traffic only for 1.0.2 spec.
This commit introduces mechanisms to facilitate this QOS. It means to
repeat an outgoing unconfirmed message NbTrans times without changing
its frame counter.

For class C, we have retired the ack_expiry_timer_for_class_c and have
replaced it with another timer which mimics the RX2 closure as in Class
A but doesn't actually close RX2 window. It's just a mechanism by which
the state machine is informed that the you can proceed forward, we have
not received anything in RX2 window either. This is needed as RX2
doesn't timeout in class C (i.e., the radio remains in continuous mode).
In addition to that we need to close any pending timers for Receive
windows after the MIC has passed and the Duplicate counter check has
also been passed.
2018-10-16 12:23:21 +03:00
Hasnain Virk dc702c2df9 Adding check for ongoing automatic-uplink
Before going after an automatic uplink, we should check if there was an
automatic uplink already ongoing, i.e., the ack for the previous
automatic uplink cycle has not been received.
If there is we shouldn't queue the new automatic uplink and wait for
the previous Ack cycle to complete.
2018-10-16 12:23:21 +03:00
Hasnain Virk 1fa2589c1e Style correction
LinkADRReq parameters and certain parameters used camel case
which is not the recommended style.
2018-10-16 12:23:21 +03:00
deepikabhavnani e95d08e471 Greentea: Add required header file and namespace element instead add all
1. RTOS is needed only for Stack stats

Move+Add all required header files for RTOS into MBED_STACK_STATS_ENABLED
define. Also added 'using namespace'

2.  Add heap stats only when MBED_HEAP_STATS_ENABLED
2018-10-15 10:57:24 -05:00
Deepika f58e103758 Netsocket: Add required header file and namespace element instead add all 2018-10-15 10:57:21 -05:00
Deepika a47c6b8139 Nanostack: Add required header file and namespace element instead add all 2018-10-15 10:57:21 -05:00
Deepika 1fe633799d Framework: Add required header file and namespace element instead add all 2018-10-15 10:57:21 -05:00
Cruz Monrreal a6651b868b
Merge pull request #8317 from yossi2le/add-flashiap-bd-as-default
Add FlashIAP block device as default block device for WISE 1570
2018-10-15 10:22:34 -05:00
Cruz Monrreal 00f8ecfb7a
Merge pull request #8336 from sentinelt/socket-closed
Fix hard-fault when socket created using accept() is closed
2018-10-15 10:22:17 -05:00
Cruz Monrreal b666cd68dc
Merge pull request #8299 from hasnainvirk/issue_8285
Making cancel_sending() API robust
2018-10-15 10:12:27 -05:00
Cruz Monrreal a9f43239be
Merge pull request #8295 from AriParkkila/cell-cinterion
Cellular: Update Cinterion AT drivers
2018-10-15 10:10:23 -05:00
Cruz Monrreal ec03df4823
Merge pull request #7980 from kjbracey-arm/thread_deprecations
Clean up rtos::Thread deprecation warnings
2018-10-15 10:09:55 -05:00
Cruz Monrreal e0e915f5db
Merge pull request #8423 from cmonr/rollup2
Rollup PR: Additional doc PRs + lingering need:CI PRs
2018-10-15 10:04:04 -05:00
Ron Eldor 2620508e12 Change Mbed TLS platform error code and value
Change error from `MBEDTLS_PLATFORM_HW_FAILED` to
`MBEDTLS_PLATFORM_HW_ACCEL_FAILED` and the value to 0x70,
as the previous value cannot be used as a low level error code.
2018-10-15 16:21:54 +03:00
Michal Paszta bc2a1c1a71 Fix status sequence and reporting for LWIP stack 2018-10-15 14:35:39 +02:00
Ari Parkkila a38247dc04 Cellular: Fix Greentea tests for UBLOX_C027 2018-10-15 03:50:46 -07:00
Seppo Takalo 7f39bb4453 Implement TLSSocket
Provide TLSSocket implementation. This implementation allows TLSSocket
to wrap around any existing socket. Currently only TLS supported. DTLS
not yet implemented.

Design document also provided with the implementation.

Documentation submitted to Mbed OS handbook.
2018-10-15 13:31:36 +03:00
Russ Butler 784fa91294 Update doxygens to be in sync
Make the following changes to doxyfile_options:
-Change CASE_SENSE_NAMES so names of files generated match mbed-os docs
-Change DISABLE_INDEX so navigation bar shows
-Change CLASS_DIAGRAMS so inheritance diagram gets generated
-Change USE_MDFILE_AS_MAINPAGE and add DOXYGEN_FRONTPAGE.md to
    FILE_PATTERNS so the correct main page is found and used
-Remove DEVICE_ETH from PREDEFINED since this is no longer relevent
-Change GENERATE_XML and XML_OUTPUT so no xml is generated
-Change SEARCHENGINE to match the docs

Make the following changes in doxygen_options.json:
-Add all non-default values in doxyfile_options to the json
-Break json into 3 groups
    1. Values that are the same as doxyfile_options
    2. Values that must be different from doxyfile_options
    3. Values the are overriden by the docs builder
-Make the doxyegn search directory "INPUT" start in mbed-os rather
    than one level above mbed-os.

Finally, rename the BLE doxygen front page so it is not confused with
the mbed-os front page.
2018-10-13 19:55:30 -05:00
Cruz Monrreal II d73b1a26a2 Merge branch 'feature_bootloader' of ssh://github.com/brianesquilona/mbed-os into brianesquilona-feature_bootloader 2018-10-12 21:46:45 -05:00
Cruz Monrreal II aaead00218 Merge branch 'ublox-cellular-api' of ssh://github.com/u-blox/mbed-os into u-blox-ublox-cellular-api 2018-10-12 21:46:38 -05:00
Cruz Monrreal II 64f560d5e3 Merge branch 'device_key' of ssh://github.com/deepikabhavnani/mbed-os into deepikabhavnani-device_key 2018-10-12 12:07:26 -05:00
Brian Esquilona f0a92f63f5 Added bootloader bin license and config for DISCO_L475VG_IOT01A 2018-10-12 11:17:03 -05:00
Amanda Butler 2da54cbb4a
Edit DeviceKey.h
Standardize tense across documents, and edit some existing text for phrasing.
2018-10-12 10:58:58 -05:00
deepikabhavnani 6031bc2fb1 Updated doxygen comments 2018-10-12 10:41:52 -05:00
Antti Yli-Tokola 032d1f5709 Update mbed-coap to version 4.7.1
Add re-scan routine goto if message is caused user callback
This will fix hard fault when blockwise message sending timeouts. This happens cause same list is manipulated through rx callback.
2018-10-12 17:11:21 +03:00