M.2 Test for am335x ti sdk 03.01.00.06

From ESS-WIKI
Revision as of 10:05, 27 April 2018 by Zhengguang.yang (talk | contribs) (Created page with "Setting the environment variable in the uboot <div style="background: rgb(238, 238, 238); padding: 5px 10px; border: 1px solid rgb(204, 204, 204);">$ setenv M2_WIFIFlag TRUE<!...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Setting the environment variable in the uboot

$ setenv M2_WIFIFlag TRUE
$ saveenv

Wifi test

$ rfkill unblock all
$ ifconfig mlan0 up
$ killall wpa_supplicant
$ rm /etc/resolv.conf
$ echo "ctrl_interface=/var/run/wpa_supplicant" > /tmp/wpa.conf
$ wpa_passphrase "advantech for guest" 12345678 >> /tmp/wpa.conf
$ wpa_supplicant -B Dwext -imlan0 -c /tmp/wpa.conf
$ wpa_cli -imlan0 scan
$ udhcpc -i mlan0
$ rm /tmp/wpa.conf
$ ping -I mlan0 www.advantech.com.cn

Bluetooth test

Turn on Bluetooth and make it visible:

$ hciconfig hci0 piscan

Look the mac address of your Bluetooth device:

# hciconfig hci0
hci0:     Type: BR/EDR Bus: SDIO
             BD Address: 28:C2:DD:95:56:92 ACL MTU: 1021:7 SCO MTU: 120:6
             UP RUNNING PSCAN
             RX bytes:984 acl:0 sco:0 events:35 errors:0
             TX bytes:794 acl:0 sco:0 commands:35 errors:0

Send bt-test throught Bluetooth:

$ ussp-push --debug --timeo 25 34:23:87:B7:B2:CA@ bt-test bt-test

Note: 34:23:87:B7:B2:CA is Mac address of the opposite device!

Receive file throught Bluetooth:

$ obexpushd -B

Note: The file will be received under current directory.