CANhack.de CAN interfaccia RKS+CAN
Tecnica diesel, tecnica motori, diagnosi auto, riparazione e manutenzione.

Interfaccia CAN-USB RKS+CAN, informazioni per sviluppatori e driver

 
Nuovo argomento Rispondi 🔗 🖨 CANhack.de - Indice » Sistema CAN-USB CANhack.de: RKS+CAN
Autore Messaggio
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Iscritto il: 07/06/2011
Messaggi: 573
Karma: +29 / -0   Grazie, mi piace!
Località: Ländle



Messaggio06-08-2013, 14:55    Oggetto: Interfaccia CAN-USB RKS+CAN, informazioni per sviluppatori e driver Cita

L'attuale hardware CAN Interface di CANHack.de è l'RKS+CAN di Kaufmann Automotive GmbH. È un interfaccia di diagnostica CAN-USB con funzione di dongle.

Questo argomento è rilevante solo se si desidera sviluppare programmi propri per il RKS+CAN o se si intende utilizzarlo per programmi già esistenti.

Offre un'interfaccia di compatibilità ASCII (compatibile con LAWICEL) e una libreria .dll per Windows, per poterlo integrare con software esistente (Windows, Linux, Mac).
Come nuova funzionalità, supporta WCID (Windows Compatible ID) ed è quindi direttamente accessibile da applicazioni sviluppate sui sistemi operativi attuali come Microsoft Windows Vista, 7, 8, 8.1, 10, 11, senza la necessità di preoccuparsi di problemi relativi ai driver.

L'hardware utilizzata possiede una gestione delle licenze integrata e offre enormi margini di miglioramento per future estensioni delle funzionalità; il firmware dell'interfaccia CAN è aggiornabile.
Per quantità maggiori, è possibile un branding. Una versione wireless WIFI è in fase di progettazione.

Clienti finali: L'interfaccia CAN può essere acquistata qui, le versioni complete dei programmi KCANMonitor, KOBD2Check (include firmware e installazione dei driver) sono incluse, e il RKS+CAN è compatibile con molte altre applicazioni.
Produttore: Per richieste relative al branding o a interfacce personalizzate, vi preghiamo di contattare direttamente Kaufmann Automotive GmbH - Sviluppo di software embedded.

Software inclusa a seconda delle esigenze; di seguito sono elencati i software inclusi di serie:
- KCANMonitor, un analizzatore di bus CAN.
- API CAN per C++ e altri esempi (VB.NET, ecc.).
- Software OBD2, come KOBD2Check, che consente di utilizzare il sistema anche per la lettura dei codici di errore OBD2.
- KDataScope: visualizzazione e analisi grafica dei dati diagnostici OBD2.

RKS+CAN: Richieste di funzionalità: https://www.canhack.de/it/viewtopic.php?t=2059



RKS+CAN.jpg
 Descrizione:
 RKS+CAN Hardware, CAN -> USB Interface.
 Dimensione file:  19.92 KB
 Visualizzato:  29146 volte

RKS+CAN.jpg

Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Tradotto il 03-07-2026, 15:19.
Torna su Profilo MP WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Iscritto il: 07/06/2011
Messaggi: 573
Karma: +29 / -0   Grazie, mi piace!
Località: Ländle



Messaggio07-01-2014, 19:13    Oggetto: Interfaccia CAN-USB RKS+CAN, informazioni per sviluppatori e driver Traduzione in corso...

[Traduzione in corso...]

CAN-Interface USB Treiber / Treiberinfo für eigene Applikationen.



RKS-USB.rar
 Descrizione:
 RKS+CAN USB Treiber und Info (Windows/Linux/Mac) für eigene Applikationen.
RKS+CAN USB Treiber und Info (Windows/Linux/Mac) für eigene Applikationen.
Scarica
 Nome file:  RKS-USB.rar
 Dimensione file:  236.15 KB
 Scaricato:  3251 volte
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Ultima modifica il 20-10-2023, 12:27, modificato 11 volte in totale.
Torna su Profilo MP WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Iscritto il: 07/06/2011
Messaggi: 573
Karma: +29 / -0   Grazie, mi piace!
Località: Ländle



