Skip to main content
11 events
when toggle format what by license comment
Nov 30, 2023 at 1:24 comment added spaceKelan Thank you @Justme!
Nov 30, 2023 at 1:16 comment added Justme @spaceKelan You have an MCU that has one USB port and it presents itself as multiple USB serial ports and then through each of them you can access a single CAN controller handled by the MCU, which then needs to handle the mapping of different CAN IDs to different virtual COM ports? The only difference is where you do the mapping, i.e. on the MCU and show 4 CAN controllers, or on the PC where software accesses one CAN controller but splits it into 4 tasks like each would see one CAN controller of their own.
Nov 30, 2023 at 1:09 comment added spaceKelan Yes, oh that's interesting - may you please roughly explain how this could be realized in general for my record?
Nov 30, 2023 at 0:57 comment added Justme You mean like a single physical CAN inteface presenting itself as two USB serial ports like there was two CAN interfaces? Of course that is possible but your device or any framework using your device might not support that. Besides it's simple to do any filtering and responding on the PC side anyway.
Nov 30, 2023 at 0:15 comment added spaceKelan Additonally,, I do not have access to change the code on the CAN controller. ( I just thought I ask, who does not ask never knows)
Nov 30, 2023 at 0:14 comment added spaceKelan I was confused myself at first, too but I have been asked when I have 1 Desktop computer and 1 USB2CAN controller attached to it, if it is possible to pretend this controller is not connected to a single socket but to multiple ones so certain messages could be split by ID. This would simplify the process for the other person. I don't think this makes any sense, as CAN messages are peer reviewed and even though acceptance filtering occurs on the controller, finer filtering would occur in the software. If it is possible at all, it most likely affect the performance of the physical bus.
Nov 29, 2023 at 23:49 comment added Justme @spaceKelan Sorry I don't understand what you mean by that. Can you explain more or give an example what you mean?
Nov 29, 2023 at 23:48 history edited Justme CC BY-SA 4.0
added 439 characters in body
Nov 29, 2023 at 23:43 comment added spaceKelan thank you! Do you know if it uses CDC is possible to connect it to different serial ports?
Nov 29, 2023 at 23:41 vote accept spaceKelan
Nov 29, 2023 at 23:24 history answered Justme CC BY-SA 4.0