CAN OPEN USER
This command allows to manually open channels for receiving and transmitting frames over the bus lines. The USER mode must to be set before to open channels. Received frames may optionally timestamped please refer to CAN TIMESTAMP command.
Synopsis
CAN USER OPEN CH<1/2> <500K|250K|125K|100K|95K2|83K3|50K|33K3|AUTO> [GMLAN]
Return
If second parameter is one among 500K|250K|125K|100K|95K2|83K3|50K|33K3:
CAN USER OPEN CH<1/2> <500K|250K|125K|100K|95K2|83K3|50K|33K3> [GMLAN] OK
If second parameter is AUTO then the bus line speed will be automatically detected (bus activity must to be present):
CAN USER OPEN CH<1/2> AUTO [GMLAN] Please wait for timing result . Baud rate = <bps> OK
or
CAN USER OPEN CH<1/2> AUTO [GMLAN] Please wait for timing result .......... ERROR - Timing failed
Examples
Opening a CAN bus channel using automatic speed detection:
CAN USER OPEN CH2 AUTO Please wait for timing result . Baud rate = 100K (100Kbps) OK
Opening a CAN bus channel at known speed:
CAN USER OPEN CH1 125K OK
Opening a GMLAN bus channel:
CAN USER OPEN CH1 33K3 GMLAN OK
Received frames format
Once the channel is open and some messages matches identifier filtering then will be notified with format:
RX<1/2> [timestamp ]<standard part of ID>[:<extended part of ID>][-D0][D1..D7]
Examples
Receiving frames with extended identifiers from Channel #1:
RX1 7040:5000C0-001A RX1 1100:500000-000000000000 RX1 1100:500000-000000000000 RX1 2100:500040-0081804E0000000
Receiving frames with standard identifiers from Channel #2:
RX2 3DC0-00FF RX2 3AC0-C000 RX2 1900-40DE1C0000CC RX2 3AC0-C000 RX2 7000-4C313930393131 RX2 2600-4041250FA6
Receiving timestamped frames with extended identifiers from Channel #1:
RX1 005E2C41F9 31A0:500000-0000 RX1 005E2D4103 2100:500180-00000000144E1442 RX1 005E2D45CB 2100:500180-00000000144E1442 RX1 005E2D4A92 2100:500180-00000000144E1442
Notes
- If there is no bus activity (bus idle) the automatic speed detection will fail.
- 33.3Kb/s speed is mandatory for GMLAN physical layer proper operation.
- Automatic speed dectection will complete in a time of maximum 10 seconds. During this time Carberry will return the dot character, at each second.
- To start receiving messages is required at least one filter setting.
- Once reception is started user can use +++ and ATO pair to control (suspend/resume) data flow to facilitate commands typing.