Commit Graph

3663 Commits (mbed-os-5.10)

Author SHA1 Message Date
Amir Cohen c87f44e00e Fix no block device handling 2018-11-02 19:49:54 -05:00
Amir Cohen 65a4287da2 Fix build issues 2018-11-02 19:49:54 -05:00
Amanda Butler 0d650ba439 Copy edit README.md
Copy edit file, mostly for active voice.
2018-11-02 19:49:53 -05:00
Amir Cohen a5fc2bfed3 Fix typos 2018-11-02 19:49:53 -05:00
Amir Cohen 68efa1cdf6 Fix minor issues 2018-11-02 19:49:53 -05:00
Amir Cohen eaf9fa0c39 features/storage/TESTS/blockdevice/general_block_device/README.md 2018-11-02 19:49:53 -05:00
Amir Cohen 7364a89136 Add general block device tests 2018-11-02 19:49:53 -05:00
pingdan32 ad39129e50 add entry in config file for total links configuration 2018-11-02 19:49:53 -05:00
pingdan32 69be786651 fix total link count 2018-11-02 19:49:53 -05:00
mudassar-ublox 79f5fc1784 C030_R410M cellular target added 2018-11-02 19:49:53 -05:00
Mirela Chirica fcfdb099ab 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-11-02 19:49:52 -05:00
paul-szczepanek-arm 69ffcf71f8 write size first 2018-11-02 19:49:52 -05:00
Antti Yli-Tokola 0b850b9f9b 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-19 15:13:27 +01:00
Antti Kauppila 44b009160d Fixed merge problem 2018-10-19 15:10:50 +01:00
Leon Lindenfelser f5cd8f55ac Delete commented out merge conflict resolution 2018-10-19 15:10:50 +01:00
Leon Lindenfelser fef9fb045d Add header so cellular_power tests compile and run 2018-10-19 15:10:50 +01:00
Leon Lindenfelser 9c7df2ff35 Fix broken cellular_device test and delete commented code 2018-10-19 15:10:50 +01:00
Leon Lindenfelser 89bddfe466 Fix rebase conflict file 2018-10-19 15:10:50 +01:00
Leon Lindenfelser b0b2e75384 Fix so building for other targets does not fail 2018-10-19 15:10:50 +01:00
Leon Lindenfelser fcdac9e873 Rebase and changes for Dragonfly nano support 2018-10-19 15:10:50 +01:00
Leon Lindenfelser 686d3e6af5 Fixed spacing/tabs and clean up targets.json 2018-10-19 15:10:50 +01:00
cedrick kukela 6e97d7edb6 changes to support mts dragonfly nano ppp 2018-10-19 15:10:50 +01:00
Russ Butler 915b71b650 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-19 11:46:55 +01:00
Michal Paszta 729f645193 Fix status sequence and reporting for LWIP stack 2018-10-19 11:46:55 +01:00
Kari Haapalehto 7b843a789a Correct mesh network connection status callback functionality. Now the status callback is only called if the status changed. 2018-10-19 11:46:55 +01:00
Antti Kauppila 3e24f2570a Fixed lorawan unittests valgrind issues 2018-10-19 11:46:55 +01:00
Deepika 4f3ad7db35 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-19 11:46:55 +01:00
deepikabhavnani f3e12fab11 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-19 11:46:55 +01:00
Deepika 189889446b Netsocket: Add required header file and namespace element instead add all 2018-10-19 11:46:55 +01:00
Deepika 9c8c736e88 Nanostack: Add required header file and namespace element instead add all 2018-10-19 11:46:55 +01:00
Deepika 74832b3edd Framework: Add required header file and namespace element instead add all 2018-10-19 11:46:55 +01:00
Hasnain Virk 15187b98a6 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-19 11:46:55 +01:00
Hasnain Virk 13530d1feb 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-19 11:46:55 +01:00
Hasnain Virk a72d83287d 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-19 11:46:55 +01:00
Hasnain Virk cee09b6656 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-19 11:46:55 +01:00
Hasnain Virk a1260998b4 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-19 11:46:55 +01:00
Hasnain Virk 0413129fbf 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-19 11:46:55 +01:00
Hasnain Virk c648c7f011 Style correction
LinkADRReq parameters and certain parameters used camel case
which is not the recommended style.
2018-10-19 11:46:55 +01:00
Ron Eldor 78246e46d1 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-19 11:46:55 +01:00
Yossi Levy 4e019a646a Removing nvstore. adding back the option for configuration as in the external repo 2018-10-19 11:46:55 +01:00
Yossi Levy ca2076709d Fixing the order of component if more than one is included for a target. Revert deprecation of FlashIAPBlockDevice 2 argument constructor has this was a breaking change. This follows a similar change in the external flashiap-driver repo. 2018-10-19 11:46:55 +01:00
Sławek Piotrowski 50dd1eb950 Fix hard-fault when socket created using accept() is closed
When socket created  using accept() is closed by calling the close()
method, "delete this" is executed which triggers the destructor call
on TCPSocket which in turn calls close() once again. Because _stack
is already 0 this results in a hard-fault.

