Commit Graph

3944 Commits (f6c1a40b29744e5599a9d6c12df550aa0fc03e82)

Author SHA1 Message Date
Amanda Butler 6db0f67690
Edit InternetSocket.h
Edit file, mostly for branding, commas and U.S. spelling.
2018-10-25 14:49:48 -05:00
deepikabhavnani 451cf7ccb3 Add required namespace instead of relying on mbed.h
mbed.h has 'using namespace mbed;', hence some of the files skip
adding required namespace to the code, it is always good to specify the
namespace around the elements in header and `using namespace` in
specific CPP files, instead of all
2018-10-25 12:43:59 -05:00
Amanda Butler c02f2164d5
Edit UDPSocket.h
Edit file, mostly for minor spelling to existing text.
2018-10-25 11:02:48 -05:00
paul-szczepanek-arm 446ab5d592 review fixes 2018-10-25 16:28:19 +01:00
Paul Szczepanek 85b9b23711
capitalisation 2018-10-25 11:30:59 +01:00
Paul Szczepanek 5241c3b38d
Update WiFiInterface.h 2018-10-25 11:24:11 +01:00
Paul Szczepanek de261a4673
Update CellularBase.h 2018-10-25 11:22:13 +01:00
Melinda Weed 8c2bd401d2 editorial changes, passive to active, removing redundancy 2018-10-25 10:35:05 +03:00
paul-szczepanek-arm 4f2645b3fc incorrect doc was copy pasted
replaced with copydoc instead
2018-10-24 20:57:25 +01:00
paul-szczepanek-arm 3929f5630b missing doxy 2018-10-24 20:54:08 +01:00
paul-szczepanek-arm e31337dab7 remove redundancy and maintainance overhead 2018-10-24 20:49:28 +01:00
paul-szczepanek-arm 5837e3771e return codes 2018-10-24 20:35:53 +01:00
paul-szczepanek-arm 6cdda58cec doxygen fixes 2018-10-24 20:24:33 +01:00
paul-szczepanek-arm 8a7d96c75f doxy cleanup 2018-10-24 17:45:52 +01:00
Simon Butcher 650d8dc355 Improve Mbed TLS README.md
Improves the language, formatting and clarity of the Mbed TLS README.md.
2018-10-24 17:07:02 +01:00
paul-szczepanek-arm fd0612b763 update internetsocket docs 2018-10-24 16:50:35 +01:00
Cruz Monrreal b18c819837
Merge pull request #8519 from cmonr/rollup
Rollup PR - UK Docathon pt1
2018-10-24 09:32:46 -05:00
Martin Kojtal 7cd1478147
Merge pull request #8003 from Taiki-San/patch-2
Leverage the simplification of the IPv6 parsing primitive
2018-10-24 14:13:16 +01:00
Martin Kojtal 5b25b6643d
Merge pull request #8478 from JarkkoPaso/fhss_timer_dev
Fhss timer dev
2018-10-24 09:43:13 +01:00
Cruz Monrreal II 975be7b622 Merge branch 'conbra01/docaton_networksocket' of ssh://github.com/ConradBraam/mbed-os into rollup 2018-10-23 22:38:30 -05:00
Cruz Monrreal 2a504092b1
Merge pull request #8430 from theamirocohen/block_device_general_tests
Block device general tests
2018-10-23 17:35:31 -05:00
Cruz Monrreal cd559940b5
Merge pull request #7966 from pingdan32/fix_nrf52_total_link
nrf52-ble: fix total links count
2018-10-23 12:32:17 -05:00
Amanda Butler 0a82253cf5
Add comma to SocketAddress.h
Add comma to existing text.
2018-10-23 11:27:25 -05:00
Cruz Monrreal 39b4872233
Merge pull request #8369 from u-blox/ublox-cellular-target
Cellular: UBLOX_C030_R410M cellular target add
2018-10-23 10:54:44 -05:00
Cruz Monrreal 69904ea43e
Merge pull request #8313 from kivaisan/reduce_memory_footprint
Reduce cellular memory footprint
2018-10-23 09:05:39 -05:00
Conrad Braam e919511d98 Explain default port number, and construction 2018-10-23 15:01:28 +01:00
Amir Cohen 54d2f66aec Fix no block device handling 2018-10-23 16:41:54 +03:00
aqin 9854c1bbeb updating method name to make it more descriptive 2018-10-23 18:14:32 +05:00
Taiki 3bc33f6c3e Use the parsing status as a way to detect if the IP string represent a valid IPv6 address 2018-10-23 11:25:52 +02:00
Amir Cohen 7962e0c525 Fix build issues 2018-10-23 10:54:58 +03:00
Amanda Butler 8bca678ed8 Copy edit README.md
Copy edit file, mostly for active voice.
2018-10-23 10:54:58 +03:00
Amir Cohen 71431437fd Fix typos 2018-10-23 10:54:58 +03:00
Amir Cohen 5a2e7e3367 Fix minor issues 2018-10-23 10:54:58 +03:00
Amir Cohen 1b45d00bde features/storage/TESTS/blockdevice/general_block_device/README.md 2018-10-23 10:54:58 +03:00
Amir Cohen 7d7a553836 Add general block device tests 2018-10-23 10:54:58 +03: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
Kimmo Vaisanen 963bf8146d Cellular: Refactor basic AT command stop and response reading into own method
This reduces ROM usage by few hundred bytes.
2018-10-22 09:44:12 +03:00
Kimmo Vaisanen 553718ba5b Cellular: Optimize memory usage for gsm_to_ascii table
gsm_to_ascii table contains ASCII codes, so it can be a char table instead of int table.

