Sonbus Sm1000c Can Bus Intelligent Ds18b20 Temperature Data Acquisition Module User Manual

Sonbus Sm1000c Can Bus Intelligent Ds18b20 Temperature Data Acquisition Module User Manual

SONBEST-logo

SONBUS SM1000C CAN Bus Intelligent DS18B20 Temperature Data Acquisition Module

SONBUS SM1000C CAN Bus Intelligent DS18B20 Temperature Data Acquisition Module PRODUCT

Technical Parameters

Technical parameterParameter value
BrandSONBEST
Temperature measuring range-50℃~120℃
Temperature measuring accuracy±0.5℃ @25℃
Communication InterfaceCAN
Default rate50kbps
PowerDC9~24V 1A
Running temperature-40~80°C
Working humidity5%RH~90%RH

Product Size

PRODUCT SIZEHow to wiring?

HOW TO WRITING.

Application Solution

HOW TO WRITING. 03

How to use?

HOW TO USE

Communication Protocol

The product uses the CAN2.0B standard frame format. The standard frame information is 11 bytes including two parts of information and the first 3 bytes of the data part is the information part. The default node number of the device is 1, the report The text identification code is ID.10-ID.3 in the CAN standard frame, and the default rate is 50k. If other rates are required, it can be modified according to the communication protocol. The device can work directly with various CAN converters or USB acquisition modules. Users can also choose our industrial grade USB-CAN converter (as shown above). The basic frame format and composition are as follows: The table shows.

Bit76543210
Byte 1FFFTRXXDLC.3DLC.2DLC.1DLC.0
Byte 2ID.10ID.9ID.8ID.7ID.6ID.5ID.4ID.3
Byte 3ID.2ID.1ID.0xxxxx
Byte 4d1.7d1.6d1.5d1.4d1.3d1.2d1.1d1.0
Byte 5d2.7d2.6d2.5d2.4d2.3d2.2d2.1d2.0
Byte 6d3.7d3.6d3.5d3.4d3.3d3.2d3.1d3.0
Byte 7d4.7d4.6d4.5d4.4d4.3d4.2d4.1d4.0
Byte 11d8.7d8.6d8.5d8.4d8.3d8.2d8.1

Byte 1 is frame information. The 7th bit (FF) indicates the frame format. In the extended frame, FF=1; the 6th bit (RTR) indicates the type of the frame, and the RTR=0 indicates the data frame. RTR=1 indicates the remote frame; DLC indicates the actual data length at the data frame. Bytes 2~3 are valid for the message identification code 11 bits. Bytes 4~11 are the actual data of the data frame, and t he remote frame is invalid. For example, if the hardware address is 1, as shown in the figure below, the frame ID is 00 00 00 01, and the data can be replied by sending the correct command.

Query Data
Example:
Query 1# device channel 1 all 2 data, the host computer sends the command: 01 03 00 00 00 02.

Frame typeFrame IDSet addressFunction IDStart AddressData length
00 0101010300 0002

Response frame: 01 03 04 07 3A 0F 7D.

Frame typeFrame IDSet addressFunction IDData lengthData
Response00 0001030408 AD 0F 7D

In the above example query reply: 0x03 table is the command number, 0x4 table has 4 data, the first data is 08 AD folded into decimal is: 2221, because the module resolution is 0.01, the The value needs to be divided by 100, that is, the actual temperature value is 22.21 degrees. Each temperature value occupies two bytes, that is, an integer variable. The actual value needs to be divided by 100 based on this value. Similarly, 0F 7D is the second. The data has a value of 3965, which means the real value is 39.65% RH.

Change Frame ID
You can use the master station to reset the node number by command. The node number ranges from 1 to 200. After resetting the node number, you must reset the system. Because the communication is in hexadecimal format, the data in the table Both are in hexadecimal format. For example, if the host ID is 00 00 and the sensor address is 00 01, the current node 1 is changed to the 2nd. The communication message for changing the device ID is as follows: 01 06 0B 00 00 02.

Frame TypeFrame IDSet AddressFunction IDFixed ValueTarget frame ID
Command00 0101060B 0000 02

The command will not respond correctly. The following is the command and reply message to change the Set Address to 2.

Change device rate
You can use the master station to reset the device rate by command. The rate number range is from 1 to 11. After resetting the node number, the rate takes effect immediately. Because the communication is in hexadecimal format, the rate in the table. The numbers are all in hexadecimal format.

Rate NumberRateRate NumberRate
110kbps220kbps
325kbps440kbps
550kbps6100kbps
7125kbps8200kbps
9250kbpsA400kbps
B500kbpsC1M (unused)

The rate not in the above range is not supported at the moment. If there is special demand, it can be customized. For example, the device rate is 50k. According to the above table, the number is 05. To change the rate to 40k, the 40k number is 04, the communication message of the operation is as follows: 01 06 0A 05 00 04, as shown below.
After the execution rate is modified, the rate will change immediately and the device will not return any value. At this time, the CAN acquisition device also needs to switch the corresponding rate to communicate normally.

Return frame ID and rate after power-on
After the device is powered on again, the device will return the corresponding Set Address and rate information. For example, after the device is powered on, the reported message is as follows: 01 25 01 05 D1 80.

frame IDSet AddressFunction idcurrent frame IDcurrent rateCRC16
00 00012500 0105D1 80

In the response frame, 01 indicates that the current frame ID is 00 01, and speed value 05 indicates that the current rate is 50 kbps, which can be obtained by looking up the table.

Disclaimer
This document provides all information about the product, does not grant any license to intellectual property, does not express or imply, and prohibits any other means of granting any intellectual property rights, such as the statement of sales terms and conditions of this product, other issues. No liability is assumed. Furthermore, our company makes no warranties, express or implied, regarding the sale and use of this product, including the suitability for the specific use of the product, the marketability or the infringement liability for any patent, copyright or other intellectual property rights, etc. Product specifications and product descriptions may be modified at any time without notice.

Contact Us
Company: Shanghai Sonbest Industrial Co., Ltd
Address: Building 8,No.215 North east road, Baoshan District, Shanghai, China
Web: http://www.sonbus.com
SKYPE: soobuu
Email: [email protected]
Tel: 86-021-51083595 / 66862055 / 66862075 / 66861077

References

Documents / Resouces

Download manual
Here you can download full pdf version of manual, it may contain additional safety instructions, warranty information, FCC rules, etc.


Related Manuals