This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Serial (RS232) Communications SciCommsGui

Hi,

I am willing to send some control commands to my F28027 based BuckConverter over RS232 VCP. Is it possible to use SciCommsGui.c for that purpose for fast adaptability or should I write/ use SCI communications code from scratch? I understand that documentation is not available for GUI nor SciCommsGui.c.

Best Regards,
Adnan Kurt

  • Hi Adnan,

    Why not! You can make use the "SciCommsGui.c" for fast adaptability; but here is my suggestion:

    Writing SCI communication routines using the help of SCI examples would be easier and more flexible according to your application. Also, creating GUI using TI GUI Composer is very easy too.

    You can check this GUI session: 1121.Building a GUI using TI GUI Composer.pdf

    Regards,

    Gautam

  • Hi Guatam. Thanks for the answer. Indeed, it seems very charming to use GUI generator. I did not notice the availability of the document you've addressed. Is there any document/ info related to the data format send accross the serial link? I could not succeed to decode from the source file. If that's available, it might be faster and more reliable now. I will try using my own SCI code as well, per your advise. Regards, Adnan

  • Is there any document/ info related to the data format send accross the serial link? I could not succeed to decode from the source file. If that's available, it might be faster and more reliable now.

    There's no document as such but you can check out the main.c of the same project to get an idea.

    Regards,

    Gautam

  • Unfortunately, I could not resolve the parameter format and communications packet structure. Greg posted a question and gave useful data, but I could not resolve that either. How to send commands using a terminal program, for example. http://e2e.ti.com/support/microcontrollers/c2000/f/171/p/169189/1125481.aspx#1125481 

    Best Regards,

    Adnan Kurt

  • Adnan,

    The only real documentation around SciCommsGui and its connection to the GUI is the attached .doc file.

    Hopefully, it helps you understand things a bit better. 

    If you have a specific question I may be able to help.


    Thank you,
    Brett

    SciCommsGui.doc
  • Dear Brett,

    That seems to be very useful. to clear thing a bit more, it would be nice to have your c code as well. Is it possible? I could not resolve how to select parameters "Byte 2 – Item or Element (named “Size” in the code)" for example.

    Thanks a lot.

    Adnan

  • Dear Brett,

    Thanks for the advise, and very useful document. Now I am able to control my card over serial port as expected.

    Regards,
    Adnan

    PS. Inspecting the c code for SciComms helped me to find the assignment of the variables to the GUI parameters.

  • Adnan,

    Based on what you've said, it seems like you've gotten thinks to at least somewhat work. 

    If you still need 'c code', are you referring to the c file that will call the SciCommsGui.c file?

    NOTE: Handling data errors is one thing that needs to be improved in the SciCommsGui driver. However, the driver should serve as a decent base.


    Thank you,
    Brett

  • Thanks Brett.

    The c-file I mentioned was your code that was referred in the document. You were referring to "size" variable for example. Anyway, I have succeeded in realizing the communication commands using your advise.

    Another question I posted yesterday was:

    Is it possible to run GUI composer application, without reflashing the target. That is, is it possble to connect to a running target, with GUI_Composer?

    If you have any suggestions, I'd be glad to hear.

    Regards,
    Adnan

  • Hi Adnan,

    I am trying to do the same thing, can you help? 

    Thanks

    Hamid

  • Hi Hamid,

    I will try to share my experience with GUI Composer. Would you please more specific? What kind of a problem you have?


    Adnan
  • Thank you Adnan for your fast reply
    I am interested to send some control commands to my F28069 based DC/AC converter over RS232, I would like to use SciCommsGui.c and adapt it to my application , I know you were faced this problem and I don't like to start from scratch? also Hard to find documentation for GUI.
    I really appreciate if you can share your experience.

    Hamid
  • Dear Hamid,

    Please find a sub-program user interface that also tells about how to use SciCommsGui. I think this might help, and this was the fastest way I could respond. Should you require anything more, I can try.

    Regards,

    Adnan

  • Dear Adnan
    Thank you for your help.
    Please do you have any document about how to generate this panel and how its work ? any code you can share?

    Best regards
    Hamid