This reduces ROM usage by 384 bytes.
2018-10-22 08:35:33 +03: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
Jarkko Paso 61f4af0320 FHSS timer driver: Check if timeout alloc fails 2018-10-18 16:38:06 +03: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
Jarkko Paso 1b01709b3b FHSS timer driver: Make number of timeouts configurable 2018-10-18 16:37:51 +03:00
Jarkko Paso ea0f4863a2 FHSS timer: Calculation in critical state 2018-10-18 16:37:37 +03:00
Jarkko Paso 440fbfd694 NS hal: Implemented FHSS driver 2018-10-18 16:37:00 +03:00
aqin c539656299 update with ARM coding standard 2018-10-18 14:04:04 +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
aqin 2ac6cff107 BLE support added 2018-10-17 14:19:14 +05: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
Kimmo Vaisanen d7e07164fe Cellular: Gemalto TCP Socket support 2018-10-16 14:30:24 +03: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
Kevin Bracey 1ef213ec89 Clean up Thread deprecation warnings
Static Thread methods and signal methods have been deprecated. Remove
all references in the main code, and most of the tests. Some tests of
the deprecated APIs themselves remain.
2018-10-12 14:57:13 +03:00
Anna Bridge 8dcc949c63
Merge pull request #8002 from deepikabhavnani/storage_remove_mbed_h
Storage: Add required header file and namespace element instead add all
2018-10-12 11:06:35 +01:00
Cruz Monrreal II dd8e9bb954 Revert "Merge pull request #8183 from hasnainvirk/QOS_impl"
This reverts commit 5c675d3688, reversing
changes made to 2b04a02eb2.
2018-10-11 16:51:46 -05:00
Cruz Monrreal 3568c54da6
Merge pull request #8180 from kivaisan/quectel_bg96_tcp_socket
Cellular: Quectel BG96 TCP socket support
2018-10-11 10:14:25 -05:00
Cruz Monrreal 2c296fcfd6
Merge pull request #8273 from anttiylitokola/mbed-coap-4.7.0
Update mbed-coap to version 4.7.0
2018-10-11 10:12:54 -05:00
Cruz Monrreal f9e5167126
Merge pull request #8258 from mirelachirica/fix_compile_warning_network
Cellular: Fix compile warnings for CellularNetwork
2018-10-11 10:11:54 -05:00
Cruz Monrreal 0aed6bb43f
Merge pull request #8256 from yossi2le/fix_warnings_in_blockdevices
Fix warnings in block devices
2018-10-11 10:10:55 -05:00
Cruz Monrreal 2a91a91313
Merge pull request #8219 from jeromecoutant/PR_EMAC_SLEEP
STM32 EMAC : lock deep sleep
2018-10-11 10:10:32 -05:00
Cruz Monrreal 5c675d3688
Merge pull request #8183 from hasnainvirk/QOS_impl
Adding QOS in response to LinkADRReq and fixing class C bugs
2018-10-11 10:09:37 -05:00
Cruz Monrreal 2b04a02eb2
Merge pull request #7902 from orenc17/fat_fix
Fix overflow in disk_get_sector_size()
2018-10-11 10:08:46 -05:00
Cruz Monrreal c43a3f4dfb
Merge pull request #8148 from kivaisan/wise_1570_cellular_tcp
Cellular: Quectel BC95 TCP socket support
2018-10-10 15:49:30 -05:00
Cruz Monrreal 21b4ecad1a
Merge pull request #8316 from michalpasztamobica/master
unittests: Add tests for netsocket classes
2018-10-10 10:11:12 -05:00
Yossi Levy b84f377b73 Removing nvstore. adding back the option for configuration as in the external repo 2018-10-10 17:15:46 +03:00
Cruz Monrreal d58f241b75
Merge pull request #8245 from artokin/nanostack_libservice_update
Nanostack libservice update
2018-10-10 08:44:09 -05:00
Cruz Monrreal 70252f8271
Merge pull request #8114 from mirelachirica/registration_params_2
Registration parameters as struct
2018-10-10 08:42:06 -05:00
Cruz Monrreal 0cf26eb1cb
Merge pull request #7877 from TomoYamanaka/improve_nv_seed_of_tls
Improve the config ajustment script of TLS for ENTROPY_NV_SEED
2018-10-10 08:40:06 -05:00
Oren Cohen 9e337bb600 Restore disk_get_sector_size() to return WORD 2018-10-10 14:57:44 +03:00
Oren Cohen 37b5442656 Fix overflow in disk_get_sector_size() 2018-10-10 14:57:42 +03:00
Yossi Levy 473f8d3f94 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-10 12:32:08 +03:00
Martin Kojtal 313073ca3e
Merge pull request #7958 from andrewleech/nrf_ble_configs
nrf_ble: Expose configuration of max characteristics and descriptors
2018-10-09 10:35:11 -05:00
Martin Kojtal 9c28794b2e
Merge pull request #8210 from JarkkoPaso/master
platform timer: Call timer start in enable
2018-10-09 10:34:57 -05:00
Mirela Chirica ffb9cdb4b3 Cellular: Registration parameters as struct 2018-10-09 10:49:47 +03:00
Mirela Chirica 723e913bcc Cellular: AT handler read string up to delimiter or stop tag 2018-10-09 10:47:25 +03:00
ccli8 8ef23ff54d Fix mis-recognize that Windows-formatted SD card has valid partitions
For Windows-formatted SD card, it is not partitioned (no MBR), but its PBR has the
same boot signature (0xaa55) as MBR. We would easily mis-recognize this SD card has valid
partitions if we only check partition type. We add check by only accepting 0x00 (inactive)
/0x80 (active) for valid partition status.
2018-10-09 11:06:49 +08:00
Cruz Monrreal b15d09173e
Merge pull request #8315 from kivaisan/fix_cellular_unittests
Fix cellular unittests
2018-10-08 10:24:31 -05:00
Cruz Monrreal bff4f4be6c
Merge pull request #8268 from mirelachirica/fix_gt_set_credentials
Cellular: Fix greentea network set credentials test case
2018-10-08 10:17:05 -05:00
Cruz Monrreal b2f00fb416
Merge pull request #8179 from kivaisan/add_default_cellular_sim_pin
Add missing SIM PIN configuration item
2018-10-08 10:12:41 -05:00
Cruz Monrreal b153bb3f77
Merge pull request #8057 from korjaa/remove_sim_pin_print
Removed cellular PIN code print from debug log.
2018-10-08 10:07:11 -05:00
Deepika 8642ece022 Storage: Add required header file and namespace element instead add all 2018-10-08 07:32:04 -05:00
Michal Paszta 5b4634a1fe 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-08 14:21:01 +02:00
Martin Kojtal 365d61e4a9
Merge pull request #7304 from cedrickkukela-cd/MTS_DRAGONFLY_L471QG_pull_request_feature_changes
Add MTS dragonfly, MTS dragonfly l471
2018-10-08 11:06:23 +02:00
mudassar-ublox 9c2686fda6 error handling for socket create 2018-10-08 12:24:40 +05:00
Ari Parkkila 3784dd066e Cellular: Fixed AT drivers for Gemalto/Cinterion cellular module to close internet service and profile. 2018-10-08 00:14:29 -07:00
Sławek Piotrowski 9b89ad2fa9 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-06 21:15:29 +02:00
Martin Kojtal bc706f0329
Merge pull request #8142 from moranpeker/disable-HW-acceleration
Disable MBEDTLS_CONFIG_HW_SUPPORT on STM targets.
2018-10-06 07:46:13 +02:00
Martin Kojtal 5faac0e4ba
Merge pull request #8269 from paul-szczepanek-arm/fix-event-malloc
BLE: replace malloc with cordio buffer allocation
2018-10-06 07:44:39 +02:00
Martin Kojtal 943130c1fa
Merge pull request #8233 from AnttiKauppila/lora_unittests
Lora unittests
2018-10-05 22:20:47 +02:00
Martin Kojtal f42aab7715
Merge pull request #8121 from deepikabhavnani/thread_safety_info
Add thread safety info to FatFs/LittleFs
2018-10-05 16:56:55 +02:00
Martin Kojtal 41711d5240
Merge pull request #8318 from paul-szczepanek-arm/fix-gatt-server
BLE: fix use of invalid cccd index
2018-10-05 16:55:05 +02:00
mudassar-ublox 903b6d6d19 C030_R410M cellular target added 2018-10-05 17:21:51 +05:00
Arto Kinnunen 1dac676833 Merge commit '7d2f0cab63a2223a426c44e13f771abe6a7d7eaf'
* commit '7d2f0cab63a2223a426c44e13f771abe6a7d7eaf':
  Squashed 'features/frameworks/nanostack-libservice/' changes from 2705b9b..5eb2f3f
