Laird WB45NBT
Reference Guide
Embedded Wireless Solutions Support Center:
http://ews-support.lairdtech.com
www.lairdtech.com/wi-fi
26
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0600
To use Socat to connect TCP port 1234 to the UART running on /dev/ttyS1, use the following:
# socat tcp-l:1234,reuseaddr,fork file:/dev/ttyS1
Setting Up Stand-alone FTP, TFTP, and SSH servers
Set up inetd to start FTP, TFTP, and SSH servers on demand. See /etc/inetd.conf. It is also possible to start each of
these as their own full service. The init scripts are also contained in /etc/init.d/opt:
/etc/init.d/opt/S50proftpd
/etc/init.d/opt/S50sshd
/etc/init.d/opt/S50tftpd
B
REAKOUT
B
OARD
S
CHEMATIC AND
BOM
The Breakout Board schematic and BOM (Bill of Materials) are available from the Laird website.
D
EVELOPING AND
I
NTEGRATING
U
SING THE
D
EVELOPMENT
K
IT
There are many helpful tools and hints to developing software and integrating hardware with the WB45N.
Software Tools and Techniques
GDB
GDB is a debugger that can be run directly on the WB45N.
devmem
The program
devmem can be used to read or set any arbitrary physical address on the system. It is particularly useful
for inspecting the state of the Atmel processor's special function registers when trying to debug drivers, device
trees, or other kernel code.
# devmem
BusyBox v1.21.1 (2013-07-29 17:17:51 PDT) multi-call binary.
Usage: devmem ADDRESS [WIDTH [VALUE]]
Read/write from physical address
ADDRESS
Address to act upon
WIDTH Width (8/16/...)
VALUE Data to be written
# devmem 0xFFFFF818 32
0x00004100
The above example shows the PIO_OSR (Output Status Register) for PIOC. Note that pc8 and pc14 are configured as
GPIO outputs.