Messaggio11-01-2014, 20:13    Oggetto: Interfaccia CAN-USB RKS+CAN, informazioni per sviluppatori e driver Traduzione in corso...

[Traduzione in corso...]

Das RKS+CAN CAN-Interface stellt 2 Schnittstellen zur Verfügung, VCP (virtueller COM Port für Linux und Macs, Windows XP - 8.1) und WinUSB (Linux, Macs, Windowx XP - 8.1).

Treiberinstallation Windows: Wird vollautomatisch mit dem RKS+CAN Installationspaket erledigt. Ab Windows 8 durch WCID keine manuelle Treiberinstallation notwedig.

Bei Linux folgende Zeile zur Datei /etc/modules hinzufügen:
usbserial vendor=0x16d0 product=0x0870
Das Gerät steht dann als /dev/ttyUSB0 zur Verfügung.

Bei Kubuntu 18.04 musste ich allerdings folgendes machen:
insmod /lib/modules/4.15.0-210-generic/kernel/drivers/usb/serial/usbserial.ko vendor=0x16d0 product=0x0870

Info zum Treiber gibt es mit: modinfo usbserial

Update für fedora 37 und Ubuntu 22.03 LTS:
verwendbar mit Treiber usb-serial-simple.



RKS+CAN-VCP.png
 Descrizione:
 Virtueller COM Port, Treiber installieren (Windows XP - 8.1).
 Dimensione file:  316.82 KB
 Visualizzato:  20089 volte

RKS+CAN-VCP.png


VCP-Port-Config.png
 Descrizione:
 Einstellung der Ports beim VCP (Windows XP - 8.1).
 Dimensione file:  313.91 KB
 Visualizzato:  20513 volte

VCP-Port-Config.png


Devices.png
 Descrizione:
 Gerätemanager (Windows XP - 8.1).
 Dimensione file:  32.76 KB
 Visualizzato:  19977 volte

Devices.png

Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Ultima modifica il 01-06-2023, 19:32, modificato 16 volte in totale.
Torna su Profilo MP WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Iscritto il: 07/06/2011
Messaggi: 573
Karma: +29 / -0   Grazie, mi piace!
Località: Ländle



Messaggio29-06-2014, 21:50    Oggetto: Interfaccia CAN-USB RKS+CAN, informazioni per sviluppatori e driver Traduzione in corso...

[Traduzione in corso...]

RKS+CAN Windows Interface DLL zur Nutzung der WinUSB Schnittstelle in eigenen Programmen.

Versionshistorie:
- 11.01.2014: Erstes Release
- 21.01.2014: Bugfixes sichere Initialisierung und Hardware Zeitstempel Modus.
- 23.01.2014: Bugfix, keine CAN Nachrichten mehr nach kurzer Trennung vom Bus.
- 24.01.2014: Feature Ub Spannungsmessung am OBD2 Stecker.
- 01.02.2014: Bugfix, Bitratenselektion < 83.333Bit/s.
- 29.06.2014: Bugfix, senden von Nachrichten.
- 03.07.2014: Bugfix, Behandlung von Ausnahmefehlern.
- 08.07.2014: Update, Dokumentation in RKS-USB.H
- 08.07.2014: Bugfix, beenden Benutzung der DLL.
- 04.12.2014: Feature Hardware CAN Filter konfigurierbar.
- 10.12.2014: Feature RTR Nachrichten.
- 27.04.2018: Asynchrone Verarbeitung von Befehlen, auch bei offenem CAN Bus und eintreffenden Nachrichten. D.h. während man CAN Nachrichten liest, kann z.B. die Spannung am OBD2 Stecker abgefragt werden.

API-Beschreibung:
Codice:
// RKS-USB.h : main header file for the RKS-USB DLL
//

#pragma once

#ifndef __AFXWIN_H__
   #error "include 'stdafx.h' before including this file for PCH"
#endif


// CAN frame types
#define FRAME_TYPE_NORMAL     0x1
#define FRAME_TYPE_RTR        0x2
#define FRAME_TYPE_NORMAL_EXT 0x3
#define FRAME_TYPE_RTR_EXT    0x4
#define FRAME_TYPE_ERR        0x5

