Skip to content

Signal regex#6

Closed
Murmele wants to merge 2 commits into
LinuxDevon:masterfrom
Murmele:signalRegex
Closed

Signal regex#6
Murmele wants to merge 2 commits into
LinuxDevon:masterfrom
Murmele:signalRegex

Conversation

@Murmele

@Murmele Murmele commented Jan 6, 2023

Copy link
Copy Markdown
Contributor
  • signals can also contain special characters: SG_ SPEED : 0|8@1+ (1,0) [0|204] "Km/h" DEVICE1,DEVICE2,DEVICE3
  • multiple whitespaces at the end: SG_ TEMPERATURE : 48|16@1+ (0.01,-40) [-40|125] "C" DEVICE1,DEVICE2,DEVICE3

It seems to be that the second case will be also parsed without the +, but I don't understand why, maybe you have an idea

…0) [0|204] "Km/h" DEVICE1,DEVICE2,DEVICE3

- multiple whitespaces at the end:  SG_ TEMPERATURE : 48|16@1+ (0.01,-40) [-40|125] "C"  DEVICE1,DEVICE2,DEVICE3
@Murmele

Murmele commented Jan 6, 2023

Copy link
Copy Markdown
Contributor Author

I did not find any documentation about the dbc which describes which characters are allowed and which not

@LinuxDevon

Copy link
Copy Markdown
Owner

I think this was my original reference used (http://mcu.so/Microcontroller/Automotive/dbc-file-format-documentation_compress.pdf). The standard isn't really well defined and sort of custom sometimes I have found.

I did / still do use the https://pypi.org/project/cantools/ as a reference for how they parse DBC files.

@Murmele

Murmele commented Jan 6, 2023

Copy link
Copy Markdown
Contributor Author

Ah cool I searched for something like this, but indeed there is nothing which characters are allowed and which not.

@Murmele

Murmele commented Jan 7, 2023

Copy link
Copy Markdown
Contributor Author

merged into #9

@Murmele Murmele closed this Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants