Shopping Cart | 中文网站
Online Support
  Atmel Series  (29) TOP10
  MYS-SAM9X5 (3)
  MYS-SAM9G45 (1)
  MYD-SAM9X5 (7)
  MYD-SAM9X5-V2 (2)
  MYD-JA5D2X (0)
  MYD-SAMA5D3X (11)
  MYD-SAMA5D3X-C (0)
  MYD-JA5D4X (0)
  MYC-SAM9X5 (4)
  MYC-SAM9X5-V2 (1)
  MYC-JA5D2X (0)
  MYC-SAMA5D3X (0)
  MCC-SAMA5D3X-C (0)
  MYC-JA5D4X (0)
  NXP Series  (23) TOP10
  MYS-6ULX (4)
  MYD-Y6ULX (3)
  MYD-IMX28X (2)
  MYD-LPC435X (2)
  MYD-LPC185X (1)
  MYD-LPC1788 (0)
  MYC-Y6ULX (4)
  MYC-IMX28X (0)
  i.MX 6UL/6ULL (6)
  TI Series  (24) TOP10
  MYD-AM335X (12)
  MYD-AM335X-Y (0)
  MYD-AM335X-J (0)
  MYD-C437X (0)
  MYD-C437X-PRU (5)
  Rico Board (6)
  MYC-AM335X (1)
  MCC-AM335X-Y (0)
  MCC-AM335X-J (0)
  MYC-C437X (0)
  Xilinx Series  (20) TOP10
  Z-turn Board (9)
  Z-turn Lite (2)
  MYD-C7Z010/20 (0)
  MYD-C7Z015 (7)
  MYD-Y7Z010/007S (0)
  MYC-C7Z010/20 (0)
  MYC-C7Z015 (0)
  MYC-Y7Z010/007S (0)
  HMI Solutions  (0) TOP10
  MY-EVC5100S-HMI (0)
  Others  (1) TOP10
  MY-WF003U (1)
  Home >  Support > Others > MY-WF003U
How to install AP hotspot using MY-WF003U WiFi module?
How to install AP hotspot using MY-WF003U WiFi module?

Here we use the installation of WiFi hotsport on the MYD-SAM9X5 board through the MY-WF003U WiFi module as an example to explain how to use AP function of the USB WiFi module.

On other MYIR's boards, it is similar.

Connect eth0 of the development board to ethernet, using udhcpd as dhcp server, iptables to forward data of the WiFi module and eth0. Other mobiles and wireless devices can connect with the WiFi module and acquire relative ip, dns and other network configurations so can connect to internet.

Network configuration

network segment:



DNS setting method: write "nameserver" into /etc/resolv.conf file and then restart the network

Please note the nameserver value is up to your networks.


network segment:


Using steps:

1. insert USB WiFi module driver

It is normal if appears below information:

 2. configure IP address of wlan0

3. cross compile hostapd (the source code is in the wifi module disk) and copy hostapd to the development board

4. configure /etc/hostapd.conf  file on development board (please create one if none), please refer to below configuration (hotspot name: MY-HOSTAP, password: 11111111, can be modified)

5. configure  /etc/udhcpd.conf file on devleopment board (please create one if none), please refer to below configuration, can be modified according to actual status:

6. If there is no /etc/udhcpd.leases file under /etc directory, please create using below command:

Start DHCP server

7. Set IP routing rule

Note: if there is no iptables command, please port iptables to your target board first.

Check if the router settings are OK (It indicates success if appearing below information.)

8. Enable IP forward function

9. Start hostapd

10. After above steps, you can use WiFi device to search "MY-HOSTAP" hotsport, you will be able to get on internet after connecting to this hotspot.


Room 04, 6th Floor, Building No.2, Fada Road, Yunli Smart Park, Bantian, Longgang District, Shenzhen, Guangdong, China 518129
E-mail: or  Phone: +86-755-22984836  Fax: +86-755-25532724
Copyright © MYIR Tech Limited 2011-2023 all rights reserved.
myirtech_facebook myirtech_Twitter myirtech_linkedin myirtech_youtube