Modem Driver

[中文]

Modem driver API

API

BK7258

bk_modem_init()

Y

bk_modem_deinit()

Y

Basic Usage

The BK7258 AIDK support connection and use with 4G modules.

The AIDK also supports 4G network configuration via an APP, and utilizes AI-related functions. For more details, please refer to

https://docs.bekencorp.com/arminodoc/bk_aidk/bk7258/zh_CN/v2.0.1/projects/beken_genie/index.html#id23

Test Example

  1. After calling bk_modem_init(), the BK7258 will establish a connection with the 4G module. Successful log output is as follows:

modem driver init

2、After calling bk_modem_init(), the BK7258 will broken a connection with the 4G module. Log output is as follows:

modem driver deinit

Note: Please ensure the BK7258 and 4G module hardware are connected correctly. Refer to Modem Griver Usage Guide

USB API Reference

Header File

Functions

bk_err_t bk_modem_init(void)

Modem Driver initialization.

Initialize the bk modem driver, then it will build a connection to modem modules. Make sure to connect to a modem mudule by usb in hardware before call this API.

Returns

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_modem_deinit(void)

Modem Driver uninstallation.

Turn off the Modem driver, and it will disconnect to modem modules.

Returns

  • BK_OK: succeed

  • others: other errors.