2018-10-05 13:09:29 +03:00
Martin Kojtal 2247494596
Merge pull request #7978 from jarvte/fix_cellular_no_pin
Cellular: state machine and easycellular now return error fast if sim…
2018-10-04 13:38:34 +02:00
paul-szczepanek-arm 366a5018b5 fix using an invalid cccd index 2018-10-03 16:16:41 +01:00
Kimmo Vaisanen 05f0ba8e97 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-03 14:44:34 +03:00
Simon Butcher fee476e481 Update Mbed TLS README.md followng review
Numerous changes to language, grammar, and corrections, following review.
2018-10-03 12:16:50 +01:00
Andrew Leech a6f33a1a35 nrf_ble: Expose configuration of max number of characteristics and descriptors 2018-10-03 10:54:09 +10:00
Moran Peker 333f087386 Disable MBEDTLS_SHA256_ALT on STM targets. 2018-10-02 14:35:22 +03:00
Hasnain Virk 603ee28098 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-02 14:07:52 +03:00
Leon Lindenfelser f0a5dce37f Delete commented out merge conflict resolution 2018-10-01 08:25:47 -05:00
Jaakko Korhonen 473ac20017 Removed cellular PIN code print from debug log. 2018-10-01 09:11:28 +03:00
Nir Sonnenschein f1587b50d7
Merge pull request #8262 from juhoeskeli/mbrblockdevice_align
Align MBRBlockDevice writes to underlying BlockDevice write size
2018-09-28 13:23:55 +03:00
Leon Lindenfelser 88c1cd1e37 Add header so cellular_power tests compile and run 2018-09-27 15:49:06 -05:00
Leon Lindenfelser ff817de28c Fix broken cellular_device test and delete commented code 2018-09-27 14:21:57 -05:00
paul-szczepanek-arm 88a87518b4 assert instead of error 2018-09-27 17:07:40 +01:00
paul-szczepanek-arm 8f5e2725ae remove pointless cast 2018-09-27 17:03:31 +01:00
paul-szczepanek-arm 64f93586b5 fix namespace errors 2018-09-27 16:58:19 +01:00
Antti Yli-Tokola 4c692c6b45 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-09-27 18:55:46 +03:00
paul-szczepanek-arm a0df7fc637 change namespace 2018-09-27 16:36:48 +01:00
Cruz Monrreal 6b85ec7c57
Merge pull request #7953 from davidsaada/david_is_valid_erase_fix
Fix is_valid_erase function to use get_erase_size with address
2018-09-27 10:20:56 -05:00
Cruz Monrreal 9bd17d33f3
Merge pull request #7934 from wajahat-ublox/psm_method_typo
corrected a typo in AT_CellularPower::opt_power_save_mode
2018-09-27 10:20:44 -05:00
paul-szczepanek-arm 5fee50b53d removed unusused header 2018-09-27 14:05:58 +01:00
paul-szczepanek-arm abfd647279 moved SimpleEventQueue 2018-09-27 13:56:38 +01:00
paul-szczepanek-arm 46d19d3732 check WsfBufAlloc 2018-09-27 13:45:36 +01:00
paul-szczepanek-arm 90be8d7807 replace malloc with cirdio buffer allocation 2018-09-27 12:20:00 +01:00
Mirela Chirica 85df0b5cce Cellular: Fix greentea network set credentials test case 2018-09-27 13:51:49 +03:00
Antti Kauppila a54c271814 cmake Paths corrected 2018-09-27 11:30:52 +03:00
Antti Kauppila f6ecb319d0 LoRaMac unittested 2018-09-27 11:30:52 +03:00
Antti Kauppila bd9066431f LoRaWANStack unit tested 2018-09-27 11:30:52 +03:00
Antti Kauppila e07940d5e7 LoRaMacCrypto unittested 2018-09-27 10:49:07 +03:00
Antti Kauppila f3d402f70e LoRaPHY unittested, small fixed done during tests 2018-09-27 10:49:07 +03:00
Antti Kauppila 0f8cfd8631 LoRa regions unittested, stubs licences revisited 2018-09-27 10:49:07 +03:00
Antti Kauppila 0f83f08043 More lorawan unit tests added 2018-09-27 10:49:07 +03:00
Leon Lindenfelser 97d6a91eb9 Fix rebase conflict file 2018-09-26 15:54:03 -05:00
Leon Lindenfelser 9791e98575 Fix so building for other targets does not fail 2018-09-26 15:39:42 -05:00
Leon Lindenfelser 5ff0eb9d92 Rebase and changes for Dragonfly nano support 2018-09-26 15:39:42 -05:00
Leon Lindenfelser 55bcf93574 Fixed spacing/tabs and clean up targets.json 2018-09-26 15:37:33 -05:00
cedrick kukela 59dda88e05 changes to support mts dragonfly nano ppp 2018-09-26 15:37:33 -05:00
Juho Eskeli d32b454c5b Align writes to blockdevice write size in MBRBlockDevice 2018-09-26 22:43:27 +03:00
Simon Butcher 0fd0de6f31 Update the Mbed TLS README.md
Add content missing from the README.md taken from the Yotta/Mbed OS 3 Readme.
2018-09-26 16:33:17 +01:00
Mirela Chirica 265255305a Cellular: Fix compile warnings for CellularNetwork 2018-09-26 16:39:05 +03:00
Martin Kojtal 37654e546a
Merge pull request #7696 from aashishc1988/wizwiki_iar_error
skip the flashsim test if not enough memory cannot be allocated for it.
2018-09-26 15:08:23 +02:00
Yossi Levy dd065e3be1 Fix warnings in block devices 2018-09-26 14:35:48 +03:00
pingdan32 45ae7f75c6 add entry in config file for total links configuration 2018-09-26 13:25:13 +08:00
Cruz Monrreal 3bec1b75c1
Merge pull request #8229 from mirelachirica/fix_network_and_util_ut
Fix network and util ut
2018-09-25 10:35:36 -05:00
Martin Kojtal a999289365
Merge pull request #8034 from EnsilicaEdd/snr_unsigned_signed
Changed the reported SNR from unsigned to signed.
2018-09-25 13:23:14 +02:00
Mirela Chirica 983425e4fc Cellular: Fix cellular network unit test 2018-09-24 15:15:18 +03:00
Martin Kojtal f0c6a66285
Merge pull request #8005 from paul-szczepanek-arm/fix-whitelist-gen
BLE: fix whitelist generation (set correct address type)
2018-09-24 10:17:46 +02:00
Martin Kojtal 2e049ce035
Merge pull request #8019 from jarvte/fix_crash_in_close_cellularnetwork
Cellular: fixed crash when closing CellularNetwork via CellularDevice.
2018-09-24 09:06:34 +02:00
Martin Kojtal e7cd6ae2a9
Merge pull request #7746 from davidsaada/david_nvstore_test_low_mem
Handle NVStore tests in a low memory environment
2018-09-24 08:25:20 +02:00
Cruz Monrreal 73a96a68cf
Merge pull request #8147 from AriParkkila/cell-auth
Fix authentication on a cellular network for Access Point Name (APN)
2018-09-22 16:25:35 -05:00
Cruz Monrreal 5eb314f65f
Merge pull request #8164 from OpenNuvoton/nuvoton_iot_m487
Support Nuvoton's new target NUMAKER_IOT_M487
2018-09-21 21:31:22 -05:00
Cruz Monrreal caa4279244
Merge pull request #8023 from SiliconLabs/hotfix/nanostack-default-interface
Hotfix for PR #7778 on Silicon Labs targets
2018-09-21 12:50:43 -05:00
jeromecoutant 79bef6e2c8 STM32 EMAC : lock deep sleep 2018-09-21 15:14:38 +02:00
Hasnain Virk bc976c6545 Fixing coverity findings
A couple of the coverity analysis findings are being treated here. For
the rest there will be a separate PR.
2018-09-21 15:55:30 +03:00
Hasnain Virk 0d3ec26b4a 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-09-21 15:55:30 +03:00
Hasnain Virk 19e87ceab9 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-09-21 15:55:30 +03:00
Hasnain Virk c9d6741212 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-09-21 15:55:30 +03:00
Hasnain Virk 94eb4c0bc0 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-09-21 15:55:30 +03:00
Hasnain Virk 5bfa7c03ba 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-09-21 15:55:30 +03:00
Hasnain Virk 76814d4847 Style correction
LinkADRReq parameters and certain parameters used camel case
which is not the recommended style.
2018-09-21 15:55:30 +03:00
Jarkko Paso a3ec9f3982 platform timer: Call timer start in enable
This timer was never started and therefore read_us returned always 0 causing bad timings.
2018-09-21 11:53:56 +03:00
Martin Kojtal 0c8aa2823d
Merge pull request #8096 from kivaisan/fix_mac_command_retransmission
Lora: Fix sticky MAC command retransmissions
2018-09-21 09:47:47 +02:00
Cruz Monrreal 9346a7e781
Merge pull request #7935 from kivaisan/fix_invalid_mac_command_case
LoRa: Stop processing MAC commands if command id is unknown
2018-09-20 10:14:59 -05:00
Martin Kojtal f3af8267c5
Merge pull request #8074 from hasnainvirk/compliance_testing
LoRaWAN: Refactoring compliance test code
2018-09-20 13:10:47 +02:00
Kimmo Vaisanen 19d90bd25e Lora: Fix sticky MAC command retransmission
This commit fixes the bug where sticky MAC commands were duplicated in
send buffer everytime send() was called.
2018-09-20 12:20:17 +03:00
David Saada 999042dda3 Handle NVStore tests in a low memory environment 2018-09-20 11:53:51 +03:00
Martin Kojtal 843b15bfc9
Merge pull request #8145 from JaniSuonpera/NUCLEO_F207ZG
Add bootloader image for Nucleo F207ZG
2018-09-20 09:10:09 +02:00
Martin Kojtal d8ec21a99a
Merge pull request #8054 from kivaisan/fix_ADRAckReq
Lora: Fix ADRAckReq
2018-09-19 16:59:08 +02:00
Steven 9a0fc98bdc Hotfix for PR #7778
TB_SENSE_12 would have been left behind by the changes in #7778. This commit implements the changes in mbed to allow targets to provide a default network interface for Silicon Labs targets.
2018-09-19 12:30:21 +02:00
Kimmo Vaisanen 7931378245 Cellular: Quectel BG96 TCP socket support 2018-09-19 13:01:48 +03:00
Kimmo Vaisanen 95114fe8ed Add missing SIM PIN configuration item 2018-09-19 12:24:46 +03:00
Cruz Monrreal c356f1f9d4
Merge pull request #7883 from juhaylinen/fix-netsocket-warning
netsocket: Fix compiler warning
2018-09-18 11:42:21 -05:00
Aashish chaddha 887aafe321 skip the flashsim test if enough memory cannot be allocated for it. 2018-09-18 11:38:39 -05:00
Cruz Monrreal f00c5643e5
Merge pull request #7944 from AnttiKauppila/unittests
Cellular Unittests refactored to GoogleTest framework
2018-09-18 11:30:23 -05:00
Cruz Monrreal c3128cdfce
Merge pull request #7981 from paul-szczepanek-arm/ondatasent
BLE: fix missing updates sent callback in GattServer using Cordio stack
2018-09-18 11:30:02 -05:00
Teppo Järvelin ed7606bf0c Cellular: fixed crash when closing CellularNetwork via CellularDevice. 2018-09-18 14:45:07 +03:00
Martin Kojtal 87daf8f8c3
Merge pull request #7969 from jarvte/cellu_multiple_context
Cellular: CellularDevice:get_default_instance() implemented
2018-09-17 14:52:10 +02:00
Martin Kojtal aca7740f00
Merge pull request #7982 from hasnainvirk/mem_overrun
LoRaWAN: Memory overrun correction
2018-09-17 14:43:13 +02:00
Martin Kojtal 10b5a3a9d8
Merge pull request #7960 from RonEld/set_NULL_as_platform_context
Change mbedtls_platform_context parameter to NULL
2018-09-17 14:30:03 +02:00
Jani Suonpera 4c94d78f1b Rename F207ZG bootloader binary
Typo fix and fix version hash.
2018-09-17 14:03:35 +03:00
Ari Parkkila 13106fb774 Cellular: Disable AT+CGAUTH on HE910 and BC95 2018-09-17 03:28:18 -07:00
Kimmo Vaisanen 1f1b5d3a5a Cellular: Quectel BC95 TCP socket support 2018-09-17 13:06:24 +03:00
Antti Kauppila a6b4938844 Small improvements for test cases 2018-09-17 12:07:43 +03:00
Antti Kauppila adc4ce4385 Old Cellular UNITTESTS removed 2018-09-17 12:07:43 +03:00
Ari Parkkila 4698cd268d Cellular: Implement APN authentication for BG96 2018-09-17 01:14:59 -07:00
Ari Parkkila fb899d2cc1 Cellular: Fix APN authentication before context activation 2018-09-17 01:14:59 -07:00
Jani Suonpera fc6ff090bd Add bootloader image for Nucleo F207ZG 2018-09-17 10:48:11 +03:00
Cruz Monrreal 8475477ca7
Merge pull request #7992 from SeppoTakalo/fix-tcpsocket-accept
Fix TCPSocket::accept()
2018-09-14 11:49:06 -05:00
deepikabhavnani 1cb87d3235 Added thread safety info to FatFs/LittleFs 2018-09-13 11:32:36 -05:00
Anna Bridge d6ccf46bbc
Merge pull request #8031 from juhaylinen/fix-tcpserver
Fix TCPServer::accept()
2018-09-13 13:09:55 +01:00
ccli8 d2c8be678f [M487] Add missing mbedtls_device.h for NUMAKER_IOT_M487 2018-09-11 18:25:14 +08:00
Hasnain Virk e110856941 LoRaWAN: Refactoring compliance test code
While performing compliance tests with an industry tester, we realized
that there was no need for any extra handling code for the compliance
tests. The tests would run fine, if we only have a handling application.
However, in normal operation we wouldn't like the network to send us any
traffic on compliance testing port. To mitigate that, on the reception
path we filter out any traffic on compliance testing port if compliance
testing is not underway. User should define LORAWAN_COMPLIANCE_TEST macro
in mbed_app.json to enable traffic on compliance test port.
2018-09-11 11:26:31 +03:00
Kimmo Vaisanen 782e470306 Lora: Fix ADRAckReq
This commit fixes two bugs related to ADRAckReq:
- adr_ack_counter must be incremented for all uplink messages (not just confirmed)
- When ADR_ACK_LIMIT + ADR_ACK_DELAY has been reached, stack decreased used
  datarate twice.
