0% found this document useful (0 votes)
110 views

Protocol Tracer MT 5 PDF

Uploaded by

Amy Taylor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
110 views

Protocol Tracer MT 5 PDF

Uploaded by

Amy Taylor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 6
alextuhmann@body-soft. de PROTOCOL OF TRACER SEREIS AND MT-5 Ver 3 (REVISED ON 13, Dec.2011.) 1, instruction on communication date format. PWL start up 6 byte, (AAH, 55H, AAH, 55H, AAH, 55H) + communication synchronization, the first 6byte (EBH, 90H, EBH, 90H, EBH, 90H) + controller 1D(1 byte) + command (1 byte) (see details in part3: instructions on command) + data packet length ( 1 byte, bytes of data content , maximumly don't exceeds 200 bytes) + data content (low byte in front ) + CRC Cyclic redundancy check code ( 2 byte, high byte in front) +7FH eg: computer send a real time monitoring command string to E01 series controller( ID=16H) : AA.55 AA 55 AA 55 EB 90 EB 90 EB 90 16 A000 B1 A7 7F For example , responds is as following: ‘AA55 AA 55 AA 55 EB 90 EB 90 EB 90 12 bytes to start the synchronization head 16 A018 ID, command, data length CE_04 A4 06 00 00 E8 03 56 04 AD 05 01 00 00 50 00 00 00 00 37 E8 03 00 17 datas 9A 38 7F. 2 byte check code, 1 byte exit ion as following: 1, Controller cannot identify PWL start up 6 byte AA 55 AA 55 AA 56, in order to save some device won't send, so the host computer is not sensible to such 6 byte AA 55 AASS ASS, 2 6 byte PWL start up + 6 byte communication synchronization is 12 byte abbreviated as “synchronous head” Floating point data such as voltage, current , etc, are indicates as 100 times integer of the actual value, e.g, 12.5V, showed as 1250 (OxO4E2 (hexadecimal 2-byte integer). Please switch by yourself 4, Order of integers of more than 2 byte are transferred in sequence : Low byte in front and high byte in behind ID is 1 byte data, the present version won't deal with it now. 6, The following commands added shall follow the above principals. Command byte definitions are as following: 1, Command ADH( read the real time collected data) : used for real time monitoring Special delivery format and respond format Host send: synchronous head + ID + AQH + OOH + CRCH + CRCL + 7FH Sub device send back: synchronous head + ID + AOH + ODH + collected data stings + CRCH + CRCL + 7FH The data strings content and sequence to be collected: No. items byte | instructions s 1 | Battery voltage [2 | e.g, 12.5W( 1250 showed as OxO4E2 low byte is in front byte_| when sending 2 | Pvvoltage 2 | sameas above byte 3 Reserved 2 all time. 4 |Loadcurrent [2 | ea. 10.08(1000 showed as 0x03E8, low byte isin front byte_| when sending 5 | over discharge | 2 ‘same as above voltage byte 6 [Bate full! | sameas above voltage byte 7 |Loadon/off [1 | =0,loadoff,=1,loadon byte 8B Dver load 1 =0, normal ; =I, load current over load, over load byte_| protection would happen. 9 [toad short] 1 — | =0, normal; =1, load short circuit, output would be circuit byte_| stopped. 10 | reserved 1 | Notused byte 11 | Battery 1 | =0,nomnal; =1, battery voltage over voltage, controller overload byte_| would stop charging and discharging. 12 | Overdischarge [1 | =0, normal, =1, battery voltage too low and output byte_| would be stopped. 13° | Fullindicator [1 | =0, not fully charged; =1, battery voltage is full byte 14 | Charging 1 | =0,not charging, =1, being charged indicator byte 15 | Batterytemp. [1 | Eg, 25°C(55 showed as Ox37, there is 30 difference in byte | value with the real value 16 | Charging 2 | eg. 10.0A( 1000 showed as Ox03E8, Low bytein front current byte_| when sending 17 | reserved Tbyt JO e 2, Command OxAA: (manual control command): used for controlling of load switch through remote meter or computer Host send: synchronous head + ID + AAH + O1H + control switch commend + CRCH + CRCL + 7FH ‘Sub device send back: synchronous head + ID + AAH + O1H + load switch state + CRCH + CRCL + 7FH Control switch command , Load ON }, Load OFF Load switch state: , Load ON |, Load OFF 3. Command OxAD: remote meter or computer send control data: Format: Host send: synchronous head + 1D + ADH + 00H + control parameter data strings + CRCH + CRCL + 7FH Sub device send back: synchronous head + ID + ADH + 00H + CRCH + CRCL + 7FH Control parameter data strings: No._| items bytes _| instructions 1 [Load type ibyte_| unuse 2 | Charging byte | unuse mode 3 | Temperature | Ibyte | 0~10 compensatio n ovefficienct 4 | Batterytype [| ibyte_| 0: gel, 1: sealed, 2: flooded 5 | Battery Tbyte | Show 1/10 of normal battery capacity (AH), need capacity recover process 6 | Load control] Ibyte | As below chart model 1 7 | Load control] Tbyte | As below chart mode 2 Load control mode 1 code code | instruction 0 | Dusk to Dawn 1-1 | 1=15 hours timer 5 16 | Test 17_| Manual 18 | unable Load mode 2 code only include 1~15, 18, CRC process example: cRC_Buff - The first address of data strings to be proceed crcten -- Byte numbers to be processed, from ID byte to final byte of CRC check result UI6 Gro{u8 *CRC_Buffus orc_len) { UB ore _ijore_j.1y2.r314; U16 cre_result; rl=*CRC_Buff CRC_Bufft+; r2=*CRC_Buff; CRC_Buffe+; for (cre. { yere_iccrc_len-2;cre_i++) 13=*CRC_Buff; CRC_Buff+; for (cre_j { ore jeBicre_ j++) r=r1 H=(M1<<1); if ((r280x80)! 12er2eel if((380«80)=( 132(reel); if (((480x80) { Naked roe; 11=11°0x10; 12=12*0x4l; } orc_result=r1; oro_result=cre_resulte«8 | 12; return(cre_result); example, Main) { u calculate the CRC checkword before sending ‘tbufft_bufl2}+3] = 0; // remove all command. t_bufft_buf[2]+4) = 0; CRC_Result=Cre(_buftbufl2}+5); // calculate t_bufft_butl2]+3] = CRC_Result>>8; t_bufft_bufl2]+4] = CRC_Result & OxFF; ‘buflt_bufl2|+5] = Ox7F; —// exit code Connector Pin definitions: Pin number_| defi jon 1 Power supply + 12V output 2 Power ground/signal ground 3 Power +12V output Power ground/signal ground ‘TXD, the sender RXD,_the receiving end Power ground/signal output co flor fen fas Power ground/signal output RJ45crystal plus pin number as shown

You might also like