• sales

    +86-0755-88291180

WIFI-Bluetooth USE

WiFi

WiFi Connection

  1. Edit the WiFi configuration file using vi or nano editor

    vi /etc/wpa_supplicant.conf 

    ctrl_interface=/var/run/wpa_supplicant
    ap_scan=1
    update_config=1

    network={
    ssid="luckfox"
    psk="12345678"
    key_mgmt=WPA-PSK
    }
    • ssid: Name of the wireless network

      psk: Password of the wireless network

      Modify according to your actual wireless network name and password. No need to change other settings.

  2. If you want to switch WiFi networks, you need to restart the wpa_supplicant service:

    killall -9 wpa_supplicant 
    wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
  3. Connect to the wireless network.

    udhcpc -i wlan0

WiFi Speed Test

  1. On the virtual machine or host

    iperf3 -s -i 10 -p 5001
    • -s: Specifies that iperf3 runs in server mode

      -i: Sets the report interval to 10 seconds

      -p: Specifies the server port as 5001

  2. On the development board

    iperf3 -c 192.168.10.176 -p 5001 -f m -i 2 -t 24
    • -c:指定客户端模式,并设置要连接的服务器IP地址为192.168.10.176
    • -p:指定服务器端口为5001
    • -f:指定报告的格式。m 代表 Mbps,即报告的带宽单位为兆比特每秒
    • -i:指定报告的间隔时间为每1秒
    • -t :指定测试的持续时间为30秒
  3. Results:


Bluetooth

  • Configure ttyS1 as a Bluetooth HCI device

    hciattach -s 115200 /dev/ttyS1 any 115200 flow nosleep&
  • Bring up hci0

    hciconfig hci0 up
  • Check Bluetooth status

    hciconfig -a

    #蓝牙详细信息
    hci0: Type: Primary Bus: UART
    BD Address: 90:E4:68:A6:D6:94 ACL MTU: 1021:9 SCO MTU: 255:4
    UP RUNNING
    RX bytes:1344 acl:0 sco:0 events:77 errors:0
    TX bytes:1217 acl:0 sco:0 commands:77 errors:0
    Features: 0xbf 0xee 0xcd 0xfe 0xd8 0x3d 0x7b 0x87
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV3
    Link policy: RSWITCH SNIFF
    Link mode: PERIPHERAL ACCEPT
    Name: 'BlueZ 5.65'
    Class: 0x000000
    Service Classes: Unspecified
    Device Class: Miscellaneous,
    HCI Version: 5.2 (0xb) Revision: 0x14
    LMP Version: 5.2 (0xb) Subversion: 0x14
    Manufacturer: not assigned (2875)
  • Scan for Bluetooth devices

    hcitool scan
  • Bluetooth testing

    hcitool cmd xxxx
TAG: ESP32-S3R2 Power Raspberry Pi Pico 1.14inch LCD Raspberry Pi 5 8mp Camera ESP32 S3 Development Board 2.8 inch Round LCD Display 480x480 QMI8658 Sensor / SD /MP3 Audio /Battery Port LVGL/HMI For Arduino Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board (D) HAT Pi5-2280-2242-2230 D-Robotics RDK X3 Module Core MD Module Horizon Sunrise Pi ARM Cortex-A53 5Tops Size Compatible With Raspberry Pi CM4 Size Raspberry Pi Compute Module 4 CM4 PCIe to M.2 NVMe SSD 8.8inch LCD 1920x480 Computer PC Monitor Display Secondary Screen TypeC USB CPU RAM Raspberry Pi 4B/5 Industrial UART 2CH RS485 RS232 CAN FD HAT With Case For Installation of guide rails and hanging HDMI to LVDS Bus Servo DC-BUCK-Adapter 7.2V Voltage mini module For SC15/SC09 Servo Raspberry Pi GPS GNSS Expansion Board L76K Beidou (BDS) GLONASS QZSS A-GNSS Also For Jeston Raspberry Pi CM5 Compute Module 5 Dual Gigabit Ethernet RJ45 Expansion IO Base Board Luckfox Pico Camera MIS5001 5MP wide-angle lenses‌ For RV1106/Pro/MAX/Ultra (Not For RV1103 Pico) Milk-V Duo Raspberry Pi Pico 2 RP2350 ETH CH9120 TCP/UDP Ethernet Network For Arduino USB Monitor EPS32S3 1.8inch Round LCD Display WIFI-AIDA64-Secondary-TouchScreen/Wireless-Power/Video-Player LVGL Raspberry Pi 15.6 inch QLED Quantum Dot Display 1920x1080 Capacitive Touchscreen For Computer PC/Jetson/Game $167.99