// CAN data structure
typedef struct
{
  DWORD dwID;
  BYTE byDLC;
  BYTE abyData[8]; // max 8 data bytes
} can_data_t;

// CAN error information structure
typedef struct
{
  BYTE byError;
} can_err_t;

// CAN information structure
typedef union
{
  can_data_t sData;
  can_err_t sErr;
} can_union_t;

// The final CAN frame structure used for send/receive
typedef struct
{
  BYTE byType;
  DWORD dwTimeStamp;
  can_union_t uFrm; 
} can_msg_t;

// DLL exports

// Initialize USB driver, open connection to RKS+CAN hardware. Returns TRUE on success.
//  This command must be done once before calling any other RKS... function, except
//  RKSDeviceConnected.
extern "C" __declspec(dllexport) BOOL RKSInitialize(void);

// Free USB driver and RKS+CAN hardware. Should be called to release interface/driver.
extern "C" __declspec(dllexport) void RKSFree(void);

// Check if the RKS+CAN is connected to the computer. Returns TRUE on success. pcBufIfGUID can be NULL.
//  If pcBufIfGUID is not NULL, copy the DeviceInterfaceGUID of the RKS+CAN hardware to it.
//  If you check simply if the RKS+CAN is connected, it is recommended to call it with pcBufIfGUID = NULL.
extern "C" __declspec(dllexport) BOOL RKSDeviceConnected(LPSTR pcBufIfGUID, DWORD dwBufSize);

// Set the timeouts for reading / writing data to the RKS+CAN interface. The software waits at maximum the
//  specified values for read/write operations to complete. Returns TRUE on success.
extern "C" __declspec(dllexport) BOOL RKSSetTimeouts(DWORD dwMsTimeoutRead, DWORD dwMsTimeoutWrite);

// Get the version of the of the RKS+CAN hardware. Returns TRUE on success.
extern "C" __declspec(dllexport) BOOL RKSGetVersion(PUCHAR pucBuffer, DWORD dwBufferLength);

// Get the serial number of the RKS+CAN hardware (printed on the cable case).  Returns TRUE on success.
extern "C" __declspec(dllexport) BOOL RKSGetSerial(PUCHAR pucBuffer, DWORD dwBufferLength);

// Return time since RKS-USB driver initialisation. bReInit can be used to reset the time to zero.
//  Can be used to get relatively exact time information, the time is returned in seconds.
extern "C" __declspec(dllexport) double RKSGetTimeSinceInit(BOOL bReInit = FALSE);

// Get the error status of the RKS+CAN interface in pbyStatus. Returns TRUE on success.
extern "C" __declspec(dllexport) BOOL RKSCANGetLastStatus(BYTE* pbyStatus);

// Set RKS+CAN hardware to listen only mode. Returns TRUE on success.
extern "C" __declspec(dllexport) BOOL RKSCANSetListenOnly(BOOL bEnabled);

// Set time stamp mode of the RKS+CAN hardware. E.g. 0, 1 or 2.
//  For possible values check the ASCII interface description. Returns TRUE on success.
extern "C" __declspec(dllexport) BOOL RKSCANSetTimeStamp(BYTE byMode);

// Get time stamp mode. Returns TRUE on success.
extern "C" __declspec(dllexport) BOOL RKSCANGetTimeStamp(BYTE*pbyMode);

// Get the supply voltage of the RKS+CAN hardware. Returns TRUE on success.
extern "C" __declspec(dllexport) BOOL RKSCANGetUb(DWORD* pdwVoltage_mV);

// Set CAN hardware filtering of the RKS+CAN hardware. Returns TRUE on success.
extern "C" __declspec(dllexport) BOOL RKSCANSetFilter(DWORD dwCode, DWORD dwMask);

// Open CAN bus with the desired bitrate. Returns TRUE on success.
extern "C" __declspec(dllexport) BOOL RKSCANOpen(DWORD dwBitrate);

// Close CAN bus. Returns TRUE on success.
extern "C" __declspec(dllexport) BOOL RKSCANClose(void);

