CANhack.de CAN-Interface RKS+CAN
Diesel technology, engine technology, vehicle diagnostics, repair & maintenance.

CAN-Bus Alarmanlage

 
New Topic 🔒 Locked 🔗 🖨 CANhack.de - Index » Microcontrollers and Electronics, Programming
Author Message
CProbst



Joined: 09/21/2016
Posts: 8
Karma: +1 / -0   Thank you, like it!


Free account, no CAN development support

Post25-09-2016, 9:30    Subject: CAN-Bus Alarmanlage Translating...

[Translating...]

Hallo,

ich bin Software Entwickler und möchte privat mein Citroen Jumper WoMo technisch etwas pimpen.

Ein Arduino / CAN Shield soll auf Dinge wie "Tür auf" lauschen und evtl. Hupe und Warnblinker / Fernlicht einschalten evtl. auch nur eine externe Sirene. Eine CAN-Bus Alarmanlage eben.

An dem OBDII Stecker (ich teste gerade noch an einem Opel Adam) kommt aber meines Erachtens diese Info nicht an. Es feuern zwar ettliche ID's aber ein "Ursprung" ist dort nicht zu erkennen, alle ID's sind mehr als 3mal enthalten und scheinen nur "Antworten" auf den initialen Vorgang zu sein.

Ich vermute daher und meine es auch gelesen zu haben, dass diese Nachrichten auf dem Komfort (Slow Speed) CAN Bus empfangen und nur dort abgegriffen werden können.

Stimmt das und ist das der CAN Bus, der über den Auto Radio Stecker erreicht werden kann?

Kommt am ODBII Stecker nur der Motor CAN nach außen?

Gruß
Chris
Back to top Profile PM
shavenne
CAN-Profi
CAN-Profi


Joined: 04/27/2015
Posts: 37
Karma: +6 / -0   Thank you, like it!
Location: Paderborn

CAN Support

Post28-09-2016, 12:22    Subject: CAN-Bus Alarmanlage Translating...

[Translating...]

Ich weiß jetzt nicht ob es bei allen Opels identisch ist, aber bei denen ich dran war (Vectra C, Astra H/J) sind alle drei CAN-Busse über den OBD-Stecker zu kriegen.

Komfort ist hierbei aber Midspeed, nicht (S)Low!

Pin 1 vom OBD Stecker ist hier der Low-Speed CAN (33kbps), darüber läuft der Fensterheber und so Schnickschnack. Das ist ein Single Wire CAN.
Pin 3/11 (+/-) ist der MidSpeed CAN (95.2kbps, auch GMLAN genannt) worüber Klima, Radio, Display, etcpp. läuft
Pin 6/14 (+/-) ist der HighSpeed CAN (500kbps) worüber Motor-Steuergerät usw. läuft

Frage ist, wo du gerade versuchst zu lauschen icon_wink.gif.

Davon abgesehen: Du wirst vermutlich das, was du jetzt beim Adam programmierst, nicht auf den Citroen einfach übernehmen können!


Last edited on 28-09-2016, 12:24, edited 2 times in total.
Back to top Profile PM
CProbst



Joined: 09/21/2016
Posts: 8
Karma: +1 / -0   Thank you, like it!


Free account, no CAN development support

Post28-09-2016, 13:55    Subject: CAN-Bus Alarmanlage Translating...

[Translating...]

Vielen Dank für die ausführliche Antwort, hast mich ein gutes Stück weiter gebracht icon_wink.gif

Gelauscht habe ich bisher an 6/14. Werde es jetzt mal an 3/11 probieren. Ich bräuchte halt die Messages für Remote Lock und Unlock, Zündung ein / aus, Tür auf. Die kann ich nicht eindeutig am 6/14 identifizieren. Dann wäre es natürlich nett, wenn ich Hupe, Blinker und Highbeam aktivieren könnte, muss aber nicht zwingend sein.

Das mit dem Adam ist erst mal ein Proof of Concept, weil der KaWa noch nicht da ist. Die grundsätzliche (Software) Architektur wird dann schon passen, bis auf die konkreten CAN-Id's und deren Messages.

Gruß
Chris


Last edited on 28-09-2016, 13:57, edited 2 times in total.
Back to top Profile PM
shavenne
CAN-Profi
CAN-Profi


Joined: 04/27/2015
Posts: 37
Karma: +6 / -0   Thank you, like it!
Location: Paderborn

CAN Support

Post28-09-2016, 14:01    Subject: CAN-Bus Alarmanlage Translating...

[Translating...]

Welches CAN Shield benutzt du und welche Library?