Add a check that skips the rest of the close() method is the _stack
is already 0.
2018-10-19 11:46:55 +01:00
Hasnain Virk 6404d94dce Making cancel_sending() API robust
If the packet is already handed over to the PHY layer, we shouldn't be
able to cancel that particular transmission. In addition to that if the
backoff timer is either not applied or has been deactivated, should end
up in no-op rather than having normal termination. A new error code has
been introduced to cover no-op cases. This error code replaces the
compliance test related error code which is no longer relevant.
clear_tx_pipe() does nothing if:
	- The stack cannot cancel TX (already handed over to PHY)
        - The backoff timer is not active at all
        - The event is disaptched to schedule

stop_sending() will only post process ongoin TX if the pipe was
definitely cleared.
2018-10-19 11:46:55 +01:00
Brian Esquilona 7b4d7a9110 Added bootloader bin license and config for DISCO_L475VG_IOT01A 2018-10-19 11:46:55 +01:00
mudassar-ublox 888ef5f6d8 error handling for socket create 2018-10-19 11:46:55 +01:00
Amanda Butler 15f7b6f010 Edit DeviceKey.h
Standardize tense across documents, and edit some existing text for phrasing.
2018-10-19 11:46:55 +01:00
deepikabhavnani 14d776f79e Updated doxygen comments 2018-10-19 11:46:55 +01:00
Deepika 7bef43ad1a Storage: Add required header file and namespace element instead add all 2018-10-19 11:46:55 +01:00
Cruz Monrreal II 762cf0393b Revert "Merge pull request #8183 from hasnainvirk/QOS_impl"
This reverts commit 5c675d3688, reversing
changes made to 2b04a02eb2.
2018-10-19 11:46:55 +01:00
Antti Yli-Tokola a9afbb652f Update mbed-coap to version 4.7.0
- Add function that can be used to clear the received blockwise payloads for example in the case of a connection error.
- Silence compiler warning when CoAP duplicate detection is enabled.
2018-10-19 11:46:55 +01:00
Mirela Chirica 866019f042 Cellular: Fix compile warnings for CellularNetwork 2018-10-19 11:46:55 +01:00
Yossi Levy b9f8c95a99 Fix warnings in block devices 2018-10-19 11:46:55 +01:00
jeromecoutant 7759077e17 STM32 EMAC : lock deep sleep 2018-10-19 11:46:55 +01:00
Hasnain Virk 70ad11e2f1 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-19 11:46:55 +01:00
Hasnain Virk 925d51492f 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-19 11:46:55 +01:00
Hasnain Virk c42b7909da 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-19 11:46:55 +01:00
Hasnain Virk d776f5cb6a 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-19 11:46:55 +01:00
Hasnain Virk 80d07ffe54 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-19 11:46:55 +01:00
Hasnain Virk 258b2813dd 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-19 11:46:55 +01:00
Hasnain Virk 0969c0f367 Style correction
LinkADRReq parameters and certain parameters used camel case
which is not the recommended style.
2018-10-19 11:46:55 +01:00
Oren Cohen 42f1b4e07d Restore disk_get_sector_size() to return WORD 2018-10-19 11:46:55 +01:00
Oren Cohen a1de6c037d Fix overflow in disk_get_sector_size() 2018-10-19 11:46:55 +01:00
Michal Paszta 8c72bd5c0b unittests: Added tests for netsocket classes
New classes covered with unit tests: SocketAddress, EthernetInterface, EMACInterface, WiFiAccessPoint.
Also added missing namespace in front of mbed::Callback usages.
EMACInterface is covered by the EthernetInterface unit tests.
2018-10-19 11:46:55 +01:00
TomoYamanaka 0721a76e32 Improve the config adjustment script for ENTROPY_NV_SEED
Although "nv_seed" is one of "entropy", it doesn't included to the "!defined" lineup in the following config file.
Therefore, when MBEDTLS_ENTROPY_NV_SEED is defined, it is accidently invoked "mbedtls/config-no-entropy.h".
mbed-os\features\mbedtls\inc\mbedtls\config.h
I think that correct processing should go to line 47, not line 40.
2018-10-19 11:46:55 +01:00
Andrew Leech 19cd207c21 nrf_ble: Expose configuration of max number of characteristics and descriptors 2018-10-19 11:46:55 +01:00
Jarkko Paso 4c63e4adda platform timer: Call timer start in enable
This timer was never started and therefore read_us returned always 0 causing bad timings.
2018-10-19 11:46:55 +01:00
Kimmo Vaisanen bff5c3be86 Cellular: Fix AT_CellularStack unittest
Missing CellularSocket constructor caused uninitialized values to be used.

