Hi, I wanted to use your project to sniff the audio controls on the VAN network (of a 206+) so that I can translate them for my aftermarket radio.
I'm using a ESP32 board and using port IO21 and IO22 for the CTX and CRX, like u have draw in schematic. I have removed the 2 100Ohm resisters near the CANH and CANL (I also haven't bridged them ;) ).
Also, my R1 (which in your schematic is a 470Ohm resister), I have replaced this with 2 x 220Ohm resisters (because I don't have a 470Ohm res.. Just to mention this).
Next, I've downloaded this project and copied it over the VANBUS plugin which I've downloaded via Ardiuno IDE, because I got an error (TVanPacketRxQuee::Disabled();....... 'timerAlarmDisable' was not declared in this scope).
The issue now is that I don't get correct data back (no CRC_OK, only CRC_ERROR)
With only pin 3 connected, I get:
17:46:01.314 -> w u · · ·
17:46:01.314 -> Raw: #4368 ( 4/15) 14(19) 0E 5E5 B (R-1) 77-77-77-77-77-77-77-77-5F-FF-F7-77-77-77:BB-E6 NO_ACK OK 7434 CRC_ERROR uBit=24
17:46:01.314 -> w w w w w w w w _ · · w w w
17:46:01.314 -> Raw: #4369 ( 5/15) 6(11) 0E 5DD B (R-1) B7-77-FF-F6-BE-FF:FF-BE NO_ACK ERROR_NBITS 6562 CRC_ERROR uBit=28
17:46:01.346 -> · w · · · ·
17:46:01.346 -> Raw: #4370 ( 6/15) 6(11) 0E B65 B (R-1) 77-77-77-77-77-77:77-5D NO_ACK ERROR_NBITS 5832 CRC_ERROR uBit=12
17:46:01.346 -> w w w w w w
17:46:01.346 -> Raw: #4371 ( 7/15) 2( 7) 0E 5E5 D (WA1) 77-77:E5-7F NO_ACK ERROR_NBITS 4ED2 CRC_ERROR uBit=29
17:46:01.378 -> w w
17:46:01.378 -> Raw: #4372 ( 8/15) 10(15) 0E 5DB B (R-1) FF-6E-FB-5F-BB-BB-DF-77-77-77:BF-DD NO_ACK ERROR_NBITS D66E CRC_ERROR uBit=11
17:46:01.378 -> · n · _ · · · w w w
17:46:01.378 -> Raw: #4373 ( 9/15) 2( 7) 0E BD5 D (WA1) 77-B7:DD-E6 NO_ACK ERROR_NBITS E9C0 CRC_ERROR uBit=36
17:46:01.378 -> w ·
17:46:01.411 -> Raw: #4374 (10/15) 5(10) 0E 565 D (WA1) 77-75-FF-FF-F7:E7-BB NO_ACK ERROR_NBITS C370 CRC_ERROR
17:46:01.411 -> w u · · ·
With both the pins correctly positions I get (so CANH on pin 3 and CANL on pin 2) I get:
17:45:58.083 -> Raw: #4194 (10/15) 0( 3) 0E 4DC 8 (W-0) NO_ACK ERROR_NBITS 0000 CRC_ERROR
17:45:58.083 ->
17:45:58.083 -> Raw: #4195 (11/15) 0( 3) 0E 4D4 F (RA1) NO_ACK ERROR_NBITS 0000 CRC_ERROR
17:45:58.116 ->
17:45:58.116 -> Raw: #4196 (12/15) 0( 3) 0E 664 C (WA0) NO_ACK ERROR_NBITS 0000 CRC_ERROR
17:45:58.116 ->
17:45:58.116 -> Raw: #4197 (13/15) 0( 3) 0E 464 D (WA1) NO_ACK OK 0000 CRC_ERROR uBit=24
17:45:58.116 ->
17:45:58.116 -> Raw: #4198 (14/15) 0( 2) 0E NO_ACK ERROR_NBITS 0000 CRC_ERROR uBit=20
17:45:58.148 ->
17:45:58.148 -> Raw: #4199 (15/15) 0( 2) 0E NO_ACK ERROR_NBITS 0000 CRC_ERROR
17:45:58.148 ->
17:45:58.180 -> Raw: #4200 ( 1/15) 0( 2) 0E NO_ACK ERROR_NBITS 0000 CRC_ERROR uBit=20
17:45:58.180 ->
Script what I'm using is just as easy as posible:
#include <VanBus.h>
const int TX_PIN = 21; // VAN bus transceiver input (ESP32 naar bus)
const int RX_PIN = 22; // VAN bus transceiver output (bus naar ESP32)
void setup() {
Serial.begin(115200);
TVanBus::Setup(RX_PIN, TX_PIN);
}
void loop() {
TVanPacketRxDesc pkt;
if (VanBus.Receive(pkt)) {
pkt.DumpRaw(Serial); // Print ontvangen VAN-pakket
}
// Testpakket sturen (optioneel)
/*
uint8_t rmtTemperatureBytes[] = {0x0F, 0x07, 0x00, 0x00, 0x00, 0x00, 0x70};
VanBus.SyncSendPacket(0x8A4, 0x08, rmtTemperatureBytes, sizeof(rmtTemperatureBytes));
delay(1000);
*/
}
Some pictures click here
Hi, I wanted to use your project to sniff the audio controls on the VAN network (of a 206+) so that I can translate them for my aftermarket radio.
I'm using a ESP32 board and using port IO21 and IO22 for the CTX and CRX, like u have draw in schematic. I have removed the 2 100Ohm resisters near the CANH and CANL (I also haven't bridged them ;) ).
Also, my R1 (which in your schematic is a 470Ohm resister), I have replaced this with 2 x 220Ohm resisters (because I don't have a 470Ohm res.. Just to mention this).
Next, I've downloaded this project and copied it over the VANBUS plugin which I've downloaded via Ardiuno IDE, because I got an error (TVanPacketRxQuee::Disabled();....... 'timerAlarmDisable' was not declared in this scope).
The issue now is that I don't get correct data back (no CRC_OK, only CRC_ERROR)
With only pin 3 connected, I get:
With both the pins correctly positions I get (so CANH on pin 3 and CANL on pin 2) I get:
Script what I'm using is just as easy as posible:
Some pictures click here