Hi Flowcode team,
I have problems with the LIN bus component. I use a PIC18F25K80.
When I try to send a simple message as a LIN master, it looks like this (see screenshot). There seems to be quite a long break between the individual bytes (20ms). There are also problems if I only send the header to get a response from a slave
Could you help me please?
Best regards
Daniel
LIN BUS Component faulty (SOLVED)
-
- Posts: 4
- http://meble-kuchenne.info.pl
- Joined: Wed Feb 17, 2021 8:59 am
- Has thanked: 1 time
- Been thanked: 1 time
-
- Matrix Staff
- Posts: 1739
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 440 times
- Been thanked: 603 times
Re: LIN BUS Component faulty
Hi Danial,
Please can you attach your programs and I'll investigate for you.
Please can you attach your programs and I'll investigate for you.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1739
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 440 times
- Been thanked: 603 times
Re: LIN BUS Component faulty
Hello,
It looks like it's working ok but it's waiting a long time for an ack after sending each byte due to a timeout. I'm guessing the slave device isn't connected or isn't responding. If the slave is there then it might start appearing more usual.
The Receive Timeout property doesn't seem to be being used and instead there are timeouts of 10ms everwhere so I can look at this if that would help.
It looks like it's working ok but it's waiting a long time for an ack after sending each byte due to a timeout. I'm guessing the slave device isn't connected or isn't responding. If the slave is there then it might start appearing more usual.
The Receive Timeout property doesn't seem to be being used and instead there are timeouts of 10ms everwhere so I can look at this if that would help.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: LIN BUS Component faulty
Hi Ben,
You're right. I wasn't aware that every byte is acknowledged. Have now tried it with the slave and it works great. The timeout setting is not a problem. Thank you for your help and the great support!
regards
Daniel
You're right. I wasn't aware that every byte is acknowledged. Have now tried it with the slave and it works great. The timeout setting is not a problem. Thank you for your help and the great support!
regards
Daniel