Wireless Serial Port
TruConnect provides a wireless link between your device(s) and/or a PC or mobile device.
This application note demonstrates using a Bobcat module as a wireless serial port, streaming data in and out via the BLE wireless interface. The demonstration uses two Wahoo evaluation boards.
Setting up the Modules
Plug each of the AMS001-E01 Wahoo boards into a separate USB port on a computer. The USB interface provides power and a serial UART connection to the board.
On both boards, the tri-colur LED blinks green when the boards are not connected.
Open a communication terminal application e.g. Teraterm
For each Wahoo board, open a separate terminal window:
The Wahoo boards boot up as BLE peripherals with advertising turned on, in Stream Mode.
Note that after a few minutes advertising turns off. See the adv
command to turn advertising on if necessary.
We'll refer to the Wahoo boards as Wahoo A and Wahoo B:
On Wahoo A, press Button 2 to switch to command mode. The terminal displays
On the Wahoo A terminal:
Enter the command con <index>
number corresponding to the device in the devices listed by the scan results.
> con 1
On both boards, the tri-colour LED lights continuously green when the boards are connected.
Now, on WahooA, either press Button 2 (or enter the
str stream command into the Wahoo A terminal) to switch WahooA to Stream Mode. The terminal displays
With both Wahoo boards in Stream Mode, characters you type on one terminal appear on the other terminal, transmitted from one board to the other wirelessly via the BLE connection.