Modem Driver

[English]

Modem driver API

API

BK7258

bk_modem_init()

Y

bk_modem_deinit()

Y

基本使用

BK7258的AIDK支持与4g模组连接使用。

AIDK还可通过APP进行4G配网,并使用AI相关功能,具体可参考

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

测试示例

1、调用bk_modem_init()以后,BK7258会与4G模组建立连接,成功的log如下:

modem driver init

2、调用bk_modem_init()以后,BK7258会与4G模组断开连接,log如下:

modem driver deinit

注意:请确保BK7258和4G模组硬件的连接正确,连线请参考 modem driver 使用指南

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.

返回

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

返回

  • BK_OK: succeed

  • others: other errors.