Manage WiFi Connectivity from C code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Manage WiFi Connectivity from C code

1,831 次查看
nissim
Contributor II

Hi,

I am developing a tiny IoT device which is based on the i.MX8 nano.

Currently i am using the NXP evaluation kit that supports the i.MX8 nano.

My goal is to build a tiny embedded Linux distribution with Yocto that provides

A console only image that fully supports the target device hardware (NO X11 \ XWayland)

I would like to hear suggestion \ recommendation how can i manage the WiFi connectivity from c code by using APIs. 

Managing the WiFi connectivity tasks could be:

Switching from WiFi hot-spot to WiFi client mode, get notification about connection \ disconnection events and so on.

Is it possible to use Network Manager?

Regrads,

Nissim

标签 (1)
0 项奖励
2 回复数

1,750 次查看
romitchatterjee
Contributor V

You can check this blog on the Murata Forum: https://community.murata.com/s/article/Problem-Need-to-Set-Up-Concurrent-STA-and-AP. This details the process of getting both AP and STA up and running with Murata modules. You can create a script to control wpa_supplicant and hostapd s per your requirement.

0 项奖励

1,788 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Hello Nissim,

The WiFi module can be setup from the terminal, by using the wpa supplicant to instruct to which network to connect and what password to use. You may find step by step instructions on how to do this on the following i.MX8MM Hands on Lab Guide (I would recommend that you download the PDF attached to this Community Document as the preview pane may show formatting errors)

https://community.nxp.com/docs/DOC-344255 

Please look for the Connecting WifI section in page 23.

This would be the easiest way to control the Wifi module for your application. If you would like to go more in-depth I would recommend looking at the documentation from the WiFi module which is a Type 1MW from Murata. There is good documentation on their page.

https://wireless.murata.com/type-1mw.html

I hope this helps!

Regards,

0 项奖励