2018-09-10 13:39:47 +03:00
Teppo Järvelin 8f4acc14ca Cellular: CellularDevice:get_default_instance() implemented
Removed copy-paste code from targets by creating implementation methods to override.
2018-09-07 14:49:18 +03:00
Edd Inglis 4a07adbac5 Changed the reported SNR from unsigned to signed.
Internally and logically it is a signed value.
2018-09-07 10:19:01 +01:00
Martin Kojtal 8a43879ca9
Merge pull request #8022 from sbutcher-arm/update-mbedtls-2.13.1
Update Mbed TLS version to 2.13.1
2018-09-07 10:44:54 +02:00
Juha Ylinen 4ea49f5580 Fix TCPServer::accept()
Missing lock caused Mutex unlock failure
2018-09-07 10:46:25 +03:00
Simon Butcher 15785191e7 Update Mbed TLS version to 2.13.1 2018-09-06 19:32:03 +01:00
Antti Yli-Tokola 4249318546 Update mbed-coap to version 4.6.3
- Bug fix: Remove timed out blockwise message from resend queue. If blockwise message was timed out message was still kept in the resend queue which causes unnecessary reconnections on client side.
- Documentation: Document all the available macros.
2018-09-06 16:08:49 +03:00
Cruz Monrreal 6c30b2f48d
Merge pull request #7924 from kjbracey-arm/filebase_default
Add special handling for "/default" filesystem
2018-09-05 19:40:29 -05:00
paul-szczepanek-arm a2c9781682 fix whitelist generation (set correct address type) 2018-09-05 16:46:01 +01:00
Cruz Monrreal 06106297a4
Merge pull request #6293 from Taiki-San/patch-1
Reduce .text footprint of the network stack
2018-09-05 10:16:04 -05:00
Cruz Monrreal f940443ac7
Merge pull request #7824 from deepikabhavnani/lfs_crc
Use MbedCRC for LittleFS
2018-09-05 09:12:06 -05:00
Kevin Bracey c0dbc49aa0 Make "/default" an alias - add real names too
Make the built-in FileSystem::get_default_instance() implementation
instantiate storage as "flash" or "sd", with "default" as an alias.

