Communication system and method
AssigneeLG Energy Solution, Ltd.
InventorYoung-Hwan Jeon
Life of this patent
Estimating the term…
Abstract
A communication system and method that may reduce the communication load and reduce the waste of system resources consumed for communication. Since a communication packet is generated using a packet structure most suitable for the data size and communication is performed through the generated communication packet, there is an advantage in that the communication load on the communication bus may be significantly reduced. In addition, since the information requesting device allocates a buffer corresponding to the communication packet and stores the communication packet in the allocated buffer, there is an advantage in that the buffer of the information requesting device may be prevented from being wasted.
Claims16
A communication system comprising:
- a first device;
- and
- a second device communicatively connected to the first device using a communication bus,
- wherein the first device is configured to:
- receive an information provision request including at least one data identification information from the second device,
- select one of a plurality of packet structures according to a data size of at least one response data corresponding to the data identification information, wherein each packet structure of the plurality of packet structures is configured to include both packet information in a packet information region and the response data in a data region, and wherein the packet information regions of different packet structures of the plurality of packet structures have different frame formats,
- generate a communication packet including the packet information and the response data using the selected packet structure and according to the frame format of the selected packet structure, wherein the packet information of the communication packet includes packet structure information identifying the selected packet structure, wherein the plurality of packet structures are associated with different respective packet structure information, and
- output the generated communication packet to the communication bus, and wherein the second device is configured to:
- receive the communication packet from the communication bus,
- extract the packet structure information from the communication packet,
- determine the selected packet structure of the communication packet based on the extracted packet structure information,
- determine whether or not to store the communication packet based on the packet information included in the communication packet, and
- in response to a determination to store the communication packet,
- allocate a buffer corresponding to the communication packet in a size preset to correspond to the determined packet structure based on the packet information,
- store the response data included in the communication packet in the allocated buffer, and
- extract the response data from the buffer.
A communication system comprising:
- a first device;
- and
- a second device communicatively connected to the first device using a communication bus,
- wherein the first device is configured to:
- receive an information provision request including at least one data identification information from the second device,
- select one of a plurality of packet structures according to a data size of at least one response data corresponding to the data identification information, wherein each packet structure of the plurality of packet structures is configured to include both packet information in a packet information region and the response data in a data region, and wherein the packet information regions of different packet structures of the plurality of packet structures have different frame formats,
- generate a communication packet including the packet information and the response data using the selected packet structure and according to the frame format of the selected packet structure, wherein the packet information of the communication packet includes packet structure information identifying the selected packet structure, wherein the plurality of packet structures are associated with different respective packet structure information, and
- output the generated communication packet to the communication bus, and wherein the second device is configured to:
- receive the communication packet from the communication bus,
- extract the packet structure information from the communication packet,
- determine the selected packet structure of the communication packet based on the extracted packet structure information,
- determine whether or not to store the communication packet based on the packet information included in the communication packet, and
- in response to a determination to store the communication packet,
- allocate a buffer corresponding to the communication packet based on the packet information,
- store the response data included in the communication packet in the allocated buffer, and
- extract the response data from the buffer,
- wherein the first device includes a sensor connected to at least one battery and configured to measure battery information including at least one of voltage, current and temperature of the connected battery, and
- a control unit is configured to receive the battery information from the sensor and generate the at least one response data corresponding to the data identification information based on the received battery information.
A communication method, comprising:
- receiving, by first device, an information provision request including at least one data identification information;
- selecting, by the first device, one of a plurality of packet structures according to a data size of at least one response data corresponding to the data identification information, wherein each packet structure of the plurality of packet structures is configured to include both packet information in a packet information region and the response data in a data region, and wherein the packet information regions of different packet structures of the plurality of packet structures have different frame formats;
- generating, by the first device, a communication packet including the packet information and the response data using the selected packet structure and according to the frame format of the selected packet structure, wherein the packet information of the communication packet includes packet structure information identifying the selected packet structure, wherein the plurality of packet structures are associated with different packet structure information;
- outputting, by the first device, the generated communication packet to a communication bus;
- receiving, by a second device, the communication packet through the communication bus;
- determining, by the second device, whether or not to store the communication packet based on the packet information included in the communication packet;
- extracting the packet structure information from the communication packet;
- determining the selected packet structure of the communication packet based on the extracted packet structure information;
- in response to determining to store the communication packet, allocating, by the second device, a buffer corresponding to the communication packet in a size preset to correspond to the determined packet structure based on the packet information;
- storing, by the second device, the response data included in the communication packet in the allocated buffer;
- and
- extracting, by the second device, the response data from the buffer.
A first device comprising:
- a processor configured to:
- transmit an information provision request to a second device over a communication bus, the information provision request including at least one data identification information from the first device, the data identification information corresponding to a data size;
- in response to transmission of the information provision request, receive a communication packet from the second device over the communication bus, the communication packet including packet information and response data, the packet information including packet structure information identifying a selected packet structure of the communication packet, the response data having the data size corresponding to the data identification information of the information provision request;
- extract the packet structure information from the communication packet;
- determine a selected packet structure of the communication packet based on the extracted packet structure information, wherein the selected packet structure is selected from among a plurality a packet structures associated with different respective packet structure information, wherein each packet structure of the plurality of packet structures is configured to include both the packet information in a packet information region and the response data in a data region, and wherein the packet information regions of different packet structures of the plurality of packet structures have different frame formats;
- determine whether or not to store the communication packet based on the packet information included in the communication packet;
- in response to a determination to store the communication packet,
- allocate a buffer corresponding to the communication packet in a size preset to correspond to the determined packet structure based on the packet information,
- store the response data included in the communication packet in the allocated buffer, and
- extract the response data from the buffer.
Dependencies are inferred from the claim text.