gaqinfini.blogg.se

Serial port in delphi 7 ile
Serial port in delphi 7 ile











serial port in delphi 7 ile
  1. SERIAL PORT IN DELPHI 7 ILE HOW TO
  2. SERIAL PORT IN DELPHI 7 ILE SERIAL
  3. SERIAL PORT IN DELPHI 7 ILE SOFTWARE

The interesting part is that when I use the zeitcontrol software the 'ð' char is replaced with '-'. And when I convert the hexa cu ASCII, I will obtain my needed values.

SERIAL PORT IN DELPHI 7 ILE SERIAL

Then the serial port will reply with another string of hexa numbers. Viewed in hexa then viewed not in hexa.: So it is pretty clear to me that I must send a string of 5 hexa numbers to the serial port. I made a scrrenshot of the Einzel software when sending the same string of hexa.

SERIAL PORT IN DELPHI 7 ILE HOW TO

Maybe it's the way I am sending the data to the serial port.? Maybe I do not know how to read from it?Ĭand you give me a code that will send the above string to the serial port using any component (freeware)? And then receive the response from the serial port? The problem is that I could not manage to get a response from the serial port. I believe there must be a way of reading the response of the serial port. But if it is possible to do the sending and receiving without anything else there.

serial port in delphi 7 ile

Is there any way of sending 5 hexa chars.Īnd just read the response? Is it more complicated than that? If it is then tell me what should I be looking for. If I uncheck the hexview, then intelligible information is visible. Like you saw there(in the picture) in hexview. I just know how the result should look like. Also I need to send all those 6 strings, and receive responses for each one of them, then save them to a database table. As you can see the blue string is the sent string and the rest is the response. Send a hexa string and receive another hexa string. This is how it looks like: I need to be able to do the same in my software. 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. And I also have an option to see the communication (not hexa) and the response looks more intelligible. 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.Īlso in hexa. Because I don't know what the serial port wants to receive and what transmits forward, what does it look like.

serial port in delphi 7 ile

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. But I can't seem to get it done.Īs I already said. So another program called ZeitControl Windowed Einzel works like a charm for sending and receiving the hexa information. Delphi/C++ Builder serial communications components. I am trying to write a program which will listen to the serial input from Arduino board connected via usb, and sending output to serial port (COM4). But I think mainly the problem it's my sending the string of hexa.

serial port in delphi 7 ile

Maybe it's the way I send the data through, or maybe the way I read it. 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. Port - COM1, baudrate - 9600, FlowControl - XOnXOff, parity - none StopBits - 1 ByteSize - 8 I am confused. I need complete code of writing to serial port.













Serial port in delphi 7 ile