cantools 45.1.0__tar.gz → 45.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. {cantools-45.1.0 → cantools-45.1.2}/PKG-INFO +16 -7
  2. {cantools-45.1.0 → cantools-45.1.2}/README.rst +15 -6
  3. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/__init__.py +47 -0
  4. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/dbc/dbc_attribute.py +3 -1
  5. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/dbc/dbc_loader.py +2 -40
  6. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/dbc/dbc_writer.py +13 -3
  7. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/sym.py +33 -6
  8. {cantools-45.1.0 → cantools-45.1.2}/src/cantools.egg-info/PKG-INFO +16 -7
  9. {cantools-45.1.0 → cantools-45.1.2}/src/cantools.egg-info/SOURCES.txt +3 -3
  10. {cantools-45.1.0 → cantools-45.1.2}/src/cantools.egg-info/scm_file_list.json +3 -3
  11. cantools-45.1.2/src/cantools.egg-info/scm_version.json +8 -0
  12. cantools-45.1.2/tests/files/dbc/string_attribute_escaping.dbc +33 -0
  13. cantools-45.1.2/tests/files/dbc/unquoted_attributes.dbc +25 -0
  14. {cantools-45.1.0 → cantools-45.1.2}/tests/test_database.py +245 -22
  15. {cantools-45.1.0 → cantools-45.1.2}/tests/test_list.py +0 -72
  16. cantools-45.1.2/tests/test_sym_hex_numbers.py +68 -0
  17. cantools-45.1.0/src/cantools.egg-info/scm_version.json +0 -8
  18. cantools-45.1.0/tests/files/dbc/good-val-sig_valtype.dbc +0 -47
  19. cantools-45.1.0/tests/files/dbc/incorrect-sig_valtype.dbc +0 -46
  20. cantools-45.1.0/tests/files/dbc/incorrect-val.dbc +0 -46
  21. {cantools-45.1.0 → cantools-45.1.2}/.gitattributes +0 -0
  22. {cantools-45.1.0 → cantools-45.1.2}/.github/FUNDING.yml +0 -0
  23. {cantools-45.1.0 → cantools-45.1.2}/.github/dependabot.yml +0 -0
  24. {cantools-45.1.0 → cantools-45.1.2}/.github/release.yml +0 -0
  25. {cantools-45.1.0 → cantools-45.1.2}/.github/workflows/pythonpackage.yml +0 -0
  26. {cantools-45.1.0 → cantools-45.1.2}/.gitignore +0 -0
  27. {cantools-45.1.0 → cantools-45.1.2}/.readthedocs.yml +0 -0
  28. {cantools-45.1.0 → cantools-45.1.2}/LICENSE +0 -0
  29. {cantools-45.1.0 → cantools-45.1.2}/MANIFEST.in +0 -0
  30. {cantools-45.1.0 → cantools-45.1.2}/docs/Makefile +0 -0
  31. {cantools-45.1.0 → cantools-45.1.2}/docs/conf.py +0 -0
  32. {cantools-45.1.0 → cantools-45.1.2}/docs/index.rst +0 -0
  33. {cantools-45.1.0 → cantools-45.1.2}/docs/make.bat +0 -0
  34. {cantools-45.1.0 → cantools-45.1.2}/docs/monitor.png +0 -0
  35. {cantools-45.1.0 → cantools-45.1.2}/docs/plot-1.png +0 -0
  36. {cantools-45.1.0 → cantools-45.1.2}/docs/plot-2-axes.png +0 -0
  37. {cantools-45.1.0 → cantools-45.1.2}/docs/plot-2-subplots.png +0 -0
  38. {cantools-45.1.0 → cantools-45.1.2}/docs/plot-seaborn.png +0 -0
  39. {cantools-45.1.0 → cantools-45.1.2}/docs/requirements.txt +0 -0
  40. {cantools-45.1.0 → cantools-45.1.2}/examples/dbc_io/dbc_input.dbc +0 -0
  41. {cantools-45.1.0 → cantools-45.1.2}/examples/dbc_io/main.py +0 -0
  42. {cantools-45.1.0 → cantools-45.1.2}/examples/diagnostics/did.py +0 -0
  43. {cantools-45.1.0 → cantools-45.1.2}/examples/hello_world.py +0 -0
  44. {cantools-45.1.0 → cantools-45.1.2}/examples/motor_tester/README.rst +0 -0
  45. {cantools-45.1.0 → cantools-45.1.2}/examples/motor_tester/main.py +0 -0
  46. {cantools-45.1.0 → cantools-45.1.2}/examples/motor_tester/motor.py +0 -0
  47. {cantools-45.1.0 → cantools-45.1.2}/examples/motor_tester/system.kcd +0 -0
  48. {cantools-45.1.0 → cantools-45.1.2}/pyproject.toml +0 -0
  49. {cantools-45.1.0 → cantools-45.1.2}/setup.cfg +0 -0
  50. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/__init__.py +0 -0
  51. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/__main__.py +0 -0
  52. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/autosar/__init__.py +0 -0
  53. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/autosar/end_to_end.py +0 -0
  54. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/autosar/secoc.py +0 -0
  55. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/autosar/snakeauth.py +0 -0
  56. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/__init__.py +0 -0
  57. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/bus.py +0 -0
  58. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/c_source.py +0 -0
  59. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/database.py +0 -0
  60. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/__init__.py +0 -0
  61. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/arxml/__init__.py +0 -0
  62. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/arxml/bus_specifics.py +0 -0
  63. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/arxml/database_specifics.py +0 -0
  64. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/arxml/ecu_extract_loader.py +0 -0
  65. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/arxml/end_to_end_properties.py +0 -0
  66. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/arxml/message_specifics.py +0 -0
  67. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/arxml/node_specifics.py +0 -0
  68. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/arxml/secoc_properties.py +0 -0
  69. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/arxml/system_loader.py +0 -0
  70. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/arxml/utils.py +0 -0
  71. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/dbc/__init__.py +0 -0
  72. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/dbc/dbc_attribute_definition.py +0 -0
  73. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/dbc/dbc_environment_variable.py +0 -0
  74. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/dbc/dbc_specifics.py +0 -0
  75. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/kcd.py +0 -0
  76. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/formats/utils.py +0 -0
  77. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/internal_database.py +0 -0
  78. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/message.py +0 -0
  79. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/node.py +0 -0
  80. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/signal.py +0 -0
  81. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/can/signal_group.py +0 -0
  82. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/conversion.py +0 -0
  83. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/diagnostics/__init__.py +0 -0
  84. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/diagnostics/data.py +0 -0
  85. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/diagnostics/database.py +0 -0
  86. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/diagnostics/did.py +0 -0
  87. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/diagnostics/formats/__init__.py +0 -0
  88. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/diagnostics/formats/cdd.py +0 -0
  89. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/diagnostics/internal_database.py +0 -0
  90. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/errors.py +0 -0
  91. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/namedsignalvalue.py +0 -0
  92. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/database/utils.py +0 -0
  93. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/errors.py +0 -0
  94. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/j1939.py +0 -0
  95. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/logreader.py +0 -0
  96. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/py.typed +0 -0
  97. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/subparsers/__init__.py +0 -0
  98. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/subparsers/__utils__.py +0 -0
  99. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/subparsers/convert.py +0 -0
  100. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/subparsers/decode.py +0 -0
  101. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/subparsers/dump/__init__.py +0 -0
  102. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/subparsers/dump/formatting.py +0 -0
  103. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/subparsers/generate_c_source.py +0 -0
  104. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/subparsers/list.py +0 -0
  105. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/subparsers/monitor.py +0 -0
  106. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/subparsers/plot.py +0 -0
  107. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/tester.py +0 -0
  108. {cantools-45.1.0 → cantools-45.1.2}/src/cantools/typechecking.py +0 -0
  109. {cantools-45.1.0 → cantools-45.1.2}/src/cantools.egg-info/dependency_links.txt +0 -0
  110. {cantools-45.1.0 → cantools-45.1.2}/src/cantools.egg-info/entry_points.txt +0 -0
  111. {cantools-45.1.0 → cantools-45.1.2}/src/cantools.egg-info/requires.txt +0 -0
  112. {cantools-45.1.0 → cantools-45.1.2}/src/cantools.egg-info/top_level.txt +0 -0
  113. {cantools-45.1.0 → cantools-45.1.2}/tests/__init__.py +0 -0
  114. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/compu_method_no_category.arxml +0 -0
  115. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/ecu-extract-4.2.arxml +0 -0
  116. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/system-3.2.3.arxml +0 -0
  117. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/system-4.2.arxml +0 -0
  118. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/system-DAI-3.1.2.arxml +0 -0
  119. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/system-bad-root-tag-4.2.arxml +0 -0
  120. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/system-dangling-reference-4.2.arxml +0 -0
  121. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/system-float-limits-missing-compu-scale-4.2.arxml +0 -0
  122. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/system-float-values.arxml +0 -0
  123. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/system-illegal-namespace-4.2.arxml +0 -0
  124. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/system-illegal-root-4.2.arxml +0 -0
  125. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/system-illegal-version-4.2.2.1.0.arxml +0 -0
  126. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/system-missing-denominator-4.2.arxml +0 -0
  127. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/system-missing-factor-4.2.arxml +0 -0
  128. {cantools-45.1.0 → cantools-45.1.2}/tests/files/arxml/system-missing-rational-4.2.arxml +0 -0
  129. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/abs.c +0 -0
  130. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/abs.h +0 -0
  131. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/camel_case_empty.c +0 -0
  132. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/camel_case_empty.h +0 -0
  133. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/choices.c +0 -0
  134. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/choices.h +0 -0
  135. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/floating_point.c +0 -0
  136. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/floating_point.h +0 -0
  137. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/floating_point_bit_fields.c +0 -0
  138. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/floating_point_bit_fields.h +0 -0
  139. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/floating_point_use_float.c +0 -0
  140. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/floating_point_use_float.h +0 -0
  141. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/letter_terminated_can_id_6_0.c +0 -0
  142. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/letter_terminated_can_id_6_0.h +0 -0
  143. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/min_max_only_6_0.c +0 -0
  144. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/min_max_only_6_0.h +0 -0
  145. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/motohawk.c +0 -0
  146. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/motohawk.h +0 -0
  147. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/motohawk_bit_fields.c +0 -0
  148. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/motohawk_bit_fields.h +0 -0
  149. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/motohawk_no_floating_point_numbers.c +0 -0
  150. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/motohawk_no_floating_point_numbers.h +0 -0
  151. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/motohawk_sender_node.c +0 -0
  152. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/motohawk_sender_node.h +0 -0
  153. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/motohawk_sender_node_no_floating_point_numbers.c +0 -0
  154. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/motohawk_sender_node_no_floating_point_numbers.h +0 -0
  155. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/motohawk_use_round.c +0 -0
  156. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/motohawk_use_round.h +0 -0
  157. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/multiplex.c +0 -0
  158. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/multiplex.h +0 -0
  159. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/multiplex_2.c +0 -0
  160. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/multiplex_2.h +0 -0
  161. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/multiplex_2_fuzzer.c +0 -0
  162. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/multiplex_2_fuzzer.h +0 -0
  163. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/multiplex_2_fuzzer.mk +0 -0
  164. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/my_database_name.c +0 -0
  165. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/my_database_name.h +0 -0
  166. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/no_signals.c +0 -0
  167. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/no_signals.h +0 -0
  168. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/open_actuator.c +0 -0
  169. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/open_actuator.h +0 -0
  170. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/open_actuator_no_floating_point_numbers.c +0 -0
  171. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/open_actuator_no_floating_point_numbers.h +0 -0
  172. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/open_actuator_sender_node.c +0 -0
  173. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/open_actuator_sender_node.h +0 -0
  174. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/open_actuator_sender_node_no_floating_point_numbers.c +0 -0
  175. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/open_actuator_sender_node_no_floating_point_numbers.h +0 -0
  176. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/padding_bit_order.c +0 -0
  177. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/padding_bit_order.h +0 -0
  178. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/signed.c +0 -0
  179. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/signed.h +0 -0
  180. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/signed_bit_fields.c +0 -0
  181. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/signed_bit_fields.h +0 -0
  182. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/vehicle.c +0 -0
  183. {cantools-45.1.0 → cantools-45.1.2}/tests/files/c_source/vehicle.h +0 -0
  184. {cantools-45.1.0 → cantools-45.1.2}/tests/files/cdd/example-diddatarefs.cdd +0 -0
  185. {cantools-45.1.0 → cantools-45.1.2}/tests/files/cdd/example.cdd +0 -0
  186. {cantools-45.1.0 → cantools-45.1.2}/tests/files/cdd/invalid-bo-example.cdd +0 -0
  187. {cantools-45.1.0 → cantools-45.1.2}/tests/files/cdd/le-example.cdd +0 -0
  188. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/BU_BO_REL_.dbc +0 -0
  189. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/BU_BO_REL_Message.dbc +0 -0
  190. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/BU_EV_REL_.dbc +0 -0
  191. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/CamelCaseEmpty.dbc +0 -0
  192. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/abs.dbc +0 -0
  193. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/add_two_dbc_files_1.dbc +0 -0
  194. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/add_two_dbc_files_2.dbc +0 -0
  195. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/attribute_Event.dbc +0 -0
  196. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/attributes.dbc +0 -0
  197. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/bad_message_length.dbc +0 -0
  198. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/big_numbers.dbc +0 -0
  199. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/bus_comment.dbc +0 -0
  200. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/bus_comment_bare.dbc +0 -0
  201. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/bus_comment_bare_out.dbc +0 -0
  202. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/choices.dbc +0 -0
  203. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/choices_issue_with_name.dbc +0 -0
  204. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/comments_hex_and_motorola_converted_from_sym.dbc +0 -0
  205. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/cp1252.dbc +0 -0
  206. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/dump_signal_choices.dbc +0 -0
  207. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/emc32.dbc +0 -0
  208. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/empty_choice.dbc +0 -0
  209. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/empty_ns.dbc +0 -0
  210. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/environment_variable_data.dbc +0 -0
  211. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/environment_variable_multiple_access_nodes.dbc +0 -0
  212. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/fd_test.dbc +0 -0
  213. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/fd_test_int.dbc +0 -0
  214. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/floating_point.dbc +0 -0
  215. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/floating_point_use_float.dbc +0 -0
  216. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/foobar.dbc +0 -0
  217. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/is_in_phys_range.dbc +0 -0
  218. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_163_newline.dbc +0 -0
  219. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_168.DBC +0 -0
  220. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_184_extended_mux_cascaded.dbc +0 -0
  221. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_184_extended_mux_cascaded_dumped.dbc +0 -0
  222. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_184_extended_mux_independent_multiplexors.dbc +0 -0
  223. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_184_extended_mux_independent_multiplexors_dumped.dbc +0 -0
  224. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_184_extended_mux_multiple_values.dbc +0 -0
  225. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_184_extended_mux_multiple_values_dumped.dbc +0 -0
  226. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_199.dbc +0 -0
  227. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_199_extended.dbc +0 -0
  228. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_207_sig_plus.dbc +0 -0
  229. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_228.dbc +0 -0
  230. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_62.dbc +0 -0
  231. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_63.dbc +0 -0
  232. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_636_negative_scaling.dbc +0 -0
  233. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_725.dbc +0 -0
  234. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/issue_784.dbc +0 -0
  235. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/j1939.dbc +0 -0
  236. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/long_names.dbc +0 -0
  237. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/long_names_multiple_relations.dbc +0 -0
  238. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/long_names_multiple_relations_dumped.dbc +0 -0
  239. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/message-dlc-zero.dbc +0 -0
  240. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/mod_name_len_dest.dbc +0 -0
  241. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/mod_name_len_src.dbc +0 -0
  242. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/motohawk.dbc +0 -0
  243. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/motohawk_fd.dbc +0 -0
  244. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/motohawk_use_round.dbc +0 -0
  245. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/motohawk_with_comments.dbc +0 -0
  246. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/msxii_system_can.dbc +0 -0
  247. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/multiple_senders.dbc +0 -0
  248. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/multiplex.dbc +0 -0
  249. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/multiplex_2.dbc +0 -0
  250. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/multiplex_2_dumped.dbc +0 -0
  251. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/multiplex_choices.dbc +0 -0
  252. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/multiplex_choices_dumped.dbc +0 -0
  253. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/multiplex_dumped.dbc +0 -0
  254. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/no_sender.dbc +0 -0
  255. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/no_signals.dbc +0 -0
  256. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/open_actuator.dbc +0 -0
  257. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/padding_bit_order.dbc +0 -0
  258. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/relation_attributes.dbc +0 -0
  259. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/sig_groups.dbc +0 -0
  260. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/sig_groups_del.dbc +0 -0
  261. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/sig_groups_out.dbc +0 -0
  262. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/signed.dbc +0 -0
  263. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/socialledge-written-by-cantools-with-default-sort-signals.dbc +0 -0
  264. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/socialledge-written-by-cantools-with-sort-signals-by-name.dbc +0 -0
  265. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/socialledge-written-by-cantools.dbc +0 -0
  266. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/socialledge.dbc +0 -0
  267. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/test_extended_id_dump.dbc +0 -0
  268. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/test_multiplex_dump.dbc +0 -0
  269. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/timing.dbc +0 -0
  270. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/val_table.dbc +0 -0
  271. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/variable_dlc.dbc +0 -0
  272. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/vehicle.dbc +0 -0
  273. {cantools-45.1.0 → cantools-45.1.2}/tests/files/dbc/vframeformat_int.dbc +0 -0
  274. {cantools-45.1.0 → cantools-45.1.2}/tests/files/kcd/auto_message_length.kcd +0 -0
  275. {cantools-45.1.0 → cantools-45.1.2}/tests/files/kcd/bad_message_length.kcd +0 -0
  276. {cantools-45.1.0 → cantools-45.1.2}/tests/files/kcd/dump.kcd +0 -0
  277. {cantools-45.1.0 → cantools-45.1.2}/tests/files/kcd/empty.kcd +0 -0
  278. {cantools-45.1.0 → cantools-45.1.2}/tests/files/kcd/message_layout.kcd +0 -0
  279. {cantools-45.1.0 → cantools-45.1.2}/tests/files/kcd/signal_range.kcd +0 -0
  280. {cantools-45.1.0 → cantools-45.1.2}/tests/files/kcd/tester.kcd +0 -0
  281. {cantools-45.1.0 → cantools-45.1.2}/tests/files/kcd/the_homer.kcd +0 -0
  282. {cantools-45.1.0 → cantools-45.1.2}/tests/files/kcd/vehicle.kcd +0 -0
  283. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/bad_message_length.sym +0 -0
  284. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/big-endian.sym +0 -0
  285. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/comments_hex_and_motorola.sym +0 -0
  286. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/empty-6.0.sym +0 -0
  287. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/empty-enum-6.0.sym +0 -0
  288. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/issue_138.sym +0 -0
  289. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/jopp-5.0.sym +0 -0
  290. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/jopp-6.0.sym +0 -0
  291. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/letter-terminated-can-id-6.0.sym +0 -0
  292. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/min-max-only-6.0.sym +0 -0
  293. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/multiplexed_variables.sym +0 -0
  294. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/receive-6.0.sym +0 -0
  295. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/send-6.0.sym +0 -0
  296. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/sendreceive-6.0.sym +0 -0
  297. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/signal-types-6.0.sym +0 -0
  298. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/special-chars-6.0.sym +0 -0
  299. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/test_extended_id_dump.sym +0 -0
  300. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/test_multiline_enum.sym +0 -0
  301. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/test_multiplex_dump.sym +0 -0
  302. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/type-extended-cycle-dash-p.sym +0 -0
  303. {cantools-45.1.0 → cantools-45.1.2}/tests/files/sym/variables-color-enum-6.0.sym +0 -0
  304. {cantools-45.1.0 → cantools-45.1.2}/tests/test_autosar.py +0 -0
  305. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/.gitignore +0 -0
  306. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/CMakeLists.txt +0 -0
  307. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/test_basic.c +0 -0
  308. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/test_basic.h +0 -0
  309. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/test_bit_fields.c +0 -0
  310. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/test_bit_fields.h +0 -0
  311. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/test_framework/CMakeLists.txt +0 -0
  312. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/test_framework/LICENSE.txt +0 -0
  313. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/test_framework/unity.c +0 -0
  314. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/test_framework/unity.h +0 -0
  315. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/test_framework/unity_internals.h +0 -0
  316. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/test_initial_values.c +0 -0
  317. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/test_initial_values.h +0 -0
  318. {cantools-45.1.0 → cantools-45.1.2}/tests/test_c_code/test_runner.c +0 -0
  319. {cantools-45.1.0 → cantools-45.1.2}/tests/test_command_line.py +0 -0
  320. {cantools-45.1.0 → cantools-45.1.2}/tests/test_conversion.py +0 -0
  321. {cantools-45.1.0 → cantools-45.1.2}/tests/test_convert.py +0 -0
  322. {cantools-45.1.0 → cantools-45.1.2}/tests/test_database_utils.py +0 -0
  323. {cantools-45.1.0 → cantools-45.1.2}/tests/test_diagnostics_database.py +0 -0
  324. {cantools-45.1.0 → cantools-45.1.2}/tests/test_dump.py +0 -0
  325. {cantools-45.1.0 → cantools-45.1.2}/tests/test_logreader.py +0 -0
  326. {cantools-45.1.0 → cantools-45.1.2}/tests/test_monitor.py +0 -0
  327. {cantools-45.1.0 → cantools-45.1.2}/tests/test_plot.py +0 -0
  328. {cantools-45.1.0 → cantools-45.1.2}/tests/test_plot_unittests.py +0 -0
  329. {cantools-45.1.0 → cantools-45.1.2}/tests/test_plot_without_mock.py +0 -0
  330. {cantools-45.1.0 → cantools-45.1.2}/tests/test_tester.py +0 -0
  331. {cantools-45.1.0 → cantools-45.1.2}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cantools
