Mantracourt Electronics Limited
DCell & DSC MantraCAN User Manual
22
This is the Transmission Error Count as defined in the BOSCH CAN2.0 specification; it is a read only parameter.
CANRXERR
This is the Receive Error Count as defined in the BOSCH CAN2.0 specification; it is a read only parameter.
CANSTATUS
This read only parameter indicates current CAN bus error status. These are derived directly from the CAN controller
peripheral.
Bit number
Name
Description
0
AERG
Node detection, dominant bit in the acknowledge slot
1
FERG
Form Error. Violation of one of the fixed bit fields, CRC delimiter,
Acknowledgement delimiter or End of Frame
2
CERG
CRC Error
3
SERG
Bit Stuff Error
4
OVRBUF
Buffer Over Run Error
5
OVRTIM
CAN Timer Overrun
6
ERRP
Device is in Error Passive mode
7
BUSOFF
Device is in Bus Off mode
Streaming
The Device supports customisable output streams that can be configured to suit most CAN protocols but do not
support any interaction, commands (such as Tare) or parameter writing in anything but the proprietary Mantracourt
protocol.
Customisable start and stop messages allow the instrument streaming to be controlled via the host CAN network.
Configuring Output Message Streams
The DSC allows up to 4 custom messages to be streamed. These are user configurable and can contain data from
internal parameters. The messages can be streamed at intervals or when the internal parameter value changes or
both.
The highly configurable nature of the messages allows the DSC to stream custom data messages on a variety of CAN
based networks.
NOTE
: Only the proprietary MantraCAN protocol can be used to write to the device or request data.
Message Streams
These are programmed via standard parameters. In the following table the parameters for Message1 are shown. For the other three message
parameters substitute the ‘1’ for ‘2’,’3’ or ‘4’.
Streaming Types, STRMTYPE
Sets the type of message stream:
0
– MantraCAN control by issuing
STRMON
and
STRMOFF
commands.
1
– Automatic. Streaming starts on power up.
2
– Custom. Streaming is controlled by the user defined Start and Stop packets. (See later)
Starting and stopping Streaming, STRMON, STRMOFF
STRMON
Starts streaming messages when
STRMTYPE
is set to 0 (MantraCAN)
STRMOFF
Stops streaming messages when
STRMTYPE
is set to 0 (MantraCAN)