I currently have only the following three conditions.
1, a DS18B20 temperature sensor (four-wire, 485 transmission method)
2, a USB to 485 converter
3, a networked laptop
I have achieved the following results.
Connect the three elements and use the serial debugging assistant to debug, send the temperature sensor to get the temperature message, have been able to get the message containing the temperature value: for example, send 00 03 00 00 00 00 02 C5 DA
The return message 00 03 04 01 08 01 81 AB 3D, the decimal value of the two bytes 01 08 in the return message is 264, so the temperature value is 26.4°C
What I expect to achieve, Instead of using this serial debugging assistant, how can I send a request and get the temperature value directly through a program in the upper computer?
1, a DS18B20 temperature sensor (four-wire, 485 transmission method)
2, a USB to 485 converter
3, a networked laptop
I have achieved the following results.
Connect the three elements and use the serial debugging assistant to debug, send the temperature sensor to get the temperature message, have been able to get the message containing the temperature value: for example, send 00 03 00 00 00 00 02 C5 DA
The return message 00 03 04 01 08 01 81 AB 3D, the decimal value of the two bytes 01 08 in the return message is 264, so the temperature value is 26.4°C
What I expect to achieve, Instead of using this serial debugging assistant, how can I send a request and get the temperature value directly through a program in the upper computer?