CN115562655A - BMS-based object dictionary access method, system, electronic equipment and storage medium - Google Patents

BMS-based object dictionary access method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN115562655A
CN115562655A CN202211224209.7A CN202211224209A CN115562655A CN 115562655 A CN115562655 A CN 115562655A CN 202211224209 A CN202211224209 A CN 202211224209A CN 115562655 A CN115562655 A CN 115562655A
Authority
CN
China
Prior art keywords
object dictionary
index
address information
sdo
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211224209.7A
Other languages
Chinese (zh)
Inventor
郑君彬
吴伟
吴翔龙
林永铖
叶国华
曾国强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Greenway Technology Co Ltd
Original Assignee
Guangdong Greenway Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Greenway Technology Co Ltd filed Critical Guangdong Greenway Technology Co Ltd
Priority to CN202211224209.7A priority Critical patent/CN115562655A/en
Publication of CN115562655A publication Critical patent/CN115562655A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides an object dictionary access method, system, electronic equipment and storage medium based on a BMS (battery management system). The method comprises the steps of receiving and responding to an SDO inquiry instruction, and screening address information according to the SDO inquiry instruction; if the address information is legal address information, checking a CS command symbol; if the CS command symbol is correctly identified, performing index operation on the object dictionary; if the index operation identification is correct, performing sub-index operation of the object dictionary; and if the sub-index operation is correctly identified, performing reading or writing operation on the object dictionary. The method CAN accurately read or write the desired data by judging whether the address information, the command symbol, the index and the sub-index are correct or not, thereby reducing the repeated development work, meeting the interoperability and interchangeability of various CAN manufacturer devices, having the advantages of convenience, rapidness and high efficiency, reformulating a new sub-protocol, redefining the meaning of the internal data of the CAN open and realizing a new control logic of the system.

Description

