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

CAN to USB Interface RKS+CAN, Developer Info & Drivers

 
New Topic Reply 🔗 ⭐ 🖨 CANhack.de - Index » CANhack.de CAN-USB System: RKS+CAN
Author Message
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post06-08-2013, 14:55    Subject: CAN to USB Interface RKS+CAN, Developer Info & Drivers Quote

The current CANHack.de CAN Interface Hardware is the RKS+CAN from Kaufmann Automotive GmbH. It is a CAN to USB diagnostic interface with a dongle function.

This topic is only relevant if you want to develop your own programs for the RKS+CAN or if it is to be used for already existing programs.

It offers a ASCII compatibility interface (LAWICEL compatible) as well as a Windows .dll to interface with existing software (Windows, Linux, Mac).
As a new development, it supports WCID (Windows Compatible ID), which means that it can be directly accessed by applications developed for current operating systems such as Microsoft Windows Vista, 7, 8, 8.1, 10, and 11, without the need to worry about driver issues.

The hardware used has an integrated license management system and offers significant reserves for future feature enhancements; the firmware of the CAN interface is upgradeable.
For larger quantities, branding is possible. A wireless WIFI version is in the planning stages.

End customers: The CAN interface can be purchased here, the full versions of the programs KCANMonitor, KOBD2Check (includes firmware and driver installation) are included, and the RKS+CAN is compatible with many other applications.
Manufacturer: For inquiries regarding branding or custom interfaces, please contact Kaufmann Automotive GmbH - Embedded Software Development directly.

Software package customizable; the following software is included by default:
- KCANMonitor CAN bus sniffer.
- CAN-API for C++ and further examples (VB.NET, etc.).
- OBD2 software, such as KOBD2Check, which means the system can also be used for reading OBD2 error codes.
- Visualize and analyze OBD2 data with KDataScope.

RKS+CAN Feature Requests: https://www.canhack.de/en/viewtopic.php?t=2059



RKS+CAN.jpg
 Description:
 RKS+CAN Hardware, CAN -> USB Interface.
 File size:  19.92 KB
 Viewed:  29146 times

RKS+CAN.jpg

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


Translated on 03-07-2026, 15:19.
Back to top Profile PM WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post07-01-2014, 19:13    Subject: CAN to USB Interface RKS+CAN, Developer Info & Drivers Translating...

[Translating...]

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



RKS-USB.rar
 Description:
 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.
Download
 File name:  RKS-USB.rar
 File size:  236.15 KB
 Downloaded:  3251 times
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Last edited on 20-10-2023, 12:27, edited 11 times in total.
Back to top Profile PM WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post11-01-2014, 20:13    Subject: CAN to USB Interface RKS+CAN, Developer Info & Drivers Translating...

[Translating...]

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
 Description:
 Virtueller COM Port, Treiber installieren (Windows XP - 8.1).
 File size:  316.82 KB
 Viewed:  20089 times

RKS+CAN-VCP.png


VCP-Port-Config.png
 Description:
 Einstellung der Ports beim VCP (Windows XP - 8.1).
 File size:  313.91 KB
 Viewed:  20513 times

VCP-Port-Config.png


Devices.png
 Description:
 Gerätemanager (Windows XP - 8.1).
 File size:  32.76 KB
 Viewed:  19977 times

Devices.png

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


Last edited on 01-06-2023, 19:32, edited 16 times in total.
Back to top Profile PM WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post29-06-2014, 21:50    Subject: CAN to USB Interface RKS+CAN, Developer Info & Drivers Translating...

[Translating...]

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:
Code:
// 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
 Description:
 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.
Download
 File name:  RKS-USB.rar
 File size:  227.87 KB
 Downloaded:  1133 times
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Last edited on 27-04-2018, 12:51, edited 16 times in total.
Back to top Profile PM WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post11-12-2014, 10:51    Subject: CAN to USB Interface RKS+CAN, Developer Info & Drivers Translating...

[Translating...]

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



rks-usb-example.jpg
 Description:
 Screenshot von Example.exe, Beispiel zur Nutzung der DLL fĂźr die RKS+CAN Hardware.
 File size:  29.93 KB
 Viewed:  11567 times

rks-usb-example.jpg


Example.rar
 Description:
 RKS-USB Beispiel-Projekt (Sourcecode mit Binary).
RKS-USB Beispiel-Projekt (Sourcecode mit Binary).
Download
 File name:  Example.rar
 File size:  2.81 MB
 Downloaded:  1343 times
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Last edited on 27-04-2018, 12:47, edited 3 times in total.
Back to top Profile PM WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post17-02-2016, 13:23    Subject: CAN to USB Interface RKS+CAN, Developer Info & Drivers Translating...

[Translating...]

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



CAN to USB Interface RKS+CAN, Developer Info & Drivers - RKS+CAN.VB.NET.Example.mp4
 Description:
 Ansteuerung Kombiinstrument/Instrumentenbrett mit RKS+CAN CAN-Interface.
 File size:  11.28 MB
 Viewed:  3001 times




RKS CAN Test 2.rar
 Description:
 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.
Download
 File name:  RKS CAN Test 2.rar
 File size:  763.49 KB
 Downloaded:  957 times
Dipl.-Ing. (FH) Rainer Kaufmann - Embedded Software Freelancer
System RKS+CAN: CANHack.de CAN-Bus Interface


Last edited on 27-04-2018, 12:58, edited 5 times in total.
Back to top Profile PM WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post14-06-2016, 16:37    Subject: CAN to USB Interface RKS+CAN, Developer Info & Drivers Translating...

[Translating...]

Quote:
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


Last edited on 27-04-2018, 12:58, edited 2 times in total.
Back to top Profile PM WWW
CAN-Diagnose
Administrator
Administrator
Avatar-CAN-Diagnose

Joined: 06/07/2011
Posts: 573
Karma: +29 / -0   Thank you, like it!
Location: Ländle



Post01-06-2023, 19:36    Subject: CAN to USB Interface RKS+CAN, Developer Info & Drivers Translating...

[Translating...]

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

Code:
[ 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


Last edited on 01-06-2023, 19:44, edited 1 time in total.
Back to top Profile PM WWW

Ratings - CAN to USB Interface RKS+CAN, Developer Info & Drivers

Average rating: 0.00 - worst rating: 0 - best rating: 0 - number of ratings: 0 - View ratings

You are not authorized to rate this topic. Danke sagen
New Topic Reply 🔗 ⭐ 🖨 CANhack.de - Index » CANhack.de CAN-USB System: RKS+CAN
Similar articles and topics
Topic Forum
No new posts RKS+CAN Treiber / API / Doku CANhack.de CAN-USB System: RKS+CAN
No new posts Driver wanted!! CANhack.de CAN-USB System: RKS+CAN
No new posts Looking for: Linux drivers for ARM processor CANhack.de CAN-USB System: RKS+CAN
No new posts D2XX-Treiber selfmade Software CANhack.de CAN-USB System: RKS+CAN
Jump to:  
You cannot post new topics in this forum.