3
- Version: 45.1.0
3
+ Version: 45.1.2
4
4
  Summary: CAN BUS tools.
5
5
  Author-email: Erik Moqvist <erik.moqvist@gmail.com>
6
6
  License: MIT
@@ -82,12 +82,12 @@ messages and signals.
82
82
  >>> from pprint import pprint
83
83
  >>> db = cantools.database.load_file('tests/files/dbc/motohawk.dbc')
84
84
  >>> db.messages
85
- [message('ExampleMessage', 0x1f0, False, 8, 'Example message used as template in MotoHawk models.')]
85
+ [message('ExampleMessage', 0x1f0, False, 8, {None: 'Example message used as template in MotoHawk models.'})]
86
86
  >>> example_message = db.get_message_by_name('ExampleMessage')
87
87
  >>> pprint(example_message.signals)
88
- [signal('Enable', 7, 1, 'big_endian', False, 1.0, 0, 0.0, 0.0, '-', False, None, {0: 'Disabled', 1: 'Enabled'}, None),
89
- signal('AverageRadius', 6, 6, 'big_endian', False, 0.1, 0, 0.0, 5.0, 'm', False, None, None, ''),
90
- signal('Temperature', 0, 12, 'big_endian', True, 0.01, 250, 229.53, 270.47, 'degK', False, None, None, None)]
88
+ [signal('Enable', 7, 1, 'big_endian', False, None, 1, 0, None, None, '-', False, None, {0: 'Disabled', 1: 'Enabled'}, None, None),
89
+ signal('AverageRadius', 6, 6, 'big_endian', False, None, 0.1, 0, 0, 5, 'm', False, None, None, None, None),
90
+ signal('Temperature', 0, 12, 'big_endian', True, None, 0.01, 250, 229.52, 270.47, 'degK', False, None, None, None, None)]
91
91
 
