Legacy Hardware and Apps
CANGate issue

We just bought a DT80M and CANGate. To test the CANGate, I put together a one-row schedule in Delogger and downloaded it to the logger.

Unfortunately, Delogger's "Errors" window keeps saying "Serial sensor scan error at control position 13". The RS232 Rx & Tx lights do blink on the CANGate, so something is happening. And while the configured message is not on the CAN bus (my CAN msgs are non-std), using the SNOOP command I was able to verify that there is some CAN traffic visible to the CANGate.

Any help would be much appreciated. Here's my program:

'JOB=JOB1 'COMPILED=2011/09/08 14:23:00 
'TYPE=dt80 
DT=\d 
001: BEGIN"JOB1" 
002: CATTN 
003: 'Spans and polynomial declarations 
004: 'Thermistor declarations 
005: 'Switches declarations 
006: 'Parameter declarations 
007: 'Global declarations
008: RS1S 
009: ' Initialise port that CANgate is connected to 
010: PS=RS232,57600,N,8,1,HWFC 
011: ' Initialise the CANgate device 
012: IF(1SERIAL("\e{VERBOSE OFF;VERSION^M}%f",2)<1.23)"CANgate not found or firmware version less than 1.23" 
013: ' Initialise CANgate ports 
014: 1SERIAL("{CONNECT 1 0;SETADDR 1 0^M}",W) 
015: 1SERIAL("{CONNECT 2 250;SETADDR 2 0^M}",W) 'J1939 
016: ' Initialise selected CAN parameters 
017: 1SERIAL("{BEGIN^M}",W) 
018: 1SERIAL("{1 RECVJ 2 61445 4 4 256 6 0 FORMAT un 1 -125 \034%%.0f\\n\034 ^M}",W) 
019: 1SERIAL("{END^M}",W) 
020: 'schedule definition 
021: RA("B:",ALARMS:OV:100KB,DATA:OV:1MB)1S LOGONA GA 
022: 1SERIAL("\e{RP 1^M}%f",2,"ETC2TrCurrGear~gear value") 
023: END 'end of program file
We just bought a DT80M and CANGate. To test the CANGate, I put together a one-row schedule in Delogger and downloaded it to the logger. Unfortunately, Delogger&#039;s &quot;Errors&quot; window keeps saying &quot;Serial sensor scan error at control position 13&quot;. The RS232 Rx &amp; Tx lights do blink on the CANGate, so something is happening. And while the configured message is not on the CAN bus (my CAN msgs are non-std), using the SNOOP command I was able to verify that there is some CAN traffic visible to the CANGate. Any help would be much appreciated. Here&#039;s my program: ```` &#039;JOB=JOB1 &#039;COMPILED=2011/09/08 14:23:00 &#039;TYPE=dt80 DT=\d 001: BEGIN&quot;JOB1&quot; 002: CATTN 003: &#039;Spans and polynomial declarations 004: &#039;Thermistor declarations 005: &#039;Switches declarations 006: &#039;Parameter declarations 007: &#039;Global declarations 008: RS1S 009: &#039; Initialise port that CANgate is connected to 010: PS=RS232,57600,N,8,1,HWFC 011: &#039; Initialise the CANgate device 012: IF(1SERIAL(&quot;\e{VERBOSE OFF;VERSION^M}%f&quot;,2)&lt;1.23)&quot;CANgate not found or firmware version less than 1.23&quot; 013: &#039; Initialise CANgate ports 014: 1SERIAL(&quot;{CONNECT 1 0;SETADDR 1 0^M}&quot;,W) 015: 1SERIAL(&quot;{CONNECT 2 250;SETADDR 2 0^M}&quot;,W) &#039;J1939 016: &#039; Initialise selected CAN parameters 017: 1SERIAL(&quot;{BEGIN^M}&quot;,W) 018: 1SERIAL(&quot;{1 RECVJ 2 61445 4 4 256 6 0 FORMAT un 1 -125 \034%%.0f\\n\034 ^M}&quot;,W) 019: 1SERIAL(&quot;{END^M}&quot;,W) 020: &#039;schedule definition 021: RA(&quot;B:&quot;,ALARMS:OV:100KB,DATA:OV:1MB)1S LOGONA GA 022: 1SERIAL(&quot;\e{RP 1^M}%f&quot;,2,&quot;ETC2TrCurrGear~gear value&quot;) 023: END &#039;end of program file ````

Good morning tbarham,

You actually tell us why this is failing. "And while the configured msg is not on the CAN bus (my CAN msgs are non-std)"

You have requested a standard J1939 message which as you state is not there. So it is trying to read a message that is never being sent and there for the error is telling us the message can not be found.

Cheers,
Roger

Good morning tbarham, You actually tell us why this is failing. &quot;And while the configured msg is not on the CAN bus (my CAN msgs are non-std)&quot; You have requested a standard J1939 message which as you state is not there. So it is trying to read a message that is never being sent and there for the error is telling us the message can not be found. Cheers, Roger
42
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft