I’m trying to receive text over canbus, the data coming in is string converted to bytes and then sent to CANbus, how can I import this? And display as text?
Hi,
Could you provide an example of the texts you want to transmit via CAN bus?
You could use enumerations to translate ASCI codes into characters, but this might not be the most efficient approach.
Are the texts you want to send predefined (a fixed set of messages), or do you need the ability to display arbitrary text?
If the texts are part of a predefined set, it would be more efficient to use an enumeration(defining the texts within it) and transmit only the number corresponding to the desired text.
The text is arbitrary text, max of 8 characters, it’s not going to update much, maybe every 30 seconds. Would this be possible?
Here is an example project where ASCII codes are decoded into capital letters within an Enumeration element. There aren’t enough enumeration elements to decode both uppercase and lowercase letters simultaneously, so you will need to choose one or perform mathematical operations on the numbers to convert lowercase to uppercase or vice versa.
asciiToChar.adu (6.8 KB)
amazing thanks, I’ll have a go at this over the weekend
it’s cool, that it’s possible to do with ADU, BUT it would already use up all most of the 40 enumeration limit. Is there any reason, this number can’t be increased?
The reason is simply the lack of available memory to extend the number of enumerations.
If its always going to be the same text being displayed…why not just setup flags that trigger enumerations…would be simpler and eat up less memory.
This was a planned off season project for me as well. For mine I want to send numbers that can be used as variables to fill the virtual tank with partial loads vs full.
I would also want some simple pre defined messages. Pre defined messages would only need to read a specific bit or code, would be much easier.
I’m assuming the OP is planning to use Racecapture Text to Car for this.