Librarytechnisch könnten die 95.2kbps problematisch sein. Bei der Libary die ich benutze, musste ich noch die CNF Werte anpassen, weil die Library von Haus aus die Bitrate nicht unterstützt hat icon_wink.gif.
CAN-Shield frag ich deswegen, weil ich mir vorstellen könnte, dass du die Messages, die du brauchst eher auf dem Single Wire CAN findest. Dafür brauchst du aber einen CAN-Transceiver auf dem CAN-Shield der das auch unterstützt. Der auf den CAN-Shields übliche MCP2551/2562 unterstützt das nämlich offiziell nicht.
Weiß nicht, ob es vielleicht trotzdem läuft, aber als Dauerlösung wäre das vielleicht nicht so toll icon_wink.gif.
Back to top Profile PM
CProbst



Joined: 09/21/2016
Posts: 8
Karma: +1 / -0   Thank you, like it!


Free account, no CAN development support

Post28-09-2016, 16:01    Subject: CAN-Bus Alarmanlage Translating...

[Translating...]

Das mit den 95.2 viel mir auch gleich auf. Es ist derzeit das CAN-Bus Shield von Seeed mit MCP2551/2515. Es gibt ein Define CAN_95KBPS - leider kein CAN_95K2BPS. Ich werd's mal probieren damit. Wenn nicht warte ich bis der Citroen Jumper da ist.

Danke für Deine Hilfe!

Gruß
Chris
Back to top Profile PM
shavenne
CAN-Profi
CAN-Profi


Joined: 04/27/2015
Posts: 37
Karma: +6 / -0   Thank you, like it!
Location: Paderborn

CAN Support

Post28-09-2016, 16:03    Subject: CAN-Bus Alarmanlage Translating...

[Translating...]

95 dürfte für 95.2 sein denke ich.
Back to top Profile PM
CProbst



Joined: 09/21/2016
Posts: 8
Karma: +1 / -0   Thank you, like it!


Free account, no CAN development support

Post28-09-2016, 16:07    Subject: CAN-Bus Alarmanlage Translating...

[Translating...]

Möglich. Dummerweise gibt es Defines wie CAN_31K25BPS und CAN_83K3BPS, was ein CAN_95K2BPS nahelegen würde.
Back to top Profile PM
shavenne
CAN-Profi
CAN-Profi


Joined: 04/27/2015
Posts: 37
Karma: +6 / -0   Thank you, like it!
Location: Paderborn

CAN Support

Post28-09-2016, 16:09    Subject: CAN-Bus Alarmanlage Translating...

[Translating...]

Kannst ja nach den Werten gucken bei der Library.

Das sind meine, die sollten funzen:
Code:
#define MCP_16MHz_95kBPS_CFG1 (0x03)
#define MCP_16MHz_95kBPS_CFG2 (0xBB)
#define MCP_16MHz_95kBPS_CFG3 (0x07)


Gibt verschiedene funktionierende Werte, d.h. wenn du da andere hast, muss das nicht heißen, dass deine falsch sind icon_wink.gif


Last edited on 28-09-2016, 16:10, edited 1 time in total.
Back to top Profile PM
CProbst



Joined: 09/21/2016
Posts: 8
Karma: +1 / -0   Thank you, like it!


Free account, no CAN development support

Post28-09-2016, 16:15    Subject: CAN-Bus Alarmanlage Translating...

[Translating...]

Sind abweichend:

Code:

#define MCP_16MHz_95kBPS_CFG1 (0x03)
#define MCP_16MHz_95kBPS_CFG2 (0xAD)
#define MCP_16MHz_95kBPS_CFG3 (0x07)


Wie bist Du auf 0xBB gekommen?
Back to top Profile PM
shavenne
CAN-Profi
CAN-Profi


Joined: 04/27/2015
Posts: 37
Karma: +6 / -0   Thank you, like it!
Location: Paderborn

CAN Support

Post28-09-2016, 16:17    Subject: CAN-Bus Alarmanlage Translating...

[Translating...]

Ich hatte ein Tool dafür benutzt, das nennt sich "Microchip CAN Bit Timing Calculator".
Back to top Profile PM
CProbst



Joined: 09/21/2016
Posts: 8
Karma: +1 / -0   Thank you, like it!


Free account, no CAN development support

Post28-09-2016, 16:21    Subject: CAN-Bus Alarmanlage Translating...

[Translating...]

Ah, ok. Datasheet sagt es gibt 3 CNF Bit Timing Register. Alles klar.

Werde berichten ob es geht...
Back to top Profile PM
New Topic 🔒 Locked 🔗 🖨 CANhack.de - Index » Microcontrollers and Electronics, Programming
Similar articles and topics
Topic Forum
No new posts CAN alarm system Interior / Comfort CAN
Jump to:  
You cannot post new topics in this forum.