Build and Run for Linux host
The linux port of the oWL Pico API reference design is designed to run on a standard desktop linux PC.
Hardware Setup
To connect the SPB800/SPB820 (actually
SPB800E in the case of SPB800) to a linux host, an adapter board (included in HDA800, development kit for SPB800/SPB820) is required to convert the 10-pin connector on the SPB800/SPB820 board to a RS232 or USB serial port. The SPB800/SPB820 board should be attached to the adapter board. The RS232 or USB port on the adapter board can then be connected to the Linux host.
Pre-compiled binaries
Build
First, make sure that necessary build utilities such as gcc and make for the target platform are installed.
To compile for a linux host, download the oWL Pico API reference design from
DownloadSources and run the following commands:
$ unzip owl_pico-r<rev>.zip
$ cd owl_pico-r<rev>/build/linux
$ make
The binary "pclient" should now be created.
Run
The pclient binary can be either built manually using the steps described above or a pre-built binary could be used.
Make sure that the pclient binary is executable by issuing the following command:
$ chmod +x pclient
Then power up the SPB800/SPB820 board and connect the eval kit to the PC. Allow the device to boot up completely before starting the pclient application on the linux host.
On a linux host then start the pclient application. For pclient version prior 1.2.0, use the following command:
$ ./pclient /dev/ttyUSB1 115200
For pclient version 1.2.0 or later, use the following command:
$ ./pclient /dev/ttyUSB1
/dev/ttyUSB1 should be replaced by the actual serial port on the linux host where the SPB800/SPB820 EVK is connected.