Changes between Version 8 and Version 9 of Developer/Simulators/QEMU/CANEmulation
- Timestamp:
- 06/03/13 00:57:51 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Developer/Simulators/QEMU/CANEmulation
v8 v9 2 2 3 3 = Device Requirements = 4 5 # sends CAN packets from a guest OS. 6 = Use Cases / Testing = 7 the best option is to implement that as simple 8 device 9 -device can-kvasser-pcican-q 10 or 11 -device pcican,model=kvasser-pcican-q 12 and use Linux mainlined SocketCAN API to connect virtual device 13 to real CAN hardware (SocketCAN allows multiple applications access) 14 or to SocketCAN Virtual CAN (vcan - TCP/IP lo equivalent). 15 This is straightforward and would result in minimal overhead and latency. 16 17 The OS will be Linux and the current CAN driver to test will be Socket CAN (as it's maintlined into Linux)= Excerpts from the email chain = 4 18 5 19 '''Stefan Weil''': PCI (and USB if they were supported with LinCAN) CAN controller boards … … 57 71 '''Paulo B''': 58 72 Ok, learnt a bit more... You could probably implement this in two ways: 59 1) "-netdev socket" would probably work as a CAN->UDP gateway; 2) 73 1) "-netdev socket" would probably work as a CAN->UDP gateway; 74 75 2) 60 76 connecting to a virtual CAN interface in the host, created using 61 77 SocketCAN (similar to "-netdev tap", e.g. "-netdev cantap"). … … 77 93 several CAN buses. 78 94 79 Each CAN controller was a TCP client connected to the CAN bus emulation.95 Each CAN controller was a TCP client connected to the CAN bus emulation. 80 96 81 97 The TCP clients sent CAN data packets (length, packet type and data)