This is an example based on mbed-os cellular APIs that demonstrates a TCP or UDP echo transaction with a public echo server. Especially, BG96 operation check based Mbed OS 5.11, tested via SK Telecom in Korea
This code could be access via Cat.M1(BG96 module) of SK telecom network in Korea. Need a WIZnet BG96 board and development board. Before using this code, must be checking your modem is authorized or not from SK telecom. This code is based on Mbed OS 5.11.5.
Tested with
- DISCOVERY_L485VG_IOT01A
- K66F
- K64F
1. Import the application into your desktop
mbed import https://os.mbed.com/users/Daniel_Lee/code/mbed-os-example-cellular-BG96_os511/ cd mbed-os-example-cellular-BG96_os511
2. Compile and program
mbed compile -t <toolchain> -m <TARGET_BOARD>
(supported toolchains : GCC_ARM / ARM / IAR)
3. Download binary to a target board
4. Result
mbed-os-example-cellular Built: Jun 4 2019, 13:45:53 [MAIN], plmn: (null) Modem power on Establishing connection .. Connection Established. TCP: connected with echo.mbedcloudtesting.com server TCP: Sent 4 Bytes to echo.mbedcloudtesting.com ...Received from echo server 4 Bytes ... Success. Exiting
5. Patched code
- Based on Mbed OS 5.11.5
- [Patch 1/2] https://github.com/DanielDmlee/mbed-os/commit/6c43e630bd81a47f6e949a36231812c878e237cf
- [Patch 2/2] https://github.com/DanielDmlee/mbed-os/commit/62d6a51c629f1b5d12695ce003227a5ac1324cd9
If need more information such as how to test, please look at https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-cellular/.
History
BG96 operation check based Mbed OS 5.11, tested via SK Telecom in Korea
2019-06-04, by Daniel_Lee [Tue, 04 Jun 2019 07:20:23 +0000] rev 46
BG96 operation check based Mbed OS 5.11, tested via SK Telecom in Korea
Added power on for BG96 module board
2019-06-04, by Daniel_Lee [Tue, 04 Jun 2019 04:31:21 +0000] rev 45
Added power on for BG96 module board
Fixed bugs
2019-06-04, by Daniel_Lee [Tue, 04 Jun 2019 04:22:34 +0000] rev 44
Fixed bugs
BG96 operation check based Mbed OS 5.11, tested via SK Telecom in Korea
2019-06-04, by Daniel_Lee [Tue, 04 Jun 2019 02:15:19 +0000] rev 43
BG96 operation check based Mbed OS 5.11, tested via SK Telecom in Korea
Merge pull request #143 from statropy/statropy-patch-1
2019-05-29, by mbed_official [Wed, 29 May 2019 08:01:56 +0100] rev 42
Merge pull request #143 from statropy/statropy-patch-1
Use the actual length of the test string payload
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-cellular
Merge pull request #138 from ARMmbed/1570-smoke-test
2019-05-16, by mbed_official [Thu, 16 May 2019 09:02:09 +0100] rev 41
Merge pull request #138 from ARMmbed/1570-smoke-test
Replaced C027 with Wise 1570 in smoke
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-cellular
Merge pull request #135 from mirelachirica/nonip_socket_support
2019-05-06, by mbed_official [Mon, 06 May 2019 09:02:01 +0100] rev 40
Merge pull request #135 from mirelachirica/nonip_socket_support
Added NonIP socket example
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-cellular
Merge pull request #136 from ARMmbed/https_raas_connection
2019-04-30, by mbed_official [Tue, 30 Apr 2019 11:02:03 +0100] rev 39
Merge pull request #136 from ARMmbed/https_raas_connection
Updated RaaS connection to use https
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-cellular
Merge branch 'mbed-os-5.12'
2019-04-30, by mbed_official [Tue, 30 Apr 2019 08:01:58 +0100] rev 38
Merge branch 'mbed-os-5.12'
* mbed-os-5.12:
Updating mbed-os to mbed-os-5.12.2
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-cellular
Merge pull request #133 from 0xc0170/fix_license
2019-04-29, by mbed_official [Mon, 29 Apr 2019 13:01:57 +0100] rev 37
Merge pull request #133 from 0xc0170/fix_license
add contributing file
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-cellular