
Vantron
| Embedded in your success, Embedded in your better life
World-leading provider of embedded/IoT products and solutions
Vantron | C335 Series User Manual
22
5.
Exit “obex_test”, and enable page and search scan so that the target Bluetooth device
is discoverable;
# hciconfig hci0 piscan
6.
Run obexd service to receive the test file, i.e., obexd -a -n -r <path for saving the file>;
For instance, the test file is stored in “ /tmp”:
# export
DBUS_SESSION_BUS_ADDRESS="unix:path=/var/run/dbus/system_bus_socket"
# obexd -a -n -r /tmp/
7.
After the file transfer, disable page and search scan and the device will not be
discoverable.
# hciconfig hci0 noscan
After you go through the steps above, the test finishes.
If you need shut down the HCI device, input the command line below:
# hciconfig hci0 down
To rename the HCI device, input the command line below:
# hciconfig hci0 name “Bluez 5.21 test”
# hciconfig hci0 down
# hciconfig hci0 up
1.7.2
CAN (C335)
The following describes the communication of two C335 gateways via CAN protocol. If
you have customized end devices and special data protocols requiring customization from
Vantron, please contact your sales representative.
1.
Prepare two C335 gateways, and the CAN connection shall be as follows:
Gateway A
Gateway B
CANH
<->
CANH
CANL
<->
CANL
Transmit Data
<->
Receive Data
2.
Run “candump” command on Gateway B and set the Baud rate between 100000
(100kbps) and 1000000 (1000kbps);
# ip link set can0 type can bitrate 100000
# ifconfig can0 up
# candump can0