Menu

LIN bus SYNC BREAK emulation

Anonymous
2023-11-20
2023-11-21
  • Anonymous

    Anonymous - 2023-11-20

    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.

     
  • Stefan Zieker

    Stefan Zieker - 2023-11-20

    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.

     
  • Anonymous

    Anonymous - 2023-11-21

    Hi Stefan,
    thank you for your kind reply: your proposal should solve my problem.
    KR

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.