6 Software
User Manual
64/374
/* Select that CAN interface, and bind the socket to it.*/
struct sockaddr_can t_Addr;
t_Addr.can_family = AF_CAN;
t_Addr.can_ifindex = t_Ifr.ifr_ifindex;
bind( s16_Socket, (struct sockaddr*)&t_Addr, sizeof(t_Addr));
/* Send a message to the CAN bus */
struct can_frame t_Frame;
t_Frame.can_id = 0x123;
strcpy( t_Frame.data, "foo");
t_Frame.can_dlc = strlen( t_Frame.data);
sint16 s16_BytesSent = write( s16_Socket, &t_Frame, sizeof(t_Frame));
/* Read a message back from the CAN bus */
sint16 s16_BytesRead = read( s16_Socket, &t_Frame, sizeof(t_Frame));
6.4.6
Bluetooth
This chapter describes the Bluetooth interface on the TC1 and how a Bluetooth connection can be established
to other systems.
High Level Hardware Access
Path
Input
information
Output
information
Description
/etc/init.d/scripts/bt
p1
-
This shell script handles the Bluetooth module and
is automatically started by the boot up sequence.
p1: defines what action should be done
< start >
initializes bluetooth port
starts bluetooth module
starts the bluetooth daemon
starts bluetooth services
(serial port service, obex ftp service)
starts bt_connect script
< stop >
stops bt_connect script
stops bluetooth services
stops bluetooth daemon
stops bluetooth module
< restart >
calls stop
calls start
/etc/init.d/scripts/bt_connect -
-
This shell script registers the Bluetooth address of
every device that is ready for pairing. It also
registers a password (default "0000").
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 ...