Change DEL SYNC Break Delimiter

RS-232 to CAN/LIN Interface
Post Reply
CK182
Posts: 4
Joined: Fri 8. Nov 2019, 10:40

Change DEL SYNC Break Delimiter

Post by CK182 » Thu 14. Jul 2022, 18:11

Hi,
is it possible with PCAN-LIN software to change DEL SYNC Break Delimiter duration.
I want to increase the duration time of DEL SYNC Break Delimiter duration.
Is it possible? and if yes how?
Thank you in advantage.

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Change DEL SYNC Break Delimiter

Post by PEAK-Support » Fri 15. Jul 2022, 08:55

Sorry , this is not possible - this must be done in the Firmware - but we do not offer such a out of the Specification feature.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

CK182
Posts: 4
Joined: Fri 8. Nov 2019, 10:40

Re: Change DEL SYNC Break Delimiter

Post by CK182 » Fri 15. Jul 2022, 10:12

Ok, thank you

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Change DEL SYNC Break Delimiter

Post by PEAK-Support » Fri 15. Jul 2022, 14:06

Maybe it is interesting for you - with the PC based LIN Interface (PLIN-USB) and the Software API (own Application),
you can change the Sync Break Length via the API. Please see help file: LIN_SetHardwareParam mit with parameter „hwpBreakLength
LIN.png
LIN.png (14.93 KiB) Viewed 8530 times
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

steve.randlett@indiesemi.com
Posts: 3
Joined: Mon 25. Jul 2022, 02:47

Re: Change DEL SYNC Break Delimiter

Post by steve.randlett@indiesemi.com » Mon 25. Jul 2022, 13:37

Hello,
I am trying to change the hwpBreakLength but I keep getting an 'errWrongParameterValue' error. Here is the snippet of code I am using to read the break length, attempt to write and then confirm the change with a read again:

int break_length, break_set;
break_set = 20;
Peak.Lin.PLinApi.GetHardwareParam(lwHw, Peak.Lin.TLINHardwareParam.hwpBreakLength, out break_length, 0);
lLINErr = Peak.Lin.PLinApi.SetHardwareParam(m_hClient, lwHw, Peak.Lin.TLINHardwareParam.hwpBreakLength, ref break_set, 4);
Peak.Lin.PLinApi.GetHardwareParam(lwHw, Peak.Lin.TLINHardwareParam.hwpBreakLength, out break_length, 0);


I can read the value 13 for the current break length setting but not having luck with changing it. What is the correct way to change the break length?

Thanks!

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Change DEL SYNC Break Delimiter

Post by M.Maidhof » Mon 25. Jul 2022, 13:51

Hi,

which LIN hardware from PEAK do you use? Please also send details about used PLIN-API version.

regards

Michael

steve.randlett@indiesemi.com
Posts: 3
Joined: Mon 25. Jul 2022, 02:47

Re: Change DEL SYNC Break Delimiter

Post by steve.randlett@indiesemi.com » Mon 25. Jul 2022, 14:27

Hi Michael,

I am using the PLIN-USB and the PLIN-API is v2.8.1.167

Also I am programming in c#.

Thanks

Steve

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Change DEL SYNC Break Delimiter

Post by M.Maidhof » Mon 25. Jul 2022, 16:01

Hi,

which value will be returned by LINErr in that case? Sure you have used a valid client handle?

regards

Michael

BTW: it will be better to post in the correct section, here we are in PCAN-LIN. In your case a new post in Software PLIN-API would be a good idea, instead of using an existing thread.

steve.randlett@indiesemi.com
Posts: 3
Joined: Mon 25. Jul 2022, 02:47

Re: Change DEL SYNC Break Delimiter

Post by steve.randlett@indiesemi.com » Mon 25. Jul 2022, 16:47

Found the issue, I had to set the hardware parameters after the connection was established otherwise the client handle was wrong.

Thanks for your help and I will post in correct section next time around.

Post Reply