Dear Stefan,
I'm trying to emulate a LIN bus master node (https://www.lin-cia.org/fileadmin/microsites/lin-cia.org/resources/documents/LIN_2.2A.pdf) using ScriptCommunicator V6.06.
The hardware interface between USB and the LIN physical layer is not a problem: I already have an adapter (based on a FTDI chipset).
From the software point of view, a LIN frame is just a conventional set of serial data, apart from the beginning SYNC BREAK that is a 13 bit long dominant bits data.
On the FTDI documentation, there are "FT_SetBreakOn" and "FT_SetBreakOff" API that could solve my problem.
It could be nice to have a worker script interface to manage serial line break signal generation.
Any other countermeasure to solve my problem is welcome.
Thank you in advance for considering my proposal.
Kind regards.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ScriptCommunicator has only a serial port (the FTDI driver creates a virtual serial port) and no specific FTDI interface. To implement this I would have to add a complete new interface type. Sorry your use case is to specific to add an extra interface to ScriptCommunicator.
But you can do it yourself in your script. You can write a wrapper DLL for the FTDI interface DLL and call the corresponding functions.
For an example see exampleScripts\WorkerScripts\LoadLibrary and chapter Dynamic link libraries in the manual.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2023-11-21
Hi Stefan,
thank you for your kind reply: your proposal should solve my problem.
KR
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear Stefan,
I'm trying to emulate a LIN bus master node (https://www.lin-cia.org/fileadmin/microsites/lin-cia.org/resources/documents/LIN_2.2A.pdf) using ScriptCommunicator V6.06.
The hardware interface between USB and the LIN physical layer is not a problem: I already have an adapter (based on a FTDI chipset).
From the software point of view, a LIN frame is just a conventional set of serial data, apart from the beginning SYNC BREAK that is a 13 bit long dominant bits data.
On the FTDI documentation, there are "FT_SetBreakOn" and "FT_SetBreakOff" API that could solve my problem.
It could be nice to have a worker script interface to manage serial line break signal generation.
Any other countermeasure to solve my problem is welcome.
Thank you in advance for considering my proposal.
Kind regards.
Hi,
ScriptCommunicator has only a serial port (the FTDI driver creates a virtual serial port) and no specific FTDI interface. To implement this I would have to add a complete new interface type. Sorry your use case is to specific to add an extra interface to ScriptCommunicator.
But you can do it yourself in your script. You can write a wrapper DLL for the FTDI interface DLL and call the corresponding functions.
For an example see exampleScripts\WorkerScripts\LoadLibrary and chapter Dynamic link libraries in the manual.
Hi Stefan,
thank you for your kind reply: your proposal should solve my problem.
KR