BMS-based object dictionary access method, system, electronic equipment and storage medium
Technical Field
The invention relates to the field of scooter battery management systems, in particular to a BMS-based object dictionary access method and system, electronic equipment and a storage medium.
Background
Different control manufacturers have different communication and OTA upgrading protocols, in order to reduce the repeated development work, an open and standardized high-level protocol is needed, the protocol should support the interoperability and interchangeability of various CAN manufacturer devices, and CAN provide a standard and unified system communication module, an equipment function description mode and a network management function in a CAN network. The CANopen protocol is a higher layer protocol that was introduced in this context of use.
At present, the CANopen protocol has been widely applied to motion control, vehicle industry, rail transit, motor drive, marine transportation of ships, and in order to further popularize the application in the field of scooter battery management, how to formulate a new sub-protocol, how to redefine the meaning of internal data of the CANopen, and how to implement the control logic of the system are problems to be considered by those skilled in the art on the basis of the basic protocol-Cia 301 of the CANopen.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides an object dictionary access method, an object dictionary access system, an electronic device and a storage medium based on a BMS.
The purpose of the invention is realized by the following technical scheme:
an aspect of an embodiment of the present invention provides a BMS-based object dictionary access method, including the following steps:
receiving and responding to an SDO inquiry command, and screening address information according to the SDO inquiry command;
if the address information is legal address information, checking a CS command symbol;
if the CS command identifier is correctly identified, performing index operation on the object dictionary;
if the index operation identification is correct, performing sub-index operation of the object dictionary;
and if the sub-index operation identification is correct, performing reading or writing operation on the object dictionary.
Preferably, if the address information is non-legal address information, the step of re-executing is to filter the address information according to the SDO inquiry instruction.
Preferably, if the CS command identifier identifies an error, the re-executing step screens address information according to the SDO query instruction.
Preferably, if the indexing operation identifies an error, the re-executing step screens address information according to the SDO query instruction.
Preferably, if the sub-indexing operation identifies an error, the re-executing step screens the address information according to the SDO query instruction.
Preferably, the performing of the read or write operation of the object dictionary in the step specifically includes:
and performing corresponding reading or writing operation on the content in the cache array.
Preferably, the step of identifying the index operation specifically includes:
checking the index of the object dictionary, checking whether the index of the object dictionary accords with the entry in the object dictionary through a table look-up method, and if so, performing sub-index operation on the object dictionary.
Another aspect of an embodiment of the present invention provides a BMS-based object dictionary access system, including:
the address screening module is used for receiving and responding to an SDO inquiry command and screening address information according to the SDO inquiry command;
the address information judging module is used for judging whether the address information is legal address information or not and then checking the CS command symbol;
the command identifier identification module is used for judging whether the CS command identifier identification is correct or not, and then carrying out index operation on the object dictionary;
the index identification module is used for judging whether the index operation identification is correct or not, and then performing sub-index operation on the object dictionary;
and the sub-index identification module is used for judging whether the sub-index operation identification is correct or not and then performing reading or writing operation on the object dictionary.
In yet another aspect of embodiments of the present invention, there is provided an electronic device comprising one or more processors and memory, the memory for storing one or more programs; the one or more programs, when executed by the processor, cause the processor to implement the BMS-based object dictionary access method provided by the embodiments of the present invention.
In still another aspect of embodiments of the present invention, there is provided a computer-readable storage medium storing a computer program, which when executed, implements the BMS-based object dictionary access method provided by the embodiments of the present invention.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. the invention relates to an object dictionary access method, a system, electronic equipment and a storage medium based on BMS, which CAN accurately read or write desired data by judging whether address information, a command symbol, an index and a sub-index are correct or not, thereby reducing the repeated development work and meeting the interoperability and interchangeability of various CAN manufacturer equipment.
2. The invention detects the SDO inquiry command sent by the host, firstly identifies the message address and the NodeID address, if the address is legal, checks the CS command symbol, identifies the read-write operation and the read-write length through the format of the first data frame, checks the index and the sub-index of the object dictionary, checks whether the message command is matched with the entry of the object dictionary through a table look-up method, and correspondingly reads or writes the content in the cache array if the conditions are passed. The above operation can ensure the safe identification, reading and writing of data, and improve the safety of the system.
3. The client side of the invention can access the object dictionary on the SDO server through the index and the sub-index, so that the CANopen main node can conveniently read and write parameters from any object dictionary of the node, and the convenience of the system is improved.
Drawings
Fig. 1 is a flowchart of an object dictionary access method based on BMS according to an embodiment of the present invention;
fig. 2 is a functional block diagram of an object dictionary access system based on a BMS according to an embodiment of the present invention.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Referring to fig. 1 to 2, an aspect of the present invention provides a BMS-based object dictionary access method, including the following steps:
s100, receiving and responding to an SDO inquiry instruction, and screening address information according to the SDO inquiry instruction; specifically, it needs to wait for an SDO query instruction sent by the host, and then identify a message address and a node id address according to the SDO query instruction, that is, the address information includes the message address and the node id address. Of course, the NodeID addresses of different devices are generally different, and the NodeID address of each device is fixed.
S200, if the address information is legal address information, checking a CS command symbol; in this embodiment, if the address information is the illegal address information, the step of re-executing is to filter the address information according to the SDO inquiry instruction.
S300, if the CS command identifier is correctly identified, performing index operation on the object dictionary; in this embodiment, if the CS command identifier identifies an error, the re-executing step filters address information according to the SDO query instruction.
S400, if the index operation identification is correct, performing sub-index operation on the object dictionary; in this embodiment, if the indexing operation is identified as erroneous, the re-execution step filters address information according to the SDO query instruction.
And S500, if the sub-index operation identification is correct, performing reading or writing operation on the object dictionary. In this embodiment, if the sub-indexing operation is identified as erroneous, the re-performing step filters address information according to the SDO query instruction.
Wherein, from the detailed information subdivision angle to classify, the object dictionary of the invention mainly comprises the following information: the method comprises the following steps of battery pack basic information, production related information, cell brand information, battery serial number information, version number information, battery cell temperature information, single-cell voltage information, battery life cycle extreme value information, battery protection information, battery calibration information and battery record information.
It should be noted that each object is addressed by using a 16-bit index value, which is usually called an index and ranges from 0x0000 to 0xFFFF, in order to avoid that data is not allocatable when large amount of data is available, an 8-bit index value is also defined under some indexes, which is usually called sub-index and ranges from 0x00 to 0xFF, specific parameters in each index can be expressed by a maximum 32-bit variable, and unsegned 32, four bytes.
When the cell temperature index table is designed, because 10 temperature probes are assembled in one battery at most according to the current design, and the variable type of the cell temperature is Signed8, the information can be placed in the same index, and the ARRAY type can be selected when the index is newly built, wherein the index comprises 11 sub-indexes.
When the cell temperature protection information index table is designed, because the cell temperature protection parameters need to include protection values, release values, protection time and release time, and the units and value ranges of the protection parameters are different, the REC type needs to be selected when the index table is newly built, the index includes 18 sub-indexes, and the protection parameters of high and low discharge temperature and high and low charge temperature are covered.
In addition, when the design of the MOS tube state bit information index table is carried out, because the MOS tube information supports external CAN command control besides state query, the VAR type is selected when the index table is newly built, and simultaneously, the index supports the read-write function. The index comprises 1 sub-index, each bit indicates the state of different sensors or switches, and the sensors or switches can be directly controlled by a read command while the states are acquired by the read command.
Further, the performing of the read or write operation of the object dictionary in the step specifically includes: and performing corresponding reading or writing operation on the content in the cache array.
Further, the step of identifying the index operation specifically includes: checking the index of the object dictionary, checking whether the index of the object dictionary accords with the entry in the object dictionary through a table look-up method, and if so, performing sub-index operation on the object dictionary.
Further, in a CANopen system, a CANopen slave node generally serves as an SDO server, a CANopen master node serves as a client (called CS communication), and the SDO client can access an object dictionary on the SDO server through an index and a sub-index, so that the CANopen master node can facilitate parameters of any object dictionary entry of the slave node. In applications where battery basic information is read, a fast SDO is typically used,
therefore, the client side can access the object dictionary on the SDO server through the index and the sub-index, so that the CANopen main node can conveniently read and write parameters from any object dictionary of the node, and the convenience of the system is improved.
Referring to fig. 2, another aspect of the present invention provides a BMS-based object dictionary accessing system, including: an address screening module, an address information judging module, a command identifier identifying module, an index identifying module and a sub-index identifying module,
the address screening module is used for receiving and responding to an SDO inquiry command and screening address information according to the SDO inquiry command; the address information judging module is used for judging whether the address information is legal address information or not, and then checking a CS command symbol; the command identifier identification module is used for judging whether the CS command identifier identification is correct or not, and then performing index operation on the object dictionary; the index identification module is used for judging whether the index operation identification is correct or not, and then performing sub-index operation on the object dictionary; and the sub-index identification module is used for judging whether the sub-index operation identification is correct or not, and then performing reading or writing operation on the object dictionary.
In yet another aspect of embodiments of the present invention, there is provided an electronic device comprising one or more processors and memory, the memory for storing one or more programs; when the one or more programs are executed by the processor, the processor is enabled to implement the BMS-based object dictionary access method provided by the embodiments of the present invention.
In still another aspect of embodiments of the present invention, there is provided a computer-readable storage medium storing a computer program, which when executed, implements the BMS-based object dictionary access method provided by the embodiments of the present invention.
The invention is mainly developed by using SKEAZ128 series MCU of NXP, and is mainly applied to a scooter battery management system. The object dictionary may support reading of battery design information, battery basic information, battery protection information, and battery history information.
The above embodiments only express a few embodiments of the present invention, and the description is specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A BMS-based object dictionary access method comprises the following steps:
receiving and responding to an SDO inquiry command, and screening address information according to the SDO inquiry command;
if the address information is legal address information, checking a CS command symbol;
if the CS command symbol is correctly identified, performing index operation on the object dictionary;
if the index operation identification is correct, performing sub-index operation of the object dictionary;
and if the sub-index operation identification is correct, performing reading or writing operation on the object dictionary.
2. The BMS based object dictionary access method according to claim 1, wherein if the address information is non-legitimate address information, the re-execution step screens the address information according to the SDO inquiry command.
3. The BMS-based object dictionary access method according to claim 1, wherein if the CS commander identifies an error, the re-executing step screens address information according to the SDO query instruction.
4. The BMS based object dictionary access method according to claim 3, characterized in that if said indexing operation identifies an error, the re-execution step screens address information according to said SDO query instruction.
5. The BMS-based object dictionary access method according to claim 4, characterized in that if said sub-indexing operation identifies an error, the re-execution step screens address information according to said SDO query instruction.
6. The BMS-based object dictionary access method according to claim 1, wherein performing a read or write operation of the object dictionary in said step is specifically:
and performing corresponding reading or writing operation on the content in the cache array.
7. The BMS-based object dictionary access method according to claim 1, wherein the step of identifying an indexing operation specifically comprises:
checking the index of the object dictionary, checking whether the index of the object dictionary accords with the entry in the object dictionary through a table look-up method, and if so, performing sub-index operation on the object dictionary.
8. A BMS-based object dictionary access system, comprising:
the address screening module is used for receiving and responding to an SDO inquiry command and screening address information according to the SDO inquiry command;
the address information judging module is used for judging whether the address information is legal address information or not and then checking a CS command symbol;
the command identifier identification module is used for judging whether the CS command identifier identification is correct or not and then performing index operation on the object dictionary;
the index identification module is used for judging whether the index operation identification is correct or not, and then performing sub-index operation on the object dictionary;
and the sub-index identification module is used for judging whether the sub-index operation identification is correct or not, and then performing reading or writing operation on the object dictionary.
9. An electronic device, comprising one or more processors and memory, the memory storing one or more programs;
the one or more programs, when executed by the processor, cause the processor to implement the method of any of claims 1-7.
10. A computer-readable storage medium storing a computer program, characterized in that the computer program, when executed, implements the method of any one of claims 1 to 7.
CN202211224209.7A 2022-10-08 2022-10-08 BMS-based object dictionary access method, system, electronic equipment and storage medium Pending CN115562655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211224209.7A CN115562655A (en) 2022-10-08 2022-10-08 BMS-based object dictionary access method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211224209.7A CN115562655A (en) 2022-10-08 2022-10-08 BMS-based object dictionary access method, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115562655A true CN115562655A (en) 2023-01-03

