Page 1 of 1
Change DEL SYNC Break Delimiter
Posted: Thu 14. Jul 2022, 18:11
by CK182
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.
Re: Change DEL SYNC Break Delimiter
Posted: Fri 15. Jul 2022, 08:55
by PEAK-Support
Sorry , this is not possible - this must be done in the Firmware - but we do not offer such a out of the Specification feature.
Re: Change DEL SYNC Break Delimiter
Posted: Fri 15. Jul 2022, 10:12
by CK182
Ok, thank you
Re: Change DEL SYNC Break Delimiter
Posted: Fri 15. Jul 2022, 14:06
by PEAK-Support
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 (14.93 KiB) Viewed 8529 times
Re: Change DEL SYNC Break Delimiter
Posted: Mon 25. Jul 2022, 13:37
by steve.randlett@indiesemi.com
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!
Re: Change DEL SYNC Break Delimiter
Posted: Mon 25. Jul 2022, 13:51
by M.Maidhof
Hi,
which LIN hardware from PEAK do you use? Please also send details about used PLIN-API version.
regards
Michael
Re: Change DEL SYNC Break Delimiter
Posted: Mon 25. Jul 2022, 14:27
by steve.randlett@indiesemi.com
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
Re: Change DEL SYNC Break Delimiter
Posted: Mon 25. Jul 2022, 16:01
by M.Maidhof
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.
Re: Change DEL SYNC Break Delimiter
Posted: Mon 25. Jul 2022, 16:47
by steve.randlett@indiesemi.com
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.