EasyManuals Logo

STW TC1 User Manual

STW TC1
374 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #322 background imageLoading...
Page #322 background image
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:

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the STW TC1 and is the answer not in the manual?

STW TC1 Specifications

General IconGeneral
BrandSTW
ModelTC1
CategoryController
LanguageEnglish