Family

ID=84744116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211224209.7A Pending CN115562655A (en) 2022-10-08 2022-10-08 BMS-based object dictionary access method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115562655A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319355A (en) * 2023-11-30 2023-12-29 韦普泰克(常州)测控系统设备有限公司 Method and system for detecting CANopen (code addressable by digital weighing instrument)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319355A (en) * 2023-11-30 2023-12-29 韦普泰克(常州)测控系统设备有限公司 Method and system for detecting CANopen (code addressable by digital weighing instrument)
CN117319355B (en) * 2023-11-30 2024-02-09 韦普泰克(常州)测控系统设备有限公司 Method and system for detecting CANopen (code addressable by digital weighing instrument)

Similar Documents

Publication Publication Date Title
US9489328B2 (en) System on chip and method for accessing device on bus
WO2006093716A1 (en) Systems, methods and architecture for facilitating software access to acceleration technology
CN107193560B (en) Configuration updating method and device
CN115562655A (en) BMS-based object dictionary access method, system, electronic equipment and storage medium
CN116679887B (en) Universal control module and method for NAND Flash
CN111596860B (en) FPGA control method for improving NAND-FLASH storage reliability
CN114327258B (en) Solid state disk processing method, system, equipment and computer storage medium
CN110413331B (en) SPI NOR FLASH identification method, device, system and storage medium based on ROM
CN113177015A (en) Frame header-based serial port communication method and serial port chip
CN112559392A (en) Method for accelerating reading of storage medium, reading acceleration hardware module and storage
CN115022414B (en) CAN ID reverse and determining method for vehicle electronic control unit
CN112783683B (en) Data processing method, device, equipment and storage medium
US8341334B2 (en) Flash memory apparatus and method for operating the same and data storage system
CN110209433B (en) Method for identifying concentrators of different models
CN103853675A (en) Method and equipment for accessing memory
CN117811939B (en) Remote terminal simulation method based on 1553B bus
US20240184484A1 (en) Flash memory controller and associated memory device and control method
US20240184485A1 (en) Flash memory controller and associated memory device and control method
CN118175045B (en) Internet of things object model determining method and device and electronic equipment
CN219643938U (en) Communication control circuit and communication equipment for carrying IIC communication through UART
CN116069387B (en) Storage device adaptation method, adaptation device, storage device and readable storage medium
CN112199103B (en) Equipment upgrading method and terminal equipment
CN116775526B (en) Expansion device and electronic equipment
CN111953774A (en) Temporary storage access method, network device and network system
EP4407938A1 (en) Can communication device supporting modbus protocol, and operation method therefor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination