Change DEL SYNC Break Delimiter
Change DEL SYNC Break Delimiter
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.
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.
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: Change DEL SYNC Break Delimiter
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
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: Change DEL SYNC Break Delimiter
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“
you can change the Sync Break Length via the API. Please see help file: LIN_SetHardwareParam mit with parameter „hwpBreakLength“
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
-
- Posts: 3
- Joined: Mon 25. Jul 2022, 02:47
Re: Change DEL SYNC Break Delimiter
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!
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
Hi,
which LIN hardware from PEAK do you use? Please also send details about used PLIN-API version.
regards
Michael
which LIN hardware from PEAK do you use? Please also send details about used PLIN-API version.
regards
Michael
-
- Posts: 3
- Joined: Mon 25. Jul 2022, 02:47
Re: Change DEL SYNC Break Delimiter
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
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
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.
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.
-
- Posts: 3
- Joined: Mon 25. Jul 2022, 02:47
Re: Change DEL SYNC Break Delimiter
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.
Thanks for your help and I will post in correct section next time around.