DALYgalibi yana da ka'idoji guda uku:CAN, UART/485, da Modbus.
1. CAN Protocol
Kayan Gwaji:CANtest
- Yawan Baud:250K
- Nau'in Tsari:Madaidaitan Frames da Tsawaitawa. Gabaɗaya, ana amfani da Extended Frame, yayin da Madaidaicin Frame na ƴan BMS na musamman ne.
- Tsarin Sadarwa:ID na bayanai daga 0x90 zuwa 0x98su ne m ga abokan ciniki. Sauran ID ɗin gaba ɗaya ba sa samun dama ko canza su ta abokan ciniki.
- Software na PC zuwa BMS: fifiko + ID na bayanai + Adireshin BMS + Adireshin Software na PC, misali, 0x18100140.
- Martanin BMS ga Software na PC: fifiko + ID na bayanai + Adireshin Software na PC + Adireshin BMS, misali, 0x18104001.
- Kula da matsayin Adireshin Software na PC da Adireshin BMS. Adireshin da ke karɓar umarnin yana zuwa farko.
- Bayanan Abubuwan Sadarwa:Misali, a cikin yanayin kuskuren baturi tare da gargadi na biyu na ƙarancin ƙarfin lantarki, Byte0 zai nuna azaman 80. An canza shi zuwa binary, wannan shine 10000000, inda 0 yana nufin al'ada kuma 1 yana nufin ƙararrawa. Dangane da babban hagu na DALY, ma'anar ƙananan dama, wannan yayi daidai da Bit7: gargaɗi na biyu na ƙarancin ƙarfin lantarki.
- ID na sarrafawa:Cajin MOS: DA, Yin Cajin MOS: D9. 00 yana nufin a kunne, 01 yana nufin kashewa.
2.UART/485 yarjejeniya
Kayan Gwaji:COM serial kayan aiki
- Yawan Baud:9600bps
- Tsarin Sadarwa:Hanyar Lissafin Checksum:Cheksum shine jimlar duk bayanan da suka gabata (ƙananan byte kawai ake ɗauka).
- Software na PC zuwa BMS: Babban Jigo + Adireshin Module Sadarwa (UPPER-Add) + ID na bayanai + Tsawon Bayanai + Abubuwan da ke ciki + Checksum.
- Martanin BMS ga Software na PC: Babban Jigo + Adireshin Module Sadarwa (BMS-Ƙara) + ID na Bayanai + Tsawon Bayanai + Abubuwan da ke ciki + Checksum.
- Bayanan Abubuwan Sadarwa:Daidai da CAN.
3. Modbus Protocol
Kayan Gwaji:COM serial kayan aiki
- Tsarin Sadarwa:
- Tsarin Saƙonni:Karanta Rijista, Buƙatar Frame
- Baiti: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7
- Bayani: 0xD2 | 0x03 ku | Adireshin farawa | Yawan Masu Rajista (N) | Saukewa: CRC-16
- Misali: D203000C000157AA. D2 shine adireshin bawa, 03 shine umarnin karantawa, 000C shine adireshin farawa, 0001 yana nufin adadin rajistar da za a karanta shine 1, kuma 57AA shine CRC checksum.
- Daidaitaccen Tsarin Amsa:
- Baiti: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
- Bayani: 0xD2 | 0x03 ku | Tsawon Data | Darajar Rajista ta 1 | Darajar Nth Register | Saukewa: CRC-16
- L = 2* N
- Misali: N shine adadin rajista, D203020001FC56. D2 shine adireshin bawa, 03 shine umarnin karantawa, 02 shine tsayin bayanan da aka karanta, 0001 yana nufin ƙimar karatun 1st rajista, wanda shine matsayin fitarwa daga umarnin mai watsa shiri, kuma FC56 shine CRC checksum.
- Tsarin Saƙonni:Karanta Rijista, Buƙatar Frame
- Rubuta Rajista:Byte1 shine 0x06, inda 06 shine umarni don rubuta rajistar rikodi guda ɗaya, byte4-5 yana wakiltar umarnin mai watsa shiri.
- Daidaitaccen Tsarin Amsa:Madaidaicin firam ɗin amsawa don rubuta rijistar riƙo ɗaya yana bin tsari iri ɗaya da firam ɗin buƙata.
- Rubuta Rijistar Bayanai da yawa:Byte1 shine 0x10, inda 10 shine umarnin rubuta rajistar bayanai da yawa, byte2-3 shine farkon adireshin rajistar, byte4-5 yana wakiltar tsawon rajistar, kuma byte6-7 yana wakiltar abubuwan da ke cikin bayanan.
- Daidaitaccen Tsarin Amsa:Byte2-3 shine farkon adireshin rajista, byte4-5 yana wakiltar tsawon rijistar.
Lokacin aikawa: Yuli-23-2024