Test code that Cat.M1 of BG96 for SK Telecom in Korea

You are viewing an older revision! See the latest version

Homepage

This code could be access via Cat.M1(BG96 module) of SK telecom network in Korea. Need a WIZnet BG96 board and development board.

If you are using Mbed OS 5.11.5 version, please see https://os.mbed.com/users/Daniel_Lee/code/mbed-os-example-cellular_BG96_os511/

board board

or

/media/uploads/Daniel_Lee/small_pic.jpg

Tested with

  • NUCLEO_F429ZI
  • DISCO_L475VG_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/

 cd mbed-os-example-cellular-BG96

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

Tested with " "mbed-trace.enable" : true " of mbed_app.json

[MAIN], plmn: NULL
Establishing connection
[00000001ms][INFO][CELL]: New CellularContext  (0x20003ce0)
[00000001ms][INFO][CELL]: CellularContext plmn NULL
[00000002ms][INFO][CELL]: CellularContext connect
[00000006ms][INFO][CELL]: Start connecting (timeout 1 s)
[00000016ms][DBG ][CELL]: Init => Device ready
[00000018ms][DBG ][CELL]: AT flush
[00000030ms][INFO][CELL]: Modem ready
[00000030ms][DBG ][CELL]: callback: 4096, err: 0, data: -1
[00000033ms][DBG ][CELL]: Device ready => SIM pin
[00000043ms][INFO][CELL]: RSSI -81 dBm
[00000043ms][INFO][CELL]: Setup SIM (timeout 1 s)
[00000049ms][DBG ][CELL]: AT flush
[00000057ms][INFO][CELL]: SIM is ready
[00000058ms][DBG ][CELL]: callback: 4097, err: 0, data: 0
[00000077ms][DBG ][CELL]: Found active context
[00000081ms][DBG ][CELL]: Active context found.
[00000085ms][DBG ][CELL]: Cellular already attached.
[00000088ms][DBG ][CELL]: SIM pin => Registering network
[00000092ms][INFO][CELL]: RSSI -81 dBm
[00000092ms][INFO][CELL]: Network registration (timeout 180 s)
[00000104ms][DBG ][CELL]: +CEREG: RegisteredHomeNetwork, LAC 10035, cell 233771, CATM1
[00000108ms][DBG ][CELL]: callback: 4098, err: 0, data: 1
[00000114ms][INFO][CELL]: Registering network => Attaching network
[00000125ms][INFO][CELL]: RSSI -81 dBm
[00000125ms][INFO][CELL]: Attaching network (timeout 60 s)
[00000136ms][DBG ][CELL]: callback: 4102, err: 0, data: 1
[00000204ms][INFO][CELL]: Found PDP context 7
[00000208ms][DBG ][CELL]: Found active context

Connection Established.
[00000212ms][INFO][CELL]: Socket 0 open
[00000222ms][INFO][CELL]: Socket 1 open
[00000276ms][INFO][CELL]: Socket 1 sent 43 bytes to 8.8.8.8 port 53
[00000454ms][DBG ][CELL]: AT OoB readable 1, len 0
[00000457ms][DBG ][CELL]: AT OoB done
[00000470ms][INFO][CELL]: Socket 1 recv 71 bytes from 64:ff9b::808:808 port 53
[00000475ms][INFO][CELL]: Socket 1 closed
TCP: connected with echo.mbedcloudtesting.com server
[00000855ms][INFO][CELL]: Socket 0 sent 4 bytes to 2a05:d018:21f:3800:3164:2a5c:75b3:970b port 7
TCP: Sent 4 Bytes to echo.mbedcloudtesting.com
[00001230ms][DBG ][CELL]: AT OoB readable 1, len 0
[00001232ms][DBG ][CELL]: AT OoB done
[00001237ms][INFO][CELL]: Socket 0 recv 4 bytes
[00011242ms][INFO][CELL]: Socket 0 closed
Received from echo server 4 Bytes
[00011242ms][INFO][CELL]: CellularContext disconnect()
[00011243ms][DBG ][CELL]: callback: 0, ptr: 2
[00011243ms][INFO][CELL]: cb: CellularContext disconnected


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


All wikipages