At the moment i write an C# app to control lin slave using your hardware and I have problem with sending master request frame to slave. According to standard it should look in these order:
Master =>(ID)(Sync Field)(Sync Break) and then Slave respond with (Data)(CRC).
I want to send data frames and receive response from slaves.
My question is how to achieve it with these settings:
Forward Mask: RS232
Master status: Inactive
Lin Bus Termination: Master
Can you send me a example byte sequence for example respond frame:
Data length: 8
please configure the frame configuration of PCAN-LIN with the PCAN-LIN-CT software, so that ID 1 is set to subscriber and checksum 2.x. Set the forward mask in LIN section to RS232 and enable the RS-232 Error field, set the LIN Bus termination to master, and send the configuration to the module. Disconnect the PCAN-LIN CT to let your application use the serial port.
Send the following serial stream on the serial port:
0x02 0x01 0x81 0x81 0x01
Answer from PCAN-LIN:
0x02 0x01 0x00 0x01 // OK
Answer from the LIN Slave:
0x02 0xA9 0x81 0x12 0x34 0x56 0x78 0x9A 0xBC 0xDE 0xFF 0x27
Please see PCAN-LIN Protocoll Definitions pdf on page 99 for more details.