Delphi Com Port Sample
Posted By admin On 30/01/18Mar 05, 2015 Delphi Automotive makes any car a “connected car. Users just plug the device directly into the OBD-II connector port for seamless. Delphi UDP Sample Source Code. Network Component provides an easy-to-use development interface to a variety of IP protocols. Search for jobs related to Com port delphi or hire on the world's largest freelancing marketplace with 13m+ jobs. It's free to sign up and bid on jobs.
I need complete code of writing to serial port. This is what I need: I need to send a string of hexa to the serial port and receive another string of hexa from there (and translate it later) The string I need to send is: $f0 $41 $30 $4f $f7 The received data will also be hexa, and I need to append it to a table in specific columns of a table (but that is not a problem for me, so don't bother) The sending of the data will happen periodically (but that's also my problem to solve, not yours) Please do not point me to various other links in experts-exchange or links to components. I've been there already. But sadly I have no experience in communicating with the serial port (not even using any third party component to do it). So please give me working code (perhaps using a specific third party component) I must give you here a list of freeware components that seem to work just fine with the serial port (but obviously they work for someone that has some experience with serial ports). Port - COM1, baudrate - 9600, FlowControl - XOnXOff, parity - none StopBits - 1 ByteSize - 8 I am confused.
I have no ideea how to manage this. I happen to have another software (without source) that does this communication but I do not seem to be able to make it work, and to get responses from the other side. Maybe it's the way I send the data through, or maybe the way I read it. But I think mainly the problem it's my sending the string of hexa. So another program called ZeitControl Windowed Einzel works like a charm for sending and receiving the hexa information. Download Set A Light 3d Studio Keygen Crack.
But I can't seem to get it done. As I already said. The string to send looks like this: $f0 $41 $30 $4f $f7, and I don't even know if the sent text is normal to look like this. Because I don't know what the serial port wants to receive and what transmits forward, what does it look like. All I know is that when I send this text to the serial port, on the terminal, only the hexa appears without '$' and ' ', so: I send: $f0 $41 $30 $4f $f7, and in the terminal appears:F0 41 30 4F F7, and then come the response of the machine on the other side of the serial port.
Also in hexa. And I also have an option to see the communication (not hexa) and the response looks more intelligible. The software I am talking about I believe is made and given by the manufacturer of the hardware, but we do not get any other support to develop our own communication software. So I am stuck here. This is how it looks like: I need to be able to do the same in my software. Send a hexa string and receive another hexa string. As you can see the blue string is the sent string and the rest is the response.
Also I need to send all those 6 strings, and receive responses for each one of them, then save them to a database table. All this mus be in a timer. I should not be so complicated.
I just know how the result should look like. Like you saw there(in the picture) in hexview.
I am sending a string of 5 hexa numbers. And I receive 73 hexa numbers. If I uncheck the hexview, then intelligible information is visible. If I know this, I could decode the hexa. Is there any way of sending 5 hexa chars. And just read the response? Is it more complicated than that?
If it is then tell me what should I be looking for. But if it is possible to do the sending and receiving without anything else there.