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.

/media/uploads/Daniel_Lee/img_8560.jpg

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

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/.

Revisions of main.cpp

Revision Date Message Actions
46:81a8fcab4a6a 2019-06-04 BG96 operation check based Mbed OS 5.11, tested via SK Telecom in Korea File  Diff  Annotate
45:dc095588e1b4 2019-06-04 Added power on for BG96 module board File  Diff  Annotate
42:cab443dff75e 2019-05-29 Merge pull request #143 from statropy/statropy-patch-1 File  Diff  Annotate
40:c46ee5b71843 2019-05-06 Merge pull request #135 from mirelachirica/nonip_socket_support File  Diff  Annotate
36:6294a71c9e9e 2019-04-11 Merge pull request #131 from ARMmbed/release-candidate File  Diff  Annotate
34:6f85d44597ac 2019-02-15 Merge pull request #117 from AnotherButler/patch-1 File  Diff  Annotate
28:232da3ce8a88 2018-11-23 Merge pull request #110 from AriParkkila/master File  Diff  Annotate
27:97054be1a741 2018-11-22 Changed to use NSAPI default values for pin, apn, plmn and credentials. File  Diff  Annotate
26:348eec457e58 2018-11-20 Merge pull request #109 from ARMmbed/minor_fixes File  Diff  Annotate
21:e356e039f917 2018-09-27 Merge pull request #101 from ARMmbed/fix_tcpsocket_open_trace File  Diff  Annotate
13:4bea5334b419 2018-06-21 Merge pull request #89 from ARMmbed/iface_null_in_dot_thread File  Diff  Annotate
11:23ea0907186e 2018-06-18 Merge pull request #85 from AriParkkila/merge-mbed-os-5.9.0 File  Diff  Annotate
6:5678c0b6f74e 2018-05-10 Merge pull request #63 from ARMmbed/adding_trace_support_and_bug_fixes File  Diff  Annotate
2:0f644d6045cf 2018-03-09 Merge pull request #55 from ARMmbed/lib_and_server_update File  Diff  Annotate
0:4611f6cf2413 2018-03-08 Initial commit. File  Diff  Annotate