Search found 10 matches

by d7d1cd
Mon Jun 01, 2020 1:35 am
Forum: Technical
Topic: Compiler Warning Only in Release
Replies: 1
Views: 4486

Compiler Warning Only in Release

Welcome all. Wrote the following test code: /*----- unit1.h -----*/ inline bool Foo(); /*----- unit1.cpp -----*/ bool TForm1::Foo() { int b; int i; if (b == 7) i = 1; else if (b == 8) i = 2; else return true; return false; } Compilation of this code in Debug mode is successful. In Release mode, a wa...
by d7d1cd
Fri Dec 27, 2019 8:12 am
Forum: Technical
Topic: Red underline in Clang
Replies: 4
Views: 11805

Re: Red underline in Clang

I did not just ask how to disable tooltips in the editor. Having removed all the checkmarks, I did not get the desired effect: the editor continues to underline in red...
by d7d1cd
Wed Dec 25, 2019 11:39 pm
Forum: Technical
Topic: Read Timeout TIdTCPClient
Replies: 11
Views: 21646

Re: Read Timeout TIdTCPClient

I think (I may be wrong) that the first byte is a sequence number that is copied from the request. The first byte is the so-called network address. You probably already understood that the protocol describes an electric energy meter (counter). So, there can be many of these counters in one network ...
by d7d1cd
Mon Dec 23, 2019 11:20 pm
Forum: Technical
Topic: Read Timeout TIdTCPClient
Replies: 11
Views: 21646

Re: Read Timeout TIdTCPClient

rlebeau wrote:Please do.
I am sending you the exchange protocol in the original. I wanted to send in the translated version, but I could not copy the translated text from the online translator.
by d7d1cd
Sun Dec 22, 2019 11:33 pm
Forum: Technical
Topic: Read Timeout TIdTCPClient
Replies: 11
Views: 21646

Re: Read Timeout TIdTCPClient

Do you have ANY documentation about your device's actual transmission protocol? Yes, of course, there is a protocol, only it is in Russian. The device has 2 communication interfaces: an infrared transceiver, as well as a wired RS-485, work through which is carried out via the COM port. Access to th...
by d7d1cd
Sun Dec 22, 2019 11:05 pm
Forum: Technical
Topic: Red underline in Clang
Replies: 4
Views: 11805

Re: Red underline in Clang

rlebeau wrote:Best to just ignore it, even disable it.
Do you mean to completely disable all the tips? How to do it?
by d7d1cd
Thu Dec 19, 2019 5:53 am
Forum: Technical
Topic: Red underline in Clang
Replies: 4
Views: 11805

Red underline in Clang

Good afternoon. If in C ++ Builder 10.3.2, when the Clang compiler is turned on, you enter the correct code, the system underlines the names of certain components in red. When you hover over the mouse, an error message appears. However, compiling this code is error-free. Is this a bug or can I confi...
by d7d1cd
Thu Dec 19, 2019 12:11 am
Forum: Technical
Topic: Read Timeout TIdTCPClient
Replies: 11
Views: 21646

Re: Read Timeout TIdTCPClient

Again, what does the actual protocol look like? A protocol similar to MODBUS. There is no criterion for ending the sequence of answers in it. Except for the criterion of cyclic redundancy code (CRC16) at the end of each response. Although, probably, I confused you. The protocol of exchange with the...
by d7d1cd
Tue Dec 17, 2019 11:57 pm
Forum: Technical
Topic: Read Timeout TIdTCPClient
Replies: 11
Views: 21646

Re: Read Timeout TIdTCPClient

Why do you not know the size of all of the responses? Because, in fact, I'm doing a survey of an electronic device. This device has its own network IP address and port. So, the device can respond to the same request in different ways, depending on its status. Strictly speaking, there can be two ans...
by d7d1cd
Tue Dec 17, 2019 1:08 am
Forum: Technical
Topic: Read Timeout TIdTCPClient
Replies: 11
Views: 21646

Read Timeout TIdTCPClient

Good day. I use the TIdTCPClient component to send requests to the server and read the response. I know the size of the response for certain requests, but not for others. When I know the size of the response, then my data reading code looks like this: IdTCPClient1->Socket->Write(requestBuffer); IdTC...