Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aster94/Keyword-Protocol-2000
/ functions
Functions
43 in github.com/aster94/Keyword-Protocol-2000
⨍
Functions
43
◇
Types & classes
6
↓ 8 callers
Function
compare
(received,correct)
extras/ECU_Emulator/ECU_Emulator.py:91
↓ 7 callers
Function
send
(to_send)
extras/ECU_Emulator/ECU_Emulator.py:81
↓ 2 callers
Function
calc_cs
(arr)
extras/ECU_Emulator/ECU_Emulator.py:114
↓ 1 callers
Function
listen
()
extras/ECU_Emulator/ECU_Emulator.py:119
Method
KWP2000
* @brief Constructor for the KWP2000 class * * @param kline_serial The Serial port you will use to communicate with the ECU * @param k_out_pin The
src/KWP2000.cpp:72
Method
calc_checksum
* @brief The checksum is the sum of all data bytes modulo (&) 0xFF (same as being truncated to one byte) * * @param data All the bytes received * @
src/KWP2000.cpp:2020
Method
checkResponse
* @brief Compare the given response to the correct one which should be received * * @param request_sent The request sent to the ECU * @return `true
src/KWP2000.cpp:1730
Method
clearError
* @brief Clear errors from `error_enum` * * @param error The error you want to clear */
src/KWP2000.cpp:1892
Method
clearTroubleCodes
* @brief Clear the DTC from the ECU * * @param code Optional. Only the passed `code` will be cleared */
src/KWP2000.cpp:580
Method
configureKline
* @brief Configure the K-Line behaviour from the keybytes received by the ECU */
src/KWP2000.cpp:1900
Method
disableDebug
* @brief Disable the debug */
src/KWP2000.cpp:131
Method
enableDealerMode
* @brief Only for Suzuki: Enable the Dealer Mode * * @param dealer_pin The pin you will use to control it */
src/KWP2000.cpp:146
Method
enableDebug
* @brief Enable the debug of the communication * * @param debug_serial The Serial port you will use for the debug information * @param debug_level
src/KWP2000.cpp:92
Method
endResponse
* @brief This is called when the last byte is received from the ECU * * @param received_checksum The last byte received which is the checksum */
src/KWP2000.cpp:2035
Method
getCLUTCH
src/KWP2000.cpp:1283
Method
getDealerMode
* @brief Only for Suzuki: Check the dealer status * * @return true if it is in dealer mode * @return false otherwise */
src/KWP2000.cpp:184
Method
getECT
src/KWP2000.cpp:1326
Method
getGPS
* @brief Get* the ECU sensor value you need * GPS: Gear Position Sensor * CLUTCH: Know if the clutch is pressed or not * RPM: Revolutions per Minut
src/KWP2000.cpp:1278
Method
getIAP
src/KWP2000.cpp:1312
Method
getIAT
src/KWP2000.cpp:1317
Method
getRPM
src/KWP2000.cpp:1288
Method
getSPEED
src/KWP2000.cpp:1293
Method
getSTPS
src/KWP2000.cpp:1307
Method
getStatus
* @brief Get the connection status * * @return It could be `true` or `false` */
src/KWP2000.cpp:1259
Method
getTPS
src/KWP2000.cpp:1302
Method
getVOLT
src/KWP2000.cpp:1335
Method
handleRequest
///////// COMMUNICATION - Advanced //////////////// * @brief This function is the core of the library. You just need to give a PID and it will generat
src/KWP2000.cpp:706
Method
initKline
* @brief Initialize the the communication through the K-Line * * @return `false` until the connection is not established; `true` if we connected; a
src/KWP2000.cpp:216
Method
keepAlive
* @brief Keep the connection through the K-Line alive * * @param time Optional. It is calculated automatically to be a safe interval */
src/KWP2000.cpp:608
Method
listenResponse
* @brief Listen and process the response from the ECU * * @param use_delay Choose to wait at the end of the function or to do other tasks */
src/KWP2000.cpp:1452
Method
printLastResponse
* @brief Print the last response received from the ECU */
src/KWP2000.cpp:1238
Method
printSensorsData
* @brief Print all the sensors data from the ECU, you need to run `requestSensorsData()` before */
src/KWP2000.cpp:1186
Method
printStatus
* @brief Print a rich and useful set of information about the ECU status and errors * * @param time Optional, default to 5 seconds. The time between
src/KWP2000.cpp:1064
Method
readTroubleCodes
* @brief Read the Diagnostic Trouble Codes (DTC) from the ECU * * @param Default to `READ_ONLY_ACTIVE`, accepted values `READ_TOTAL`, `READ_ALL` */
src/KWP2000.cpp:536
Method
requestSensorsData
* @brief Send a request to the ECU asking for data from all the sensors, then you can access the single sensor with the `get*()` functions or you can
src/KWP2000.cpp:446
Method
sendRequest
* @brief Generate and send a request to the ECU * * @param pid The PID you want to send * @param pid_len the length of the PID, get it with `sizeof
src/KWP2000.cpp:1350
Method
setDealerMode
* @brief Only for Suzuki: Enable/Disable the Dealer Mode * * @param dealer_mode Choose between true/false */
src/KWP2000.cpp:163
Method
setDebugLevel
* @brief Change the debug level * * @param debug_level choose between DEBUG_LEVEL_NONE DEBUG_LEVEL_DEFAULT DEBUG_LEVEL_VERBOSE */
src/KWP2000.cpp:110
Method
setError
* @brief Set errors from `error_enum` * * @param error The error you want to set */
src/KWP2000.cpp:1882
Method
set_bike_specific_values
src/ISO.h:99
Method
stopKline
* @brief Close the communication with the motorbike * * @return `false` until the connection is not closed; `true` if there aren't any errors, a `ne
src/KWP2000.cpp:371
Method
use_imperial
* @brief Choose to use imperial system for the sensors values (mp/h, Fahrenheit) */
src/KWP2000.cpp:196
Method
use_metric
* @brief Choose to use metric system for the sensors values (km/h, Celsius) */
src/KWP2000.cpp:204