Also changed comparision macros to ASSERT_EQ as suggested by GoogleTest guide.
2018-10-19 11:46:55 +01:00
Mirela Chirica 8346498a28 Cellular: Fix greentea network set credentials test case 2018-10-19 11:46:55 +01:00
Kimmo Vaisanen f16cdf45d9 Add missing SIM PIN configuration item 2018-10-19 11:46:55 +01:00
Jaakko Korhonen 758fca4644 Removed cellular PIN code print from debug log. 2018-10-19 11:46:55 +01:00
David Saada d00224ea33 Fix is_valid_erase function to use get_erase_size with address 2018-10-19 11:46:55 +01:00
Wajahat Abbas 861d649a7e corrected a typo in AT_CellularPower::opt_power_save_mode 2018-10-19 11:46:55 +01:00
Moran Peker eb76a2419c Disable MBEDTLS_SHA256_ALT on STM targets. 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm d07432174e assert instead of error 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 120f0e987b remove pointless cast 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 3f2b8882f2 fix namespace errors 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 92434ac77d change namespace 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 98ddcc1955 removed unusused header 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm 637fba671a moved SimpleEventQueue 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm fe09b9195b check WsfBufAlloc 2018-10-08 15:29:18 +01:00
paul-szczepanek-arm e47117ab1a replace malloc with cirdio buffer allocation 2018-10-08 15:29:18 +01:00
Antti Kauppila 04c16412cf cmake Paths corrected 2018-10-08 15:29:18 +01:00
Antti Kauppila 18a1e66ebc LoRaMac unittested 2018-10-08 15:29:18 +01:00
Antti Kauppila 8bed43e4f8 LoRaWANStack unit tested 2018-10-08 15:29:18 +01:00
Antti Kauppila 41d0648fdd LoRaMacCrypto unittested 2018-10-08 15:29:18 +01:00
Antti Kauppila 1f24d725a7 LoRaPHY unittested, small fixed done during tests 2018-10-08 15:29:18 +01:00
Antti Kauppila 07d2ce69ca LoRa regions unittested, stubs licences revisited 2018-10-08 15:18:50 +01:00
Antti Kauppila 474b652820 More lorawan unit tests added 2018-10-08 15:18:50 +01:00
deepikabhavnani 7577ff5bb5 Added thread safety info to FatFs/LittleFs 2018-10-08 15:18:50 +01:00
paul-szczepanek-arm 9d81960b89 fix using an invalid cccd index 2018-10-08 15:18:50 +01:00
Teppo Järvelin 918820c9ce Cellular: state machine and easycellular now return error fast if sim pin needed but not provided. 2018-10-08 15:18:50 +01:00
Juho Eskeli ae65a2a609 Align writes to blockdevice write size in MBRBlockDevice 2018-10-08 15:18:50 +01:00
Aashish chaddha ec18321551 skip the flashsim test if enough memory cannot be allocated for it. 2018-10-08 15:18:50 +01:00
Mirela Chirica 523edf0561 Cellular: Fix cellular network unit test 2018-10-08 15:18:50 +01:00
Edd Inglis 366ad09e67 Changed the reported SNR from unsigned to signed. Internally and logically it is a signed value. 2018-10-08 15:18:50 +01:00
paul-szczepanek-arm 38b0df0f79 fix whitelist generation (set correct address type) 2018-10-08 15:18:50 +01:00
David Saada 8f806f834e Handle NVStore tests in a low memory environment 2018-10-08 15:18:50 +01:00
Ari Parkkila 85a6a075eb Cellular: Disable AT+CGAUTH on HE910 and BC95 2018-10-08 15:18:50 +01:00
Ari Parkkila fe385baa88 Cellular: Implement APN authentication for BG96 2018-10-08 15:18:50 +01:00
Ari Parkkila a060089a7a Cellular: Fix APN authentication before context activation 2018-10-08 15:18:50 +01:00