92
92
  The example continues `encoding`_ a message and sending it on a CAN
93
93
  bus using the `python-can`_ package.
@@ -95,7 +95,7 @@ bus using the `python-can`_ package.
95
95
  .. code-block:: python
96
96
 
97
97
  >>> import can
98
- >>> can_bus = can.interface.Bus('vcan0', bustype='socketcan')
98
+ >>> can_bus = can.interface.Bus('vcan0', interface='socketcan')
99
99
  >>> data = example_message.encode({'Temperature': 250.1, 'AverageRadius': 3.2, 'Enable': 1})
100
100
  >>> message = can.Message(arbitration_id=example_message.frame_id, is_extended_id=example_message.is_extended_frame, data=data)
101
101
  >>> can_bus.send(message)
@@ -109,7 +109,7 @@ The last part of the example receives and `decodes`_ a CAN message.
109
109
 
110
110
  >>> message = can_bus.recv()
111
111
  >>> db.decode_message(message.arbitration_id, message.data)
112
- {'AverageRadius': 3.2, 'Enable': 'Enabled', 'Temperature': 250.09}
112
+ {'Enable': 'Enabled', 'AverageRadius': 3.2, 'Temperature': 250.1}
113
113
 
114
114
  See `examples`_ for additional examples.
115
115
 
