Menu

solar interface tests

Anonymous
2022-11-18
2022-11-29
  • Anonymous

    Anonymous - 2022-11-18
     
  • Anonymous

    Anonymous - 2022-11-18

    i have script com 5.19 loaded. I am trying to respond with a set of 8 hex characters depending on which message is sent to me. The input is a set of 10 hex characters. Instead of reinventing the wheel, is there a suggested/downloadable script I could modify?

     
  • Stefan Zieker

    Stefan Zieker - 2022-11-21

    This is quite simple:

    function dataReceivedSlot(data)
    {
    //The data should be added to a global data array and then processed 
    //(it can take several calls to dataReceivedSlot to get the data sent by the client)
    
    //Do something 
    }
    //Register on received data from the main interface
    scriptInf.dataReceivedSignal.connect(dataReceivedSlot)
    
     
  • Anonymous

    Anonymous - 2022-11-28

    Thanks Stephan, in the three days between my question and your response, I pretty much did what you suggested. I had to add function to calculate the CRC16 for each message for the returned data. Script Communicator is an awesome tool and it provided me the ability to simulate solar inverter's comms. Thanks so much !

     
  • Stefan Zieker

    Stefan Zieker - 2022-11-29

    :-)

     

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.