This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
internal:can-tcpsockets-parsing [2018/02/05 12:54] – [Forward CAN Frames over TCP Sockets (can-tcp-broadcast.are)] preisig | app-notes:can-tcpsockets-parsing [2019/07/03 08:11] – ↷ Links adapted because of a move operation juraschek | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Environment setup ===== | ===== Environment setup ===== | ||
- | {{:internal: | + | {{: |
- | The above graphic illustrates how the test environment was built and what data gets transmitted. First to be able to simulate a CAN bus in a local environment PC1 runs [[https:// | + | The above graphic illustrates how the test environment was setup and what data gets transmitted. First to be able to simulate a CAN bus in a local environment PC1 runs [[https:// |
===== Setup the CAN Interface on the Router ===== | ===== Setup the CAN Interface on the Router ===== | ||
To use the CAN Interface on the Router first you need to enable the CAN Interface with the correct Bitrate (250kBits used). | To use the CAN Interface on the Router first you need to enable the CAN Interface with the correct Bitrate (250kBits used). | ||
- | {{:internal: | + | {{: |
===== Peaksystem PCAN-FMS Simulator ===== | ===== Peaksystem PCAN-FMS Simulator ===== | ||
Line 17: | Line 17: | ||
===== Incoming RAW CAN Frames on the Router: ===== | ===== Incoming RAW CAN Frames on the Router: ===== | ||
- | The first and most simple test on the router | + | The first and most simple test on the router |
By default, candump provides the following information: | By default, candump provides the following information: | ||
- | {{:internal: | + | {{: |
Interface, CAN Identifier, DLC and DATA | Interface, CAN Identifier, DLC and DATA | ||
Line 96: | Line 96: | ||
On the receiving end SocketTest listens on TCP port 2000 and displays the raw CAN frames: | On the receiving end SocketTest listens on TCP port 2000 and displays the raw CAN frames: | ||
- | {{:internal: | + | {{: |
===== Simple CAN Frame parsing (simple-can-parser.are) ===== | ===== Simple CAN Frame parsing (simple-can-parser.are) ===== | ||
An additional test was made to show a simple way of parsing CAN Frames. The example is based on checking for a specific PGN (parameter group number) and then get a SPN (supect parameter name) to display its value in human readable format which then gets logged in a file. | An additional test was made to show a simple way of parsing CAN Frames. The example is based on checking for a specific PGN (parameter group number) and then get a SPN (supect parameter name) to display its value in human readable format which then gets logged in a file. |