Click here to Skip to main content
15,888,170 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a device that utilizes DLT645 protocol in order to use communicate with the PC. I would like to understand how this protocol works. Then I can rebuild the gui that can talk to my device and modify it.

The hardest part is I have no idea that how I can use this protocol in order to use a serial communication between PC and the device.

Where should I start from? According to the following document ( Auto-Reporting Mode---page 17), as soon as a RS232 port is connected to the device, data can be transferred to the GUi. But how I can I send and what language do you recommend me to use in order to have a easy communication between PC and device?

http://www.ti.com/lit/ug/tidu247/tidu247.pdf
Posted
Comments
Sergey Alexandrovich Kryukov 8-Dec-14 15:43pm    
It depends on what you are more comfortable with. Platform is more important. .NET has it all, for example. It is not related to UI. It's not clear what your problem is.
—SA

Please see my comment to the question.

For .NET, this is it: http://msdn.microsoft.com/en-us/library/system.io.ports.serialport%28v=vs.110%29.aspx[^].

If by C++ you mean not C++/CLI for .NET, the answer depends on platform, your preferences, etc.; you would need to use some open-source 3rd-party library. This is not a problem; for example:
https://github.com/wjwwood/serial[^],
http://www.codeguru.com/cpp/i-n/network/serialcommunications/article.php/c2503/CSerial--A-C-Class-for-Serial-Communications.htm[^].

—SA
 
Share this answer
 
The protocol looks pretty simple (albeit a bit more documentation would be welcome), if you have some experience of serial port programming then you can easily implement it in almost any programming language. On the other hand, if you are not familiar with serial port programming then you could start with C# that makes your life simpler providing the SerialPort[^] class.
 
Share this answer
 
There is a generic approach to dealing with serial devices such as this and Arduino for example. Devices provide serial comms because there is such a standard way of dealing with it.

1. Set up all your hardware connect it to the computer and use the TI software to get it working. Confirm it all works. You will learn tons from this.

2. Download serial console such as putty: http://en.wikipedia.org/wiki/PuTTY[^]

3. Replace the TI software with putty and become comfortable with sending and receiving data from the device. This is where you learn the instructions for your device.

4. Read this article or others like it learn how to use your own software in place of putty. http://csharp.simpleserial.com/[^]

TI forums provide a wealth of support.

More links: http://www.dreamincode.net/forums/topic/35775-serial-port-communication-in-c%23/[^]
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900