// Get one CAN message from the receive queue, RKSCANOpen(...) must have
//  been called before. Returns TRUE on success.
extern "C" __declspec(dllexport) BOOL RKSCANRx(can_msg_t* pMsg);

// Add one CAN message to the send queue, RKSCANOpen(...) must have
//  been called before. Returns TRUE on success.
extern "C" __declspec(dllexport) BOOL RKSCANTx(can_msg_t* pMsg);



RKS-USB.rar
 Descrizione:
 RKS-USB.DLL, RKS-USB.H, RKS-USB.LIB, RKS-USB.EXP

DLL-Schnittstelle für die RKS+CAN Hardware in eigenen Anwendungen.
RKS-USB.DLL, RKS-USB.H, RKS-USB.LIB, RKS-USB.EXP

DLL-Schnittstelle für die RKS+CAN Hardware in eigenen Anwendungen.
Scarica
 Nome file:  RKS-USB.rar
 Dimensione file:  227.87 KB
 Scaricato:  1133 volte
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Ultima modifica il 27-04-2018, 12:51, modificato 16 volte in totale.
Torna su Profilo MP WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Iscritto il: 07/06/2011
Messaggi: 573
Karma: +29 / -0   Grazie, mi piace!
Località: Ländle



Messaggio11-12-2014, 10:51    Oggetto: Interfaccia CAN-USB RKS+CAN, informazioni per sviluppatori e driver Traduzione in corso...

[Traduzione in corso...]

C++ Visual Studio Projekt für Visual Studio 2008 und neuer, Beispielnutzung der RKS-USB.DLL in eigenen Programmen.



rks-usb-example.jpg
 Descrizione:
 Screenshot von Example.exe, Beispiel zur Nutzung der DLL für die RKS+CAN Hardware.
 Dimensione file:  29.93 KB
 Visualizzato:  11567 volte

rks-usb-example.jpg


Example.rar
 Descrizione:
 RKS-USB Beispiel-Projekt (Sourcecode mit Binary).
RKS-USB Beispiel-Projekt (Sourcecode mit Binary).
Scarica
 Nome file:  Example.rar
 Dimensione file:  2.81 MB
 Scaricato:  1342 volte
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Ultima modifica il 27-04-2018, 12:47, modificato 3 volte in totale.
Torna su Profilo MP WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Iscritto il: 07/06/2011
Messaggi: 573
Karma: +29 / -0   Grazie, mi piace!
Località: Ländle



Messaggio17-02-2016, 13:23    Oggetto: Interfaccia CAN-USB RKS+CAN, informazioni per sviluppatori e driver Traduzione in corso...

[Traduzione in corso...]

VB.NET Programm (Beispielcode) zur Drehzahlsimulation an NEC 24c32/64 VDO Tachos, also z.B. Passat 3C, Golf 6, T5.2 Tachos usw.



Interfaccia CAN-USB RKS+CAN, informazioni per sviluppatori e driver - RKS+CAN.VB.NET.Example.mp4
 Descrizione:
 Ansteuerung Kombiinstrument/Instrumentenbrett mit RKS+CAN CAN-Interface.
 Dimensione file:  11.28 MB
 Visualizzato:  3000 volte




RKS CAN Test 2.rar
 Descrizione:
 Beispielcode Ansteuerung Kombiinstrument/Instrumentenbrett mit RKS+CAN CAN-Interface, Visual Basic .NET 2010 und neuer.
Beispielcode Ansteuerung Kombiinstrument/Instrumentenbrett mit RKS+CAN CAN-Interface, Visual Basic .NET 2010 und neuer.
Scarica
 Nome file:  RKS CAN Test 2.rar
 Dimensione file:  763.49 KB
 Scaricato:  957 volte
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Ultima modifica il 27-04-2018, 12:58, modificato 5 volte in totale.
Torna su Profilo MP WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Iscritto il: 07/06/2011
Messaggi: 573
Karma: +29 / -0   Grazie, mi piace!
Località: Ländle



Messaggio14-06-2016, 16:37    Oggetto: Interfaccia CAN-USB RKS+CAN, informazioni per sviluppatori e driver Traduzione in corso...

