AnsweredAssumed Answered

Parsing ETH/RS232<->CAN

Question asked by Mathias Zviedris on Sep 18, 2017
Latest reply on Sep 18, 2017 by Clive One

Hi community,


i have following situation:

PC <--- ETH or RS232 ----> STM32F107 < ----CAN---- > STM32F105 with external power module

I want to parse the ascii message (example K01NC|200) to a smaller protocol what i can send via CAN-Bus at once (max 8 Byte). Maybe to "0xA3" . 
When the STM32F105 has the work finished the work, a echo should be send back to the pc. So the F107 has to translate the echo from the F105 ("0xA3" to "K01NC|200") and send it back to the pc.


Is there any parser what is already finished and can manage that ?

There are to many commands, so that i dont want to check via switch/case....