Skip to content

Commit e8a7a85

Browse files
wdfk-progRbb666
authored andcommitted
fix:can_uds与isotp-c 获取异常
1 parent 4c99ddd commit e8a7a85

5 files changed

Lines changed: 66 additions & 9 deletions

File tree

peripherals/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ source "$PKGS_DIR/packages/peripherals/sean_ws2812b/Kconfig"
8484
source "$PKGS_DIR/packages/peripherals/ic74hc165/Kconfig"
8585
source "$PKGS_DIR/packages/peripherals/ist8310/Kconfig"
8686
source "$PKGS_DIR/packages/peripherals/ST7789_SPI/Kconfig"
87+
source "$PKGS_DIR/packages/peripherals/can_uds/Kconfig"
8788
source "$PKGS_DIR/packages/peripherals/rtt_isotp-c/Kconfig"
8889
source "$PKGS_DIR/packages/peripherals/ikunLed/Kconfig"
8990
source "$PKGS_DIR/packages/peripherals/ins5t8025/Kconfig"

peripherals/can_uds/Kconfig

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
menuconfig PKG_USING_ISO14229
1+
2+
# Kconfig file for package can_uds
3+
menuconfig PKG_USING_CAN_UDS
24
bool "Enable iso14229 (UDS) library"
35
default n
46
help
57
ISO14229-1 (UDS) library for RT-Thread.
68
This library provides a platform-agnostic UDS client and server implementation
79
with an RT-Thread porting layer (iso14229_rtt.c).
810

9-
if PKG_USING_ISO14229
11+
if PKG_USING_CAN_UDS
1012

1113
menu "Logging Configuration"
1214
config UDS_LOG_LEVEL
@@ -273,4 +275,30 @@ if PKG_USING_ISO14229
273275
endmenu
274276
endif
275277

276-
endif
278+
config PKG_USING_ISO14229
279+
bool
280+
default "true"
281+
282+
config PKG_CAN_UDS_PATH
283+
string
284+
default "/packages/peripherals/can_uds"
285+
286+
choice
287+
prompt "Version"
288+
help
289+
Select the package version
290+
291+
config PKG_USING_CAN_UDS_V100
292+
bool "v1.0.0"
293+
294+
config PKG_USING_CAN_UDS_LATEST_VERSION
295+
bool "latest"
296+
endchoice
297+
298+
config PKG_CAN_UDS_VER
299+
string
300+
default "v1.0.0" if PKG_USING_CAN_UDS_V100
301+
default "latest" if PKG_USING_CAN_UDS_LATEST_VERSION
302+
303+
endif
304+

peripherals/can_uds/package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "can_uds",
33
"description": "The implementation of the ISO14229-1 (UDS) protocol stack suitable for RT-Thread. It provides functions such as CAN console mode and file transfer.",
44
"description_zh": "适用于 RT-Thread 的 ISO14229-1 (UDS) 协议栈实现。提供CAN控制台模式与文件传输等功能。",
5-
"enable": "PKG_USING_ISO14229",
5+
"enable": "PKG_USING_CAN_UDS",
66
"keywords": [
77
"uds",
88
"iso14229",
@@ -12,17 +12,22 @@
1212
],
1313
"category": "peripherals",
1414
"author": {
15-
"name": "hly",
15+
"name": "wdfk-prog",
1616
"email": "1425075683@qq.com",
1717
"github": "wdfk-prog"
1818
},
1919
"license": "MIT",
20-
"repository": "https://github.com/wdfk-prog/can_uds.git",
20+
"repository": "https://github.com/wdfk-prog/can_uds",
2121
"icon": "unknown",
2222
"homepage": "https://github.com/wdfk-prog/can_uds#readme",
2323
"doc": "https://github.com/wdfk-prog/can_uds/blob/master/README.md",
2424
"readme": "ISO14229-1 (UDS) library implementation for RT-Thread.",
2525
"site": [
26+
{
27+
"version": "v1.0.0",
28+
"URL": "https://github.com/wdfk-prog/can_uds/archive/refs/tags/V1.0.0.zip",
29+
"filename": "can_uds-1.0.0.zip"
30+
},
2631
{
2732
"version": "latest",
2833
"URL": "https://github.com/wdfk-prog/can_uds.git",

peripherals/rtt_isotp-c/Kconfig

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,26 @@ if PKG_USING_ISOTP_C
106106
Enable examples for isotp-c package, demonstrating communication
107107
between two CAN interfaces.
108108

109-
config PKG_ISOTP_C_VERSION
110-
string "isotp-c version"
111-
default "latest"
109+
config PKG_ISOTP_C_PATH
110+
string
111+
default "/packages/peripherals/rtt_isotp-c"
112+
113+
choice
114+
prompt "Version"
115+
help
116+
Select the package version
117+
118+
config PKG_USING_ISOTP_C_V100
119+
bool "v1.0.0"
120+
121+
config PKG_USING_ISOTP_C_LATEST_VERSION
122+
bool "latest"
123+
endchoice
124+
125+
config PKG_ISOTP_C_VER
126+
string
127+
default "v1.0.0" if PKG_USING_ISOTP_C_V100
128+
default "latest" if PKG_USING_ISOTP_C_LATEST_VERSION
129+
112130

113131
endif

peripherals/rtt_isotp-c/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
"doc": "https://github.com/wdfk-prog/rtt_isotp-c.git#readme",
2020
"readme": "Adapter layer for CAN TP (ISO 15765-2). Designed for scenarios involving multi-frame transmission (can be interfaced to implement protocols such as YMODEM).",
2121
"site": [
22+
{
23+
"version": "v1.0.0",
24+
"URL": "https://github.com/wdfk-prog/rtt_isotp-c/archive/refs/tags/v1.01.00.zip",
25+
"filename": "rtt_isotp_c-1.0.0.zip"
26+
},
2227
{
2328
"version": "latest",
2429
"URL": "https://github.com/wdfk-prog/rtt_isotp-c.git",

0 commit comments

Comments
 (0)