[Traduzione in corso...]

Citazione:
I take the chance and recommend our CAN-interface RKS+CAN in english. It has the
following advantages:
- NO problems with USB 2.0 nor USB 3.0 hosts
- NO (!!!) driver hassling, once plugged to the computer, Windows
installs (if needed) automatically the necessary driver. The user or a
software developer using our cable needs to to *nothing*. (Win > XP)
- Compatible to Win XP - Win 10
- Firmware (commands) can be adapted to YOUR need as software developer.
- Currently it is tested out and working perfectly. If later firmware
updates may be necessary, this is absolutely NO problem. The encrypted
firmware can be simply delivered with your latest software package.
Updating the firmware is one line of code.
- Secure license handling, an application can check for valid license
using asymmetric encryption via elliptic curves (curve25519). Even we as
hardware developer do not know what license is stored in the cable!
- You can identify single cables using the cable serial number that you
wish to print on your cable OR using the microcontroller's internal
serial number.
- Fast microcontroller that is not easy to copy/clone/read out: LPC1756.
- Demo code (C++) for license check/store/firmware upgrade/CAN
communication available.
- You can use your own USB VID/PID or use one of ours (exclusively for
YOUR cable version).
- Competitive price, WE are the manufacturer. Just tell us your
quantities and wishes what to change to your needs.


Best, Rainer
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Ultima modifica il 27-04-2018, 12:58, modificato 2 volte in totale.
Torna su Profilo MP WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Iscritto il: 07/06/2011
Messaggi: 573
Karma: +29 / -0   Grazie, mi piace!
Località: Ländle



Messaggio01-06-2023, 19:36    Oggetto: Interfaccia CAN-USB RKS+CAN, informazioni per sviluppatori e driver Traduzione in corso...

[Traduzione in corso...]

Linux:
Vendor/Device-ID für Treiber usb-serial-simple erfolgreich getestet

Codice:
[ 8061.025594] usbserial: USB Serial support registered for kaufmann
[ 8061.025611] usb_serial_simple 2-1.3:1.0: kaufmann converter detected
[ 8061.031722] usb 2-1.3: kaufmann converter now attached to ttyUSB0
[ 8061.031767] usb_serial_simple 2-1.3:1.1: kaufmann converter detected
[ 8061.031871] usb 2-1.3: kaufmann converter now attached to ttyUSB1


und zur Integration vorgeschlagen.

Sollte jemand noch ein Linux nutzen, wo die IDs nicht drin sind, siehe:
RKS+CAN mit Linux Fedora 37

Sollte, warum auch immer usb-serial-simple bei angestecktem Interface nicht mit "lsmod" gelistet sein, "insmod usbserial" und dann "insmod usb-serial-simple".

Erfolg testen mit "dmesg".

Viele Grüsse, Rainer
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Ultima modifica il 01-06-2023, 19:44, modificato 1 volta in totale.
Torna su Profilo MP WWW

Valutazioni - Interfaccia CAN-USB RKS+CAN, informazioni per sviluppatori e driver

Valutazione media: 0,00 - valutazione peggiore: 0 - valutazione migliore: 0 - numero di valutazioni: 0 - Visualizza valutazioni

Non sei autorizzato a valutare questo argomento. Danke sagen
Nuovo argomento Rispondi 🔗 🖨 CANhack.de - Indice » Sistema CAN-USB CANhack.de: RKS+CAN
Articoli e argomenti simili
Argomento Forum
Nessun nuovo messaggio RKS+CAN Treiber / API / Doku Sistema CAN-USB CANhack.de: RKS+CAN
Nessun nuovo messaggio Si cercano autisti!! Sistema CAN-USB CANhack.de: RKS+CAN
Nessun nuovo messaggio Cercasi driver Linux per processore ARM Sistema CAN-USB CANhack.de: RKS+CAN
Nessun nuovo messaggio D2XX-Treiber selfmade Software Sistema CAN-USB CANhack.de: RKS+CAN
Vai a:  
Non puoi scrivere nuovi argomenti in questo forum.