@@ -152,6 +152,15 @@ Alternatively, the decoded message can be printed on a single line:
152
152
  vcan0 1F0 [8] 80 4A 0F 00 00 00 00 00 :: ExampleMessage(Enable: 'Enabled' -, AverageRadius: 0.0 m, Temperature: 255.92 degK)
153
153
  vcan0 1F0 [8] 80 4A 0F 00 00 00 00 00 :: ExampleMessage(Enable: 'Enabled' -, AverageRadius: 0.0 m, Temperature: 255.92 degK)
154
154
 
155
+ When piping decoded output into another program, Python may buffer its standard
156
+ output. Set ``PYTHONUNBUFFERED=1`` on the decoder command to disable this buffering.
157
+ The receiving program may also need line buffering, as shown with ``grep`` here:
158
+
159
+ .. code-block:: bash
160
+
161
+ $ candump vcan0 | PYTHONUNBUFFERED=1 cantools decode --single-line \
162
+ tests/files/dbc/motohawk.dbc | grep --line-buffered ExampleMessage
163
+
155
164
  The plot subcommand
156
165
  ^^^^^^^^^^^^^^^^^^^
157
166
 
@@ -49,12 +49,12 @@ messages and signals.
49
49
  >>> from pprint import pprint
50
50
  >>> db = cantools.database.load_file('tests/files/dbc/motohawk.dbc')
51
51
  >>> db.messages
52
- [message('ExampleMessage', 0x1f0, False, 8, 'Example message used as template in MotoHawk models.')]
52
+ [message('ExampleMessage', 0x1f0, False, 8, {None: 'Example message used as template in MotoHawk models.'})]
53
53
  >>> example_message = db.get_message_by_name('ExampleMessage')
54
54
  >>> pprint(example_message.signals)
55
- [signal('Enable', 7, 1, 'big_endian', False, 1.0, 0, 0.0, 0.0, '-', False, None, {0: 'Disabled', 1: 'Enabled'}, None),
56
- signal('AverageRadius', 6, 6, 'big_endian', False, 0.1, 0, 0.0, 5.0, 'm', False, None, None, ''),
57
- signal('Temperature', 0, 12, 'big_endian', True, 0.01, 250, 229.53, 270.47, 'degK', False, None, None, None)]
55
+ [signal('Enable', 7, 1, 'big_endian', False, None, 1, 0, None, None, '-', False, None, {0: 'Disabled', 1: 'Enabled'}, None, None),
56
+ signal('AverageRadius', 6, 6, 'big_endian', False, None, 0.1, 0, 0, 5, 'm', False, None, None, None, None),
57
+ signal('Temperature', 0, 12, 'big_endian', True, None, 0.01, 250, 229.52, 270.47, 'degK', False, None, None, None, None)]
58
58
 
59
59
  The example continues `encoding`_ a message and sending it on a CAN
60
60
  bus using the `python-can`_ package.
@@ -62,7 +62,7 @@ bus using the `python-can`_ package.
62
62
  .. code-block:: python
63
63
 
64
64
  >>> import can
65
- >>> can_bus = can.interface.Bus('vcan0', bustype='socketcan')
65
+ >>> can_bus = can.interface.Bus('vcan0', interface='socketcan')
66
66
  >>> data = example_message.encode({'Temperature': 250.1, 'AverageRadius': 3.2, 'Enable': 1})
