JODY-W2 - System integration manual
UBX-18068879 - R14
Software
Page 55 of 84
C1 - Public
To set wireless network settings such as SSID (ubx-co-AP5G) and the passphrase (12345678):
To run
wpa_supplicant
daemon:
☞
If the command is used with
-dddt
option,
wpa_supplicant
generates detailed logs.
To acquire an IP address:
Bluetooth usage
Once the Bluetooth drivers are loaded, it is necessary to bind a serial interface to the HCI driver. For
this, the
hciattach
tool from the BlueZ package can be used. The following excerpt shows an example
of an attach through the /dev/ttyUSB0 serial device. In the following example, Bluetooth is connected
to the host using USB cable connected via FTDI.
☞
It is not necessary to attach while using SDIO interface for Bluetooth.
Then, an HCI interface (here hci0) is available for further transactions.
# wpa_passphrase <ssid> <passphrase> >> /etc/wpa_supplicant.conf
For example,
# wpa_passphrase ubx-co-AP5G 12345678 >> /etc/wpa_supplicant.conf
# wpa_supplicant -B -D nl80211 -i mlan0 -c /etc/wpa_supplicant.conf
# udhcpc -i mlan0
# hciattach /dev/ttyUSB0 any 3000000 flow
[ 442.667056] ps_init_work...
[ 442.675963] ps_init_timer...
[ 442.684716] ps_init...
[ 442.816845] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 442.825928] Bluetooth: BNEP socket layer initialized
[ 443.234456] Bluetooth: RFCOMM TTY layer initialized
[ 443.245865] Bluetooth: RFCOMM socket layer initialized
[ 443.254362] Bluetooth: RFCOMM ver 1.11
Device setup complete
# hciconfig
–
a hci0 up
hci0: Type: Primary Bus: UART
BD Address: D4:CA:6E:00:1B:16 ACL MTU: 1021:7 SCO MTU: 120:6
UP RUNNING PSCAN
RX bytes:918 acl:0 sco:0 events:62 errors:0
TX bytes:1115 acl:0 sco:0 commands:62 errors:0
Features: 0xff 0xfe 0x8f 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF
Link mode: SLAVE ACCEPT
Name: 'apalis-tk1'
Class: 0x200000
Service Classes: Audio
Device Class: Miscellaneous,
HCI Version: 5.0 (0x9) Revision: 0x8300
LMP Version: 5.0 (0x9) Subversion: 0x10bc
Manufacturer: Marvell Technology Group Ltd. (72)