10 Application Notes
User Manual
322/374
The bdaddr of the TC1-141231231003 is 00:07:80:57:BF:A6. This bdaddr is used in this example, to establish
a connection via Bluetooth.
Use the rfcomm command to establish a serial port connection via Bluetooth. The first parameter is "bind". With
the parameter bind, the rfcomm command binds the chosen RFCOMM device to a remote Bluetooth device.
The command does not establish a connection to the remote device, it only creates the binding. The second
parameter is the RFCOMM device parameter. /dev/rfcomm0 is already occupied for incoming serial
connections and /dev/rfcomm1 will be used for obexftp.
In this case use the rfcomm2 command. The last parameter is the Bluetooth address bdaddr of the device that
must be connected:
# rfcomm bind rfcomm2 00:07:80:57:BF:A6
Now the device rfcomm2 can be seen in the /dev directory:
# ls -al /dev | grep rfcomm2
crw-rw---- 1 root root 216, 2 Jan 12 02:28 rfcomm2
Open the connection via picocom:
# picocom -b 115200 /dev/rfcomm2
In case of success, after some seconds you can see the terminal prompt of the connected device:
picocom v1.6
port is : /dev/rfcomm2
flowcontrol : none
baudrate is : 115200
parity is : none
databits are : 8
escape is : C-a
local echo is : no
noinit is : no
noreset is : no
nolock is : no
send_cmd is : sz -vv
receive_cmd is : rz -vv
imap is :
omap is :
emap is : crcrlf,delbs,
picocom -b 115200 /dev/rfcomm2Terminal ready
++++++++++ Welcome to ++++++++++
TC1-141231231003 (Var tc3_A_J)
Have a lot of fun...
+++++++++++++++++++++++++++++++++++++++++
TC1-141231231003 login:
Serial Connection via Bluetooth using a proprietary protocol:
For a productive system disable the terminal prompt that is forwarded from the rfcomm device.
Edit the /etc/init.d/scripts/bt start script:
# vi /etc/init.d/scripts/bt
Search the following line:
rfcomm watch rfcomm0 1 &>/dev/null getty 460800 /dev/rfcomm0 &
and remove the getty command:
Summary of Contents for TC1
Page 1: ...TC1 User Manual Version of this document V1 00r0 ...
Page 25: ...5 Hardware User Manual 25 374 5 2 2 Block Diagram Variant TC1 WIFI ...
Page 34: ...5 Hardware User Manual 34 374 5 6 Housing Connector Top view and side view Bottom View ...
Page 125: ...7 Teleservice Application Framework User Manual 125 374 TAF overview ...
Page 190: ...7 Teleservice Application Framework User Manual 190 374 How the logger mechanism works ...