This will aid interworking between simple and advanced filesystem code
on various platforms. The expectation is that the names "sd" or "flash"
will be always available if the device is available and configured,
regardless of what "default" represents.
2018-09-05 14:18:29 +03:00
Kevin Bracey fd4b3879be Change default filesystem name to /default
"/fs" is a tautology - not a good name for the default filing system, as
whereever we use it, we know we're specifying a filing system. Rename to
"/default".
2018-09-05 14:18:28 +03:00
Seppo Takalo 451852d19f Fix TCPSocket::accept()
This one was actually always return NULL, and unsted because we only
have tests with one device.

We will add the testcase for this soon
2018-09-05 12:00:59 +03:00
Martin Kojtal 3057c6c722
Merge pull request #7964 from paul-szczepanek-arm/master
NFC: fix reading from NFC EEPROM
2018-09-05 09:50:27 +02:00
Cruz Monrreal 6165386d34
Merge pull request #7893 from kivaisan/improve_callback_descriptions
Lora: Improve description of callback methods
2018-09-04 09:26:44 -05:00
paul-szczepanek-arm 44d3504dbb missing overload 2018-09-04 13:58:50 +01:00
paul-szczepanek-arm ec373c29a0 missing onDataSent calblack for cordio 2018-09-04 13:30:08 +01:00
Hasnain Virk 7b7d5ebc77 LoRaWAN: Memory overrun correction
A typo in LoRaPHYCN470 is causing memory overrun.
We were supposed to fill-in default channel mask and iterate over CN470_CHANNEL_MASK_SIZE times.
2018-09-04 15:21:40 +03:00
Teppo Järvelin 69bcbd84db Cellular: state machine and easycellular now return error fast if sim pin needed but not provided. 2018-09-04 13:13:35 +03:00
Martin Kojtal dd91b90149
Merge pull request #7974 from sbutcher-arm/update-mbedtls
Update Mbed TLS to version 2.13.0
2018-09-04 08:22:19 +02:00
Martin Kojtal b20fd506c1
Merge pull request #7910 from AriParkkila/cell-test-attach
Cellular: Fix Greentea test for network attach
2018-09-04 08:20:38 +02:00
Anna Bridge 4fb3aec84a
Merge pull request #7895 from kivaisan/remove_duplicate_linkcheckreq
Lora: Remove duplicate LinkCheckReq MAC command
2018-09-03 16:43:02 +01:00
Krzysztof Stachowiak 7d7b8d4a07 Disable the OFB cipher mode in Mbed TLS 2018-09-03 16:20:55 +01:00
Krzysztof Stachowiak f1d76691b6 Update to Mbed TLS 2.13.0 2018-09-03 16:20:46 +01:00