67
67
  >>> message = can.Message(arbitration_id=example_message.frame_id, is_extended_id=example_message.is_extended_frame, data=data)
68
68
  >>> can_bus.send(message)
@@ -76,7 +76,7 @@ The last part of the example receives and `decodes`_ a CAN message.
76
76
 
77
77
  >>> message = can_bus.recv()
78
78
  >>> db.decode_message(message.arbitration_id, message.data)
79
- {'AverageRadius': 3.2, 'Enable': 'Enabled', 'Temperature': 250.09}
79
+ {'Enable': 'Enabled', 'AverageRadius': 3.2, 'Temperature': 250.1}
80
80
 
81
81
  See `examples`_ for additional examples.
82
82
 
@@ -119,6 +119,15 @@ Alternatively, the decoded message can be printed on a single line:
119
119
  vcan0 1F0 [8] 80 4A 0F 00 00 00 00 00 :: ExampleMessage(Enable: 'Enabled' -, AverageRadius: 0.0 m, Temperature: 255.92 degK)
120
120
  vcan0 1F0 [8] 80 4A 0F 00 00 00 00 00 :: ExampleMessage(Enable: 'Enabled' -, AverageRadius: 0.0 m, Temperature: 255.92 degK)
121
121
 
122
+ When piping decoded output into another program, Python may buffer its standard
123
+ output. Set ``PYTHONUNBUFFERED=1`` on the decoder command to disable this buffering.
124
+ The receiving program may also need line buffering, as shown with ``grep`` here:
125
+
126
+ .. code-block:: bash
127
+
128
+ $ candump vcan0 | PYTHONUNBUFFERED=1 cantools decode --single-line \
129
+ tests/files/dbc/motohawk.dbc | grep --line-buffered ExampleMessage
130
+
122
131
  The plot subcommand
123
132
  ^^^^^^^^^^^^^^^^^^^
124
133
 
@@ -2,9 +2,13 @@ __all__ = ["Bus", "Database", "DecodeError", "EncodeError", "Message",
2
2
  "Node", "Signal", "dump_file", "load", "load_file", "load_string"]
3
3
 
4
4
  import os
5
+ import traceback
5
6
  import warnings
6
7
  from contextlib import nullcontext
7
8
  from typing import Any, TextIO
9
+ from xml.etree import ElementTree
10
+
11
+ import textparser
8
12
 
9
13
  try:
10
14
  import diskcache # type: ignore
@@ -26,6 +30,34 @@ from .errors import (
26
30
  UnsupportedDatabaseFormatError,
27
31
  )
28
32
 
33
+ _FORMAT_PROBE_ERRORS: tuple[type[Exception], ...] = (
34
+ Error,
35
+ textparser.ParseError,
36
+ ElementTree.ParseError,
37
+ ValueError,
38
+ KeyError,
39
+ )
40
+
41
+ _UNEXPECTED_PROBE_ERROR = (
42
+ "probing for {database_format} raised {error}, which does not say whether "
43
+ "the string is in that format. The string was reported as an unsupported "
44
+ "database instead. Please open an issue at "
45
+ "https://github.com/cantools/cantools/issues with the traceback below.\n{traceback}"
46
+ )
47
+
48
+
49
+ def _warn_unexpected_probe_error(database_format: str, exc: Exception) -> None:
50
+ """Warn that a probe failed for a reason unrelated to the format."""
51
+ warnings.warn(
52
+ _UNEXPECTED_PROBE_ERROR.format(
53
+ database_format=database_format,
54
+ error=type(exc).__name__,
55
+ traceback="".join(traceback.format_exception(exc)),
56
+ ),
57
+ UserWarning,
58
+ stacklevel=2,
59
+ )
60
+
29
61
 
30
62
  def _resolve_database_format_and_encoding(database_format: str | None,
31
63
  encoding: str | None,
@@ -339,25 +371,37 @@ def load_string(string: str,
339
371
  if database_format in ['arxml', None]:
340
372
  try:
341
373
  return load_can_database('arxml')
374
+ except _FORMAT_PROBE_ERRORS as e:
375
+ e_arxml = e
342
376
  except Exception as e:
377
+ _warn_unexpected_probe_error('arxml', e)
343
378
  e_arxml = e
344
379
 
345
380
  if database_format in ['dbc', None]:
346
381
  try:
347
382
  return load_can_database('dbc')
383
+ except _FORMAT_PROBE_ERRORS as e:
384
+ e_dbc = e
348
385
  except Exception as e:
386
+ _warn_unexpected_probe_error('dbc', e)
349
387
  e_dbc = e
350
388
 
351
389
  if database_format in ['kcd', None]:
352
390
  try:
353
391
  return load_can_database('kcd')
392
+ except _FORMAT_PROBE_ERRORS as e:
393
+ e_kcd = e
354
394
  except Exception as e:
395
+ _warn_unexpected_probe_error('kcd', e)
355
396
  e_kcd = e
356
397
 
357
398
  if database_format in ['sym', None]:
358
399
  try:
359
400
  return load_can_database('sym')
401
+ except _FORMAT_PROBE_ERRORS as e:
402
+ e_sym = e
360
403
  except Exception as e:
404
+ _warn_unexpected_probe_error('sym', e)
361
405
  e_sym = e
362
406
 
363
407
  if database_format in ['cdd', None]:
@@ -365,7 +409,10 @@ def load_string(string: str,
365
409
  db = diagnostics.Database()
366
410
  db.add_cdd_string(string)
367
411
  return db
412
+ except _FORMAT_PROBE_ERRORS as e:
413
+ e_cdd = e
368
414
  except Exception as e:
415
+ _warn_unexpected_probe_error('cdd', e)
369
416
  e_cdd = e
370
417
 
371
418
  if database_format is not None:
@@ -43,7 +43,9 @@ class DbcAttribute(Generic[DbcAttributeValueTypeVar]):
43
43
 
44
44
  """
45
45
  if self.definition.type_name == "STRING":
46
- return f'"{self._value}"'
46
+ # The DBC parser only unescapes quotes, not backslashes.
47
+ value = str(self._value).replace('"', '\\"')
48
+ return f'"{value}"'
47
49
 
48
50
  return f'{self._value}'
49
51
 
@@ -343,7 +343,7 @@ class DbcParser(Parser):
343
343
  Sequence('SG_', 'NUMBER', 'WORD'),
344
344
  Sequence('BU_', 'WORD'),
345
345
  Sequence('EV_', 'WORD'))),
346
- choice('NUMBER', 'STRING'),
346
+ choice('NUMBER', 'WORD', 'STRING'),
347
347
  ';')
348
348
 
349
349
  relation_attribute_definition = Sequence(
@@ -842,7 +842,6 @@ def _load_signals(tokens: list[MatchObject],
842
842
  if message_signal_comments is None:
843
843
  return None
844
844
  return message_signal_comments.get(signal_name)
845
-
846
845
  def get_signal_choices(frame_id_dbc: int, signal_name: str) -> Choices | None:
847
846
  """Get choices for given signal.
848
847
 
@@ -851,17 +850,7 @@ def _load_signals(tokens: list[MatchObject],
851
850
  if message_choices is None:
852
851
  return None
853
852
 
854
- c = message_choices.get(signal_name)
855
- if c is None:
856
- return None
857
-
858
- # Remove the selected signal from the choices dict, this
859
- # lets us validate that all VAL_ choices specified by the
860
- # DBC are used by Messages.
861
- del(message_choices[signal_name])
862
-
863
- return c
864
-
853
+ return message_choices.get(signal_name)
865
854
 
866
855
  def get_signal_is_multiplexer(signal_tokens: TokenList) -> bool:
867
856
  mux_field = dbc_assert_type(signal_tokens[1], list)
@@ -945,12 +934,6 @@ def _load_signals(tokens: list[MatchObject],
945
934
  if frame_signal_types is None:
946
935
  return False
947
936
  signal_type = frame_signal_types.get(signal)
948
- if signal_type is None:
949
- return False
950
- # Remove the selected signal type from the signal_types
951
- # dict, this lets us validate that all SIG_VALTYPE_ entries
952
- # specified by the DBC are used by Messages.
953
- del(frame_signal_types[signal])
954
937
  return signal_type in FLOAT_SIGNAL_TYPES
955
938
 
956
939
  def get_signal_long_name(frame_id_dbc: int, signal_short_name: str) -> str:
@@ -1422,27 +1405,6 @@ def load_string(string: str, strict: bool = True,
1422
1405
  nodes = _load_nodes(tokens, comments, attributes, attribute_definitions_dict)
1423
1406
  version = _load_version(tokens)
1424
1407
  environment_variables = _load_environment_variables(tokens, comments, attributes, attribute_definitions_dict)
1425
-
1426
- # There shouldn't be any choices/VAL_ entries left, each one should
1427
- # have been claimed by a Message above.
1428
- unused_choices = [ ]
1429
- for frame_id in choices:
1430
- for c in choices[frame_id]:
1431
- unused_choices.append(f"VAL_ {frame_id} {c}")
1432
- if len(unused_choices) > 0:
1433
- errors = "\n ".join(unused_choices)
1434
- raise ValueError(f'unused VAL_ entries in DBC:\n {errors}')
1435
-
1436
- # There shouldn't be any SIG_VALTYPE_ signal_type entries left,
1437
- # each one should have been claimed by a Message above.
1438
- unused_signal_types = [ ]
1439
- for frame_id in signal_types:
1440
- for signal_type in signal_types[frame_id]:
1441
- unused_signal_types.append(f"SIG_VALTYPE_ {frame_id} {signal_type}")
1442
- if len(unused_signal_types) > 0:
1443
- errors = "\n ".join(unused_signal_types)
1444
- raise ValueError(f'unused SIG_VALTYPE_ entries in DBC:\n {errors}')
1445
-
1446
1408
  dbc_specifics = DbcSpecifics(attributes=attributes.database or None,
1447
1409
  attribute_definitions=attribute_definitions_dict,
1448
1410
  environment_variables=environment_variables,
@@ -805,9 +805,19 @@ def _dump_attributes(database: InternalDatabase, sort_signals: type_sort_signals
805
805
  if signal.raw_initial is None and 'GenSigStartValue' in sig_attributes:
806
806
  del sig_attributes['GenSigStartValue']
807
807
  elif signal.raw_initial is not None:
808
- sig_attributes['GenSigStartValue'] = DbcAttribute[float](
809
- value=float(signal.raw_initial),
810
- definition=ATTRIBUTE_DEFINITION_GENSIGSTARTVALUE)
808
+ # the database may define GenSigStartValue as INT, so use its
809
+ # definition and convert the value to its type like the loader
810
+ gen_sig_start_value_def = dbc_assert_type(
811
+ database.dbc.attribute_definitions.get('GenSigStartValue'),
812
+ DbcAttributeDefinition)
813
+ start_value: int | float
814
+ if gen_sig_start_value_def.type_name in ('INT', 'HEX', 'ENUM'):
815
+ start_value = int(signal.raw_initial)
816
+ else:
817
+ start_value = float(signal.raw_initial)
818
+ sig_attributes['GenSigStartValue'] = DbcAttribute(
819
+ value=start_value,
820
+ definition=gen_sig_start_value_def)
811
821
 
812
822
  # synchronize the attribute for the J1939 suspect parameter
813
823
  # number with the SPN specified by the signal object
@@ -9,10 +9,12 @@ from itertools import groupby
9
9
  from typing import TYPE_CHECKING
10
10
 
11
11
  from textparser import (
12
+ MISMATCH,
12
13
  Any,
13
14
  DelimitedList,
14
15
  Optional,
15
16
  Parser,
17
+ Pattern,
16
18
  Sequence,
17
19
  Token,
18
20
  TokenizeError,
@@ -48,6 +50,17 @@ SEND_MESSAGE_SENDER = 'ECU'
48
50
  RECEIVE_MESSAGE_SENDER = 'Peripherals'
49
51
 
50
52
 
53
+ class _HexWord(Pattern):
54
+ """Recognize hex values where the grammar expects a number, not a name."""
55
+
56
+ def match(self, tokens):
57
+ token = tokens.peek()
58
+ if (token.kind == 'WORD'
59
+ and re.fullmatch(r'-?[A-F][0-9A-F]*h', token.value)):
60
+ return tokens.get_value()
61
+ return MISMATCH
62
+
63
+
51
64
  class SymParser60(Parser):
52
65
  """Create the SYM 6.0 parser.
53
66
 
@@ -140,7 +153,7 @@ class SymParser60(Parser):
140
153
  ('SEND', r'\{SEND\}'),
141
154
  ('RECEIVE', r'\{RECEIVE\}'),
142
155
  ('SENDRECEIVE', r'\{SENDRECEIVE\}'),
143
- ('WORD', r'[^\s=\(\]\-]+'),
156
+ ('WORD', r'-[A-F][0-9A-F]*h\b|[^\s=\(\]\-]+'),
144
157
  ('MISMATCH', r'.')
145
158
  ]
146
159
 
@@ -171,6 +184,7 @@ class SymParser60(Parser):
171
184
 
172
185
  def grammar(self):
173
186
  word = choice('WORD', *list(self.KEYWORDS))
187
+ hex_number = choice('HEXNUMBER', _HexWord())
174
188
  version = Sequence('FormatVersion', '=', 'NUMBER', 'COMMENT')
175
189
  title = Sequence('Title' , '=', 'STRING')
176
190
  unique_variables = Sequence('UniqueVariables' , '=', word)
@@ -226,18 +240,18 @@ class SymParser60(Parser):
226
240
 
227
241
  symbol = Sequence('[', Any(), ']',
228
242
  ZeroOrMoreDict(choice(
229
- Sequence('ID', '=', 'HEXNUMBER',
230
- Optional('HEXNUMBER'),
243
+ Sequence('ID', '=', hex_number,
244
+ Optional(hex_number),
231
245
  Optional('COMMENT')),
232
246
  Sequence('Len', '=', 'NUMBER'),
233
247
  Sequence('Mux', '=', Any(), 'NUMBER', ',',
234
- 'NUMBER', choice('NUMBER', 'HEXNUMBER'),
248
+ 'NUMBER', choice('NUMBER', hex_number),
235
249
  ZeroOrMore(choice('-t', '-m')),
236
250
  Optional('COMMENT')),
237
251
  Sequence('CycleTime', '=', 'NUMBER', Optional('-p')),
238
252
  Sequence('Timeout', '=', 'NUMBER'),
239
253
  Sequence('MinInterval', '=', 'NUMBER'),
240
- Sequence('Color', '=', 'HEXNUMBER'),
254
+ Sequence('Color', '=', hex_number),
241
255
  variable,
242
256
  Sequence('Sig', '=', Any(), 'NUMBER'),
243
257
  Sequence('Type', '=', Any()))))
@@ -920,12 +934,25 @@ def _dump_message(message: Message, signals: list[Signal], min_frame_id: int | N
920
934
  multiplexer_signal_name = multiplexer_signal.name
921
935
  if not multiplexer_signal_name:
922
936
  raise ValueError(f"The name of the multiplexer signal with ID {hex_multiplexer_id} is empty. The database is corrupt.")
923
- message_str += f'Mux="{multiplexer_signal_name}" {_convert_start(multiplexer_signal.start, multiplexer_signal.byte_order)},{multiplexer_signal.length} {hex_multiplexer_id}h {m_flag}\n'
937
+ mux_str = f'Mux="{multiplexer_signal_name}" {_convert_start(multiplexer_signal.start, multiplexer_signal.byte_order)},{multiplexer_signal.length} {hex_multiplexer_id}h {m_flag}'
938
+ if multiplexer_signal.comment:
939
+ # The loader reads the multiplexer signal's comment from the
940
+ # Mux line, not from its entry in {SIGNALS}.
941
+ mux_str = mux_str.rstrip() + _dump_comment(multiplexer_signal.comment)
942
+ message_str += mux_str + '\n'
924
943
  for signal in signals:
925
944
  message_str += f'Sig="{_get_signal_name(signal)}" {_convert_start(signal.start, signal.byte_order)}\n'
926
945
  return message_str
927
946
 
928
947
  def _dump_messages(database: InternalDatabase) -> str:
948
+ # The loader reads one Mux= signal per message, so independent or
949
+ # nested multiplexers would load back as a different message.
950
+ for message in database.messages:
951
+ num_multiplexers = sum(signal.is_multiplexer for signal in message.signals)
952
+ if num_multiplexers > 1:
953
+ raise ValueError(f"Message '{message.name}' has {num_multiplexers} multiplexer "
954
+ "signals, but only one can be written to SYM.")
955
+
929
956
  send_messages = []
930
957
  receive_messages = []
931
958
  send_receive_messages = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cantools
3
- Version: 45.1.0
3
+ Version: 45.1.2
4
4
  Summary: CAN BUS tools.
5
5
  Author-email: Erik Moqvist <erik.moqvist@gmail.com>
6
6
  License: MIT
@@ -82,12 +82,12 @@ messages and signals.
82
82
  >>> from pprint import pprint
83
83
  >>> db = cantools.database.load_file('tests/files/dbc/motohawk.dbc')
84
84
  >>> db.messages
85
- [message('ExampleMessage', 0x1f0, False, 8, 'Example message used as template in MotoHawk models.')]
85
+ [message('ExampleMessage', 0x1f0, False, 8, {None: 'Example message used as template in MotoHawk models.'})]
86
86
  >>> example_message = db.get_message_by_name('ExampleMessage')
87
87
  >>> pprint(example_message.signals)
88
- [signal('Enable', 7, 1, 'big_endian', False, 1.0, 0, 0.0, 0.0, '-', False, None, {0: 'Disabled', 1: 'Enabled'}, None),
89
- signal('AverageRadius', 6, 6, 'big_endian', False, 0.1, 0, 0.0, 5.0, 'm', False, None, None, ''),
90
- signal('Temperature', 0, 12, 'big_endian', True, 0.01, 250, 229.53, 270.47, 'degK', False, None, None, None)]
88
+ [signal('Enable', 7, 1, 'big_endian', False, None, 1, 0, None, None, '-', False, None, {0: 'Disabled', 1: 'Enabled'}, None, None),
89
+ signal('AverageRadius', 6, 6, 'big_endian', False, None, 0.1, 0, 0, 5, 'm', False, None, None, None, None),
90
+ signal('Temperature', 0, 12, 'big_endian', True, None, 0.01, 250, 229.52, 270.47, 'degK', False, None, None, None, None)]
91
91
 
92
92
  The example continues `encoding`_ a message and sending it on a CAN
93
93
  bus using the `python-can`_ package.
@@ -95,7 +95,7 @@ bus using the `python-can`_ package.
95
95
  .. code-block:: python
96
96
 
97
97
  >>> import can
98
- >>> can_bus = can.interface.Bus('vcan0', bustype='socketcan')
98
+ >>> can_bus = can.interface.Bus('vcan0', interface='socketcan')
99
99
  >>> data = example_message.encode({'Temperature': 250.1, 'AverageRadius': 3.2, 'Enable': 1})
100
100
  >>> message = can.Message(arbitration_id=example_message.frame_id, is_extended_id=example_message.is_extended_frame, data=data)
101
101
  >>> can_bus.send(message)
@@ -109,7 +109,7 @@ The last part of the example receives and `decodes`_ a CAN message.
109
109
 
110
110
  >>> message = can_bus.recv()
111
111
  >>> db.decode_message(message.arbitration_id, message.data)
112
- {'AverageRadius': 3.2, 'Enable': 'Enabled', 'Temperature': 250.09}
112
+ {'Enable': 'Enabled', 'AverageRadius': 3.2, 'Temperature': 250.1}
113
113
 
114
114
  See `examples`_ for additional examples.
115
115
 
@@ -152,6 +152,15 @@ Alternatively, the decoded message can be printed on a single line:
152
152
  vcan0 1F0 [8] 80 4A 0F 00 00 00 00 00 :: ExampleMessage(Enable: 'Enabled' -, AverageRadius: 0.0 m, Temperature: 255.92 degK)
153
153
  vcan0 1F0 [8] 80 4A 0F 00 00 00 00 00 :: ExampleMessage(Enable: 'Enabled' -, AverageRadius: 0.0 m, Temperature: 255.92 degK)
154
154
 
155
+ When piping decoded output into another program, Python may buffer its standard
156
+ output. Set ``PYTHONUNBUFFERED=1`` on the decoder command to disable this buffering.
157
+ The receiving program may also need line buffering, as shown with ``grep`` here:
158
+
159
+ .. code-block:: bash
160
+
161
+ $ candump vcan0 | PYTHONUNBUFFERED=1 cantools decode --single-line \
162
+ tests/files/dbc/motohawk.dbc | grep --line-buffered ExampleMessage
163
+
155
164
  The plot subcommand
156
165
  ^^^^^^^^^^^^^^^^^^^
157
166
 
@@ -115,6 +115,7 @@ tests/test_monitor.py
115
115
  tests/test_plot.py
116
116
  tests/test_plot_unittests.py
117
117
  tests/test_plot_without_mock.py
118
+ tests/test_sym_hex_numbers.py
118
119
  tests/test_tester.py
119
120
  tests/files/arxml/compu_method_no_category.arxml
120
121
  tests/files/arxml/ecu-extract-4.2.arxml
@@ -219,9 +220,6 @@ tests/files/dbc/fd_test_int.dbc
219
220
  tests/files/dbc/floating_point.dbc
220
221
  tests/files/dbc/floating_point_use_float.dbc
221
222
  tests/files/dbc/foobar.dbc
222
- tests/files/dbc/good-val-sig_valtype.dbc
223
- tests/files/dbc/incorrect-sig_valtype.dbc
224
- tests/files/dbc/incorrect-val.dbc
225
223
  tests/files/dbc/is_in_phys_range.dbc
226
224
  tests/files/dbc/issue_163_newline.dbc
227
225
  tests/files/dbc/issue_168.DBC
@@ -272,9 +270,11 @@ tests/files/dbc/socialledge-written-by-cantools-with-default-sort-signals.dbc
272
270
  tests/files/dbc/socialledge-written-by-cantools-with-sort-signals-by-name.dbc
273
271
  tests/files/dbc/socialledge-written-by-cantools.dbc
274
272
  tests/files/dbc/socialledge.dbc
273
+ tests/files/dbc/string_attribute_escaping.dbc
275
274
  tests/files/dbc/test_extended_id_dump.dbc
276
275
  tests/files/dbc/test_multiplex_dump.dbc
277
276
  tests/files/dbc/timing.dbc
277
+ tests/files/dbc/unquoted_attributes.dbc
278
278
  tests/files/dbc/val_table.dbc
279
279
  tests/files/dbc/variable_dlc.dbc
280
280
  tests/files/dbc/vehicle.dbc
@@ -197,9 +197,6 @@
197
197
  "tests/files/dbc/floating_point.dbc",
198
198
  "tests/files/dbc/floating_point_use_float.dbc",
199
199
  "tests/files/dbc/foobar.dbc",
200
- "tests/files/dbc/good-val-sig_valtype.dbc",
201
- "tests/files/dbc/incorrect-sig_valtype.dbc",
202
- "tests/files/dbc/incorrect-val.dbc",
203
200
  "tests/files/dbc/is_in_phys_range.dbc",
204
201
  "tests/files/dbc/issue_163_newline.dbc",
205
202
  "tests/files/dbc/issue_168.DBC",
@@ -250,9 +247,11 @@
250
247
  "tests/files/dbc/socialledge-written-by-cantools-with-sort-signals-by-name.dbc",
251
248
  "tests/files/dbc/socialledge-written-by-cantools.dbc",
252
249
  "tests/files/dbc/socialledge.dbc",
250
+ "tests/files/dbc/string_attribute_escaping.dbc",
253
251
  "tests/files/dbc/test_extended_id_dump.dbc",
254
252
  "tests/files/dbc/test_multiplex_dump.dbc",
255
253
  "tests/files/dbc/timing.dbc",
254
+ "tests/files/dbc/unquoted_attributes.dbc",
256
255
  "tests/files/dbc/val_table.dbc",
257
256
  "tests/files/dbc/variable_dlc.dbc",
258
257
  "tests/files/dbc/vehicle.dbc",
@@ -315,6 +314,7 @@
315
314
  "tests/test_plot.py",
316
315
  "tests/test_plot_unittests.py",
317
316
  "tests/test_plot_without_mock.py",
317
+ "tests/test_sym_hex_numbers.py",
318
318
  "tests/test_tester.py",
319
319
  "tox.ini"
320
320
  ]
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "45.1.2",
3
+ "distance": 0,
4
+ "node": "gc5cb310aa1f708ffc29851038979c892a97fb91f",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-10-29"
8
+ }
@@ -0,0 +1,33 @@
1
+ VERSION ""
2
+ NS_ :
3
+ BS_:
4
+ BU_: Node
5
+
6
+ BO_ 1 Message: 1 Node
7
+ SG_ Signal : 0|8@1+ (1,0) [0|255] "" Node
8
+
9
+ EV_ EnvVar: 0 [0|100] "" 0 0 DUMMY_NODE_VECTOR0 Node;
10
+
11
+ BA_DEF_ "DatabaseText" STRING ;
12
+ BA_DEF_ BU_ "NodeText" STRING ;
13
+ BA_DEF_ BO_ "MessageText" STRING ;
14
+ BA_DEF_ SG_ "SignalText" STRING ;
15
+ BA_DEF_ EV_ "EnvironmentText" STRING ;
16
+ BA_DEF_ "IntegerValue" INT 0 100;
17
+ BA_DEF_ "HexValue" HEX 0 100;
18
+ BA_DEF_ "FloatValue" FLOAT 0 100;
19
+ BA_DEF_ "EnumValue" ENUM "first","second";
20
+ BA_DEF_REL_ BU_SG_REL_ "SignalRelationText" STRING ;
21
+ BA_DEF_REL_ BU_BO_REL_ "MessageRelationText" STRING ;
22
+
23
+ BA_ "DatabaseText" "say \"hello\"";
24
+ BA_ "NodeText" BU_ Node "say \"hello\"";
25
+ BA_ "MessageText" BO_ 1 "say \"hello\"";
26
+ BA_ "SignalText" SG_ 1 Signal "say \"hello\"";
27
+ BA_ "EnvironmentText" EV_ EnvVar "say \"hello\"";
28
+ BA_ "IntegerValue" 7;
29
+ BA_ "HexValue" 15;
30
+ BA_ "FloatValue" 1.5;
31
+ BA_ "EnumValue" 1;
32
+ BA_REL_ "SignalRelationText" BU_SG_REL_ Node SG_ 1 Signal "say \"hello\"";
33
+ BA_REL_ "MessageRelationText" BU_BO_REL_ Node 1 "say \"hello\"";
@@ -0,0 +1,25 @@
1
+ VERSION ""
2
+
3
+ NS_ :
4
+
5
+ BS_:
6
+
7
+ BU_: TestNode
8
+
9
+ BO_ 1 TestMessage: 1 TestNode
10
+ SG_ TestSignal : 0|8@1+ (1,0) [0|255] "" TestNode
11
+
12
+ EV_ TestEnvironment: 0 [0|1] "" 0 0 DUMMY_NODE_VECTOR0 TestNode;
13
+
14
+ BA_DEF_ "DatabaseText" STRING ;
15
+ BA_DEF_ BU_ "NodeText" STRING ;
16
+ BA_DEF_ BO_ "MessageText" STRING ;
17
+ BA_DEF_ SG_ "SignalText" STRING ;
18
+ BA_DEF_ EV_ "EnvironmentText" STRING ;
19
+ BA_DEF_DEF_ "DatabaseText" "Default value";
20
+
21
+ BA_ "DatabaseText" DatabaseValue;
22
+ BA_ "NodeText" BU_ TestNode _NodeValue_2;
23
+ BA_ "MessageText" BO_ 1 MessageValue3;
24
+ BA_ "SignalText" SG_ 1 TestSignal SignalValue;
25
+ BA_ "EnvironmentText" EV_ TestEnvironment EnvironmentValue;