A method, device and system for detecting items in a vehicle refrigerator
By abstracting the detection function of the on-board refrigerator item as SOA atomic service and combining the CAN bus to communicate with Ethernet, the problem of difficulty in updating and iterating the detection function of the on-board refrigerator item in the prior art is solved, and the modularization of functions and system flexibility are achieved.
Patent Information
- Application Number
- CN202510379950.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-28
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2045-03-28
AI Technical Summary
There is no method for detecting items of vehicle-mounted refrigerators based on Service-Oriented Architecture (SOA) in the prior art, which leads to high system complexity and integration difficulties and difficulty in function update and iteration.
The vehicle-mounted refrigerator item detection function is abstracted into an independent atomic service, and communicates with Ethernet based on the SOA architecture and CAN bus. Through Ethernet communication between the area controller and user terminal, service is published, called and subscribed. The refrigerator controller drives the refrigerator through hard-wire to detect items.
It realizes the modularity, easy expansion and maintenance of the item detection function of the vehicle refrigerator, improves the flexibility and scalability of the system, and supports flexible reorganization and call of functions.
Smart Images

Figure CN119898287B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automobile intelligent control, and in particular to a method, device and system for detecting items in a vehicle refrigerator. Background Art
[0002] Before 2019, most automotive electronic architectures adopted a distributed architecture, and various functions were usually implemented by independent ECUs (Electronic Control Units), each of which was responsible for a specific function. The entire vehicle communicated based on CAN (Controller Area Network) and LIN (Local Interconnect Network) buses. This architecture led to a highly decentralized system, increasing hardware costs, system complexity, and integration difficulty. Function updates and iterations often require the coordinated modification of multiple controllers, and the software for each ECU was developed by different suppliers, resulting in a long and difficult software change cycle.
[0003] Around 2020, with the development of vehicle-mounted systems, the electronic architecture was upgraded to a domain-centralized architecture, dividing the vehicle functions into power domain, chassis domain, cockpit domain, autonomous driving domain, and body domain, and concentrating the scattered ECU functions into the domain controller, based on the CAN bus and superimposed with Ethernet communication.
[0004] The upgrade of electronic architecture provides the hardware conditions for the introduction of SOA (Service-Oriented Architecture), and the application of in-vehicle Ethernet provides the network conditions for the introduction of SOA architecture.
[0005] Automotive SOA organizes the underlying capabilities of the entire vehicle's intelligence, SOA-ing the underlying hardware capabilities and various functions of the vehicle, dividing them into different services and splitting them into smaller granular interfaces. These services are designed with interfaces based on SOA standards and communicate based on SOA standard protocols. In this way, each service component can access each other, thus expanding the combination of services.
[0006] Automobile SOA provides a software development foundation for realizing the application of vehicle refrigerator item detection. However, there is no vehicle refrigerator item detection method based on SOA in the prior art. Summary of the invention
[0007] To solve the above problems, the present disclosure provides a method, device and system for detecting items in a vehicle refrigerator. Based on SOA, the vehicle refrigerator item detection function is abstracted into an independent atomic service. The service can be called by multiple consumers, thereby realizing the detection of items in the vehicle refrigerator.
[0008] In a first aspect, a method for detecting items in a vehicle refrigerator is provided, comprising:
[0009] Receive the task of starting the vehicle refrigerator item detection function;
[0010] Sending an item detection service query request to the zone controller via Ethernet;
[0011] Receive the open item detection service interface information sent by the zone controller via Ethernet;
[0012] Based on the SOME / IP protocol, the query information of the item detection service interface is used to send a remote call request for the item detection service to the regional controller via Ethernet, and subscribe to the item detection switch status event and the item detection status event;
[0013] Receiving the object detection switch state issued by the zone controller via Ethernet, and outputting the object detection function switch state based on the object detection switch state, wherein the object detection function switch state includes: on and off;
[0014] The object detection status published by the zone controller is received via Ethernet, and the state of the refrigerator is output based on the object detection status, wherein the state of the refrigerator includes: empty and loaded.
[0015] Furthermore, outputting the state of the refrigerator based on the object detection state includes:
[0016] When the item detection switch is on and the item detection status is empty, the user is reminded to check that the refrigerator is in an empty state, and please turn off the refrigerator in time.
[0017] Furthermore, it also includes:
[0018] Receive the task of shutting down the refrigerator item detection function;
[0019] Sending a closed item detection service query request to the zone controller via Ethernet;
[0020] receiving closed article detection service interface information sent by the zone controller via Ethernet;
[0021] Based on the SOME / IP protocol, the closed item detection service is remotely called using the queried closed item detection service interface information;
[0022] ICU receives the item detection switch status issued by ZCU.
[0023] In a second aspect, a method for detecting items in a vehicle refrigerator is provided, comprising:
[0024] Receiving an item detection service query request sent by a user terminal via Ethernet;
[0025] Query the information of opening the item detection service interface from the service registry;
[0026] Send the queried open item detection service interface information to the user terminal via Ethernet;
[0027] Receiving a remote call to start an item detection service request sent by a user terminal via Ethernet;
[0028] Parse the remote call to open item detection service request and assemble it into the open item detection CAN signal;
[0029] Sending the assembled opened item detection CAN signal to the refrigerator controller via the CAN bus;
[0030] Receiving an item detection switch state CAN signal and an item detection state CAN signal periodically sent by the refrigerator controller through the CAN bus, wherein the item detection switch state CAN signal contains an item detection switch state value, and the item detection state CAN signal contains an item detection state value;
[0031] Determine whether the item detection switch status value and the item detection status value have changed, trigger the item detection switch status event and the item detection status event, encapsulate the item detection switch status CAN signal and the item detection status CAN signal into Ethernet data, and publish them to the user terminal via Ethernet.
[0032] Furthermore, it also includes:
[0033] receiving a closed item detection service query request sent by a user terminal via Ethernet;
[0034] Query the closed item detection service interface information from the service registry;
[0035] Sending the queried closed item detection service interface information to the user terminal via Ethernet;
[0036] Receiving a remote call to close an item detection service request sent by a user terminal via Ethernet;
[0037] Parse the remote call to close the object detection service request and assemble it into a close object detection CAN signal;
[0038] Sending the assembled closed item detection CAN signal to the refrigerator controller via the CAN bus;
[0039] Receive the item detection switch status CAN signal periodically sent by the refrigerator controller via the CAN bus;
[0040] Determine if the item detection switch status value has changed, trigger the item detection switch status event, encapsulate the item detection switch status CAN signal, and publish it to the user terminal via Ethernet.
[0041] In a third aspect, a method for detecting items in a vehicle refrigerator is provided, comprising:
[0042] Receive the open item detection CAN signal sent by the zone controller via the CAN bus;
[0043] According to the received CAN signal, the refrigerator is driven by hard wire to turn on the item detection function and perform item detection;
[0044] Receiving the item detection switch status and item detection status sent by the refrigerator through the hard line;
[0045] Assemble the object detection switch status and the object detection status into corresponding CAN signals;
[0046] The object detection switch status CAN signal and the object detection status CAN signal are periodically sent to the zone controller via the CAN bus.
[0047] Furthermore, it also includes:
[0048] Receiving the closed object detection CAN signal sent by the zone controller via the CAN bus;
[0049] According to the received closed object detection CAN signal, the refrigerator is driven to close the object detection;
[0050] Receive the item detection switch status sent by the refrigerator through the hard line;
[0051] The CAN signal of the object detection switch status is periodically sent to the zone controller via the CAN bus.
[0052] In a fourth aspect, a vehicle refrigerator article detection device is provided, comprising: a first receiving unit, a first sending unit, a second sending unit, a second receiving unit and an output unit; wherein:
[0053] A first receiving unit, used to receive a task to start the vehicle refrigerator item detection function;
[0054] The first sending unit is used to send an opening item detection service query request to the zone controller via Ethernet when receiving a task to open the vehicle refrigerator item detection function;
[0055] The second receiving unit is used to receive the information of starting the item detection service interface sent by the regional controller through Ethernet; and receive the item detection switch state and item detection state issued by the regional controller through Ethernet;
[0056] The second sending unit is used to send a remote call to start the item detection service request to the regional controller through Ethernet based on the SOME / IP protocol and using the queried start item detection service interface information, and subscribe to the item detection switch state event and the item detection state event;
[0057] The output unit is used to output the switch state of the object detection function based on the received object detection switch state; based on the received object detection state, output the state of the refrigerator, wherein the switch state of the object detection function includes: on and off, wherein the state of the refrigerator includes: empty and with objects.
[0058] In a fifth aspect, a vehicle refrigerator article detection device is provided, comprising a first receiving unit, a query unit, a first sending unit, a conversion unit, a second sending unit, a second receiving unit and a triggering unit; wherein:
[0059] The first receiving unit is used to receive a query request for opening an item detection service sent by a user terminal via Ethernet; and receive a remote call request for opening an item detection service sent by a user terminal via Ethernet;
[0060] A query unit, used to query the information of the opening item detection service interface from the service registration table;
[0061] The first sending unit is used to send the queried information of opening the object detection service interface to the user terminal through Ethernet; and when the trigger unit triggers the object detection switch state event and the object detection state event, encapsulate the object detection switch state and the object detection state and publish them to the user terminal through Ethernet;
[0062] A conversion unit, used to parse a remote call to start the item detection service request and assemble it into an item detection start CAN signal, and encapsulate the item detection switch state CAN signal and the item detection state CAN signal to form Ethernet data;
[0063] A second sending unit, used to send the assembled opened object detection CAN signal to the refrigerator controller via a CAN bus;
[0064] A second receiving unit is used to receive an item detection switch state CAN signal and an item detection state CAN signal periodically sent by the refrigerator controller through a CAN bus, wherein the item detection switch state CAN signal contains an item detection switch state value, and the item detection state CAN signal contains an item detection state value;
[0065] The trigger unit is used to determine the object detection switch state value and the change of the object detection state value, and trigger the object detection switch state event and the object detection state event.
[0066] In a sixth aspect, a vehicle refrigerator article detection device includes: a first receiving unit, a control unit, a second receiving unit, a conversion unit and a sending unit; wherein:
[0067] A first receiving unit, used to receive an open object detection CAN signal sent by the zone controller via a CAN bus;
[0068] A control unit, for driving the refrigerator to start an item detection function and perform item detection through a hard line according to a received CAN signal;
[0069] A second receiving unit, used for receiving the item detection switch state and the item detection state sent by the refrigerator through a hard line;
[0070] A conversion unit, used for assembling the object detection switch state and the object detection state into corresponding CAN signals;
[0071] The sending unit is used to periodically send the object detection switch state CAN signal and the object detection state CAN signal to the zone controller through the CAN bus.
[0072] In a seventh aspect, a vehicle refrigerator article detection system is provided, comprising: a user terminal, a zone controller, a refrigerator controller, and a refrigerator;
[0073] The user terminal is used to receive a task to start the item detection function of the vehicle refrigerator; send an item detection service query request to the regional controller via Ethernet; receive the item detection service interface information sent by the regional controller via Ethernet; based on the SOME / IP protocol, use the queried item detection service interface information to send a remote call item detection service request to the regional controller via Ethernet, and subscribe to the item detection switch state event and the item detection state event; receive the item detection switch state and the item detection state published by the regional controller via Ethernet; based on the received item detection switch state, output the item detection function switch state; based on the received item detection state, output the state of the refrigerator, wherein the item detection function switch state includes: on and off; the state of the refrigerator includes: empty and with items;
[0074] The area controller is used to receive an item detection service query request sent by a user terminal via Ethernet; query the item detection service interface information from a service registration table; send the query item detection service interface information to the user terminal via Ethernet; receive a remote item detection service request sent by the user terminal via Ethernet; parse the remote item detection service request and assemble it into an item detection CAN signal; send the assembled item detection CAN signal to the refrigerator controller via the CAN bus; receive an item detection switch status CAN signal and an item detection status CAN signal periodically sent by the refrigerator controller via the CAN bus; determine whether an item detection switch status value and an item detection status value have changed, trigger an item detection switch status event and an item detection status event, encapsulate the item detection switch status CAN signal and the item detection status CAN signal, and publish them to the user terminal via Ethernet, wherein the item detection switch status CAN signal contains the item detection switch status value, and the item detection status CAN signal contains the item detection status value;
[0075] The refrigerator controller is used to receive the object detection CAN signal sent by the zone controller through the CAN bus; according to the received CAN signal, drive the refrigerator to turn on the object detection function and perform object detection through the hard line; receive the object detection switch state and the object detection state sent by the refrigerator through the hard line and assemble them into corresponding CAN signals; send the object detection switch state CAN signal and the object detection state CAN signal to the zone controller periodically through the CAN bus;
[0076] The refrigerator is used to turn on the item detection function and perform item detection under the drive of the refrigerator controller, and feed back the item detection switch state and the item detection state to the refrigerator controller through a hard line.
[0077] Compared with the prior art, the present invention has the following advantages:
[0078] The solution of the embodiment of the present invention adopts a domain centralized electronic architecture, based on the CAN bus, superimposed Ethernet communication, and abstracts the vehicle refrigerator item detection function into an independent atomic service including two methods and two events based on SOA. The regional controller is used as the server, and the regional controller and the user terminal communicate using Ethernet to complete the publishing, calling and subscription of services. The regional controller interacts with the refrigerator controller through the CAN bus, and the refrigerator controller drives the refrigerator through hard wires to realize the item detection function of the vehicle refrigerator. The vehicle refrigerator item detection method designed based on the SOA architecture makes the refrigerator item detection function more modular, easy to expand and maintain. In the future, more functions or services can be added according to user needs to realize flexible reorganization and calling of functions. The flexibility and scalability of the system are improved.
[0079] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or be understood by implementing the present disclosure. The purpose and other advantages of the present disclosure can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0081] Figure 1 A schematic diagram showing a service consumer invoking an item detection service according to an embodiment of the present disclosure is shown;
[0082] Figure 2 A flow chart of a method for detecting items in a vehicle refrigerator according to an embodiment of the present disclosure is shown;
[0083] Figure 3 A timing diagram of a method for detecting items in a vehicle refrigerator according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0084] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0085] The disclosed embodiment adopts a domain-centralized electronic architecture, based on the CAN bus, superimposed Ethernet communication, and based on the SOA service architecture to realize the item detection function of the vehicle refrigerator. The vehicle refrigerator item detection function is abstracted into an independent atomic service, which can be called by multiple consumers who also use the SOME / IP (Scalable service-oriented middleware over IP) protocol, and can be adapted to various application scenarios, where the consumer can be the vehicle machine ICU (Infotainment Computing Unit, infotainment domain controller), voice control system and / or mobile phone APP, and the consumer runs on the user terminal.
[0086] The refrigerator item detection atomic service in the present disclosure includes two methods and two events. The methods are opening the item detection service (Icb_ItemLeft_Open) and closing the item detection service (Icb_ItemLeft_Close). The events are the item detection switch status (Icb_ItemLeft_Sts) and the item detection status (Icb_ItemCheck_Sts).
[0087] The car ZCU (Zone Control Unit) is used as a server. The ZCU also has a gateway function, i.e. a service-oriented gateway (using the SOME / IP protocol communication middleware). Considering the economy, the ZCU communicates with the vehicle ICU and the mobile phone APP via Ethernet to complete the publishing, calling and subscription of services. The ZCU and CHC (Cooling and Heating Controller) communicate via CAN, and the ZCU completes the conversion of Ethernet data and CAN signals through its own gateway function.
[0088] Figure 1 A schematic diagram showing a service consumer invoking an object detection service according to an embodiment of the present disclosure. Figure 2 A flow chart of a method for detecting items in a vehicle refrigerator according to an embodiment of the present disclosure is shown. Figure 3 A timing diagram of a vehicle refrigerator article detection method according to an embodiment of the present disclosure is shown. Figure 1 , Figure 2 and Figure 3 The method for detecting items in a vehicle refrigerator disclosed in the present invention is described.
[0089] The method for detecting items in a vehicle refrigerator according to the embodiment of the present disclosure comprises the following steps:
[0090] Step 101: ICU receives a task to start the vehicle refrigerator item detection function;
[0091] In actual operation, Figure 2 As shown, the user can turn on the refrigerator item detection function by sliding the soft switch displayed on the ICU screen in the car to the right.
[0092] Step 102: ICU sends a query request for starting the item detection service to ZCU via Ethernet.
[0093] Here, ZCU acts as a service-oriented gateway and has a service registry, in which there are information about opening item detection service (Icb_ItemLeft_Open), closing item detection service (Icb_ItemLeft_Close) and corresponding service interface information.
[0094] Step 103: ZCU receives the opening item detection service query request sent by ICU via Ethernet.
[0095] Step 104: The ZCU queries the service interface information for opening the item detection service from the service registration table.
[0096] The service registry contains service name and service interface information.
[0097] Step 105: ZCU sends the queried opening item detection service interface information to ICU.
[0098] Step 106: ICU receives the opening item detection service interface information sent by ZCU via Ethernet.
[0099] Step 107: Based on the SOME / IP protocol, the ICU uses the queried information about the item detection service interface to send a remote item detection service request to the ZCU via Ethernet, and subscribes to item detection switch status events and item detection status events.
[0100] Step 108: ZCU receives the remote call request to start the item detection service sent by ICU.
[0101] Step 109: ZCU parses the remote call start item detection service request and assembles it into a start item detection CAN signal.
[0102] Here, the assembled opening item detection CAN signal may be: Icb_AppItemsLeft_Req=0x1:Open / 0x2:Close.
[0103] Step 110: The ZCU sends the assembled opened item detection CAN signal to the CHC via the CAN bus.
[0104] Step 111: CHC receives the opened object detection CAN signal sent by ZCU via the CAN bus.
[0105] Step 112: The CHC drives the refrigerator to start the object detection function according to the received CAN signal, and drives the refrigerator to perform object detection.
[0106] Specifically, after receiving the opened object detection CAN signal, the CHC converts the opened object detection CAN signal into the internal control logic of the refrigerator, drives the refrigerator to turn on the object detection function, and drives the refrigerator to perform object detection.
[0107] Step 113: The refrigerator turns on the item detection function, performs item detection therein, and obtains the item detection switch state and the item detection state.
[0108] Item detection switch status (Icb_AppItemsLeft_Sts=0x1:Open / 0x2:Close), where a value of 1 means the item detection function is on, and a value of 2 means the item detection function is off.
[0109] Item detection status (Icb_AppItemsLeftcheck_Sts=0x1:Yes / 0x2:No), where a value of 1 indicates that there are items in the refrigerator, and a value of 2 indicates that the refrigerator is empty.
[0110] It should be noted that the refrigerator can also trigger the object detection function when it detects that the refrigerator door is opened or closed.
[0111] Step 114: The refrigerator sends the item detection switch status and the item detection status to the CHC via a hard line.
[0112] Step 115: The CHC receives the object detection switch state and the object detection state sent by the refrigerator through the hard line and assembles them into an object detection switch state CAN signal and an object detection state CAN signal.
[0113] Step 116: The CHC periodically sends the object detection switch status CAN signal and the object detection status CAN signal to the ZCU via the CAN bus.
[0114] Here, the CHC periodically sends the object detection switch state CAN signal and the object detection status CAN signal to ensure that the state of the soft switch follows the refrigerator object detection switch state, so that the on and off buttons of the soft switch can be used normally.
[0115] Step 117: The ZCU receives the object detection switch status CAN signal and the object detection status CAN signal sent by the CHC.
[0116] Step 118: ZCU determines whether the item detection switch status value and the item detection status value have changed. If so, the item detection switch status event and the item detection status event are triggered, and the item detection switch status CAN signal and the item detection status CAN signal are encapsulated and published to the user terminal via Ethernet; if there is no change, ZCU continues to judge.
[0117] Step 119: The ICU receives the item detection switch status and item detection status issued by the ZCU via Ethernet.
[0118] Specifically, the ICU receives the item detection switch status value and the item detection status value issued by the ZCU.
[0119] Step 120: The ICU outputs the switch status of the object detection function based on the received object detection switch status; based on the received object detection status, the ICU outputs the state of the refrigerator, wherein the state of the refrigerator includes: empty and loaded.
[0120] When the item detection switch status released by ZCU is on, the soft switch on the ICU interface remains at the rightmost position, indicating that the item detection function is on; when the item detection switch status released by ZCU is off, the soft switch on the ICU interface remains at the leftmost position, indicating that the item detection function is off; when the item detection switch status released by ZCU is on and the item detection status is empty, ICU can pop up a text reminder "The refrigerator is detected to be empty, please close the refrigerator in time", and there can be a "Whether to turn off the refrigerator item detection function" button on the pop-up box, or a separate voice reminder can be given, or a voice reminder can be given at the same time as a pop-up text reminder.
[0121] At this point, the detection of items in the car refrigerator is completed.
[0122] In addition, when the user clicks to turn off the refrigerator item detection function or when the user responds to the voice to turn off the refrigerator item detection function, in actual use operations, such as Figure 2 As shown, the user slides the soft switch displayed on the ICU screen in the car to the left to trigger the refrigerator item detection function shutdown task. The above-mentioned vehicle refrigerator item detection method also includes:
[0123] Step 121: ICU receives a task to shut down the refrigerator item detection function.
[0124] Step 122: ICU sends a query request for closing the item detection service to ZCU via Ethernet.
[0125] Step 123: The ZCU receives a query request for closing the item detection service sent by the user terminal via Ethernet.
[0126] Step 124: The ZCU queries the closed item detection service interface information from the service registration table.
[0127] Step 125: ZCU sends the queried closed item detection service interface information to ICU.
[0128] Step 126: The ICU receives the closed item detection service interface information sent by the zone controller via Ethernet.
[0129] Step 127: Based on the SOME / IP protocol, the ICU uses the queried closed item detection service interface information to remotely call the closed item detection service.
[0130] Step 128: The ZCU receives a remote call request for closing the object detection service sent by the user terminal via Ethernet.
[0131] Step 129: ZCU parses the remote call service request for shutting down object detection and assembles it into a CAN signal for shutting down object detection.
[0132] Step 130: The ZCU sends the assembled closed object detection CAN signal to the CHC.
[0133] Step 131: CHC receives the closed object detection CAN signal sent by ZCU via the CAN bus.
[0134] Step 132: The CHC drives the refrigerator to close the object detection according to the received closed object detection CAN signal.
[0135] Specifically, after receiving the closed object detection CAN signal, the CHC converts the closed object detection CAN signal into the internal control logic of the refrigerator to drive the refrigerator to close the object detection.
[0136] Step 133: CHC periodically sends the object detection switch status CAN signal to ZCU.
[0137] Here, CHC periodically sends the detection switch status CAN signal to make the state of the soft switch follow the refrigerator item detection switch state, so that the on and off buttons of the soft switch can be used normally.
[0138] Step 134: The ZCU receives the object detection switch status CAN signal sent by the CHC.
[0139] Step 135: ZCU determines whether the object detection switch status value has changed. If it has changed, it triggers an object detection switch status event, encapsulates the object detection switch status CAN signal, and publishes it to the user terminal ICU via Ethernet.
[0140] Step 136: ICU receives the item detection switch status issued by ZCU.
[0141] The process of calling the refrigerator item detection service by mobile phone APP and voice control system is the same, and only the same API (Application Programming Interface) needs to be called.
[0142] Based on the above method, the embodiment of the present disclosure also provides a vehicle refrigerator article detection device corresponding to the above method, including: a first receiving unit, a first sending unit, a second sending unit, a second receiving unit and an output unit; wherein:
[0143] A first receiving unit, used to receive a task to start the vehicle refrigerator item detection function;
[0144] The first sending unit is used to send an opening item detection service query request to the zone controller via Ethernet when receiving a task to open the vehicle refrigerator item detection function;
[0145] The second receiving unit is used to receive the information of starting the item detection service interface sent by the regional controller through Ethernet; and receive the item detection switch state and item detection state issued by the regional controller through Ethernet;
[0146] The second sending unit is used to send a remote call to start the item detection service request to the regional controller through Ethernet based on the SOME / IP protocol and using the queried start item detection service interface information, and subscribe to the item detection switch state event and the item detection state event;
[0147] The output unit is used to output the switch state of the object detection function based on the received object detection switch state; based on the received object detection state, output the state of the refrigerator, wherein the switch state of the object detection function includes: on and off, wherein the state of the refrigerator includes: empty and with objects.
[0148] Based on the above method, the embodiment of the present disclosure also provides another vehicle refrigerator detection device corresponding to the above method, comprising a first receiving unit, a query unit, a first sending unit, a conversion unit, a second sending unit, a second receiving unit and a triggering unit; wherein:
[0149] The first receiving unit is used to receive a query request for opening an item detection service sent by a user terminal via Ethernet; and receive a remote call request for opening an item detection service sent by a user terminal via Ethernet;
[0150] A query unit, used to query the information of the opening item detection service interface from the service registration table;
[0151] The first sending unit is used to send the queried information of opening the object detection service interface to the user terminal through Ethernet; and when the trigger unit triggers the object detection switch state event and the object detection state event, encapsulate the object detection switch state and the object detection state and publish them to the user terminal through Ethernet;
[0152] A conversion unit, used to parse a remote call to start the item detection service request and assemble it into an item detection start CAN signal, and encapsulate the item detection switch state CAN signal and the item detection state CAN signal to form Ethernet data;
[0153] A second sending unit, used to send the assembled opened object detection CAN signal to the refrigerator controller via a CAN bus;
[0154] A second receiving unit is used to receive an item detection switch state CAN signal and an item detection state CAN signal periodically sent by the refrigerator controller through a CAN bus, wherein the item detection switch state CAN signal contains an item detection switch state value, and the item detection state CAN signal contains an item detection state value;
[0155] The trigger unit is used to determine the object detection switch state value and the change of the object detection state value, and trigger the object detection switch state event and the object detection state event.
[0156] Based on the above method, the embodiment of the present disclosure also provides a third vehicle refrigerator article detection device corresponding to the above method, including: a first receiving unit, a control unit, a second receiving unit, a conversion unit and a sending unit; wherein:
[0157] A first receiving unit, used to receive an open object detection CAN signal sent by the zone controller via a CAN bus;
[0158] A control unit, for driving the refrigerator to start an item detection function and perform item detection through a hard line according to a received CAN signal;
[0159] A second receiving unit, used for receiving the item detection switch state and the item detection state sent by the refrigerator through a hard line;
[0160] A conversion unit, used for assembling the object detection switch state and the object detection state into corresponding CAN signals;
[0161] The sending unit is used to periodically send the object detection switch state CAN signal and the object detection state CAN signal to the zone controller through the CAN bus.
[0162] Based on the above method, the embodiment of the present disclosure also provides a vehicle refrigerator article detection system corresponding to the above method, including: a user terminal, a zone controller, a refrigerator controller and a refrigerator;
[0163] The user terminal is used to receive a task to start the item detection function of the vehicle refrigerator; send an item detection service query request to the regional controller via Ethernet; receive the item detection service interface information sent by the regional controller via Ethernet; based on the SOME / IP protocol, use the queried item detection service interface information to send a remote call item detection service request to the regional controller via Ethernet, and subscribe to the item detection switch state event and the item detection state event; receive the item detection switch state and the item detection state published by the regional controller via Ethernet; based on the received item detection switch state, output the item detection function switch state; based on the received item detection state, output the state of the refrigerator, wherein the item detection function switch state includes: on and off; the state of the refrigerator includes: empty and with items;
[0164] The area controller is used to receive an item detection service query request sent by a user terminal via Ethernet; query the item detection service interface information from a service registration table; send the query item detection service interface information to the user terminal via Ethernet; receive a remote item detection service request sent by the user terminal via Ethernet; parse the remote item detection service request and assemble it into an item detection CAN signal; send the assembled item detection CAN signal to the refrigerator controller via the CAN bus; receive an item detection switch status CAN signal and an item detection status CAN signal periodically sent by the refrigerator controller via the CAN bus; determine whether an item detection switch status value and an item detection status value have changed, trigger an item detection switch status event and an item detection status event, encapsulate the item detection switch status CAN signal and the item detection status CAN signal, and publish them to the user terminal via Ethernet, wherein the item detection switch status CAN signal contains the item detection switch status value, and the item detection status CAN signal contains the item detection status value;
[0165] The refrigerator controller is used to receive the object detection CAN signal sent by the zone controller through the CAN bus; according to the received CAN signal, drive the refrigerator to turn on the object detection function and perform object detection through the hard line; receive the object detection switch state and the object detection state sent by the refrigerator through the hard line and assemble them into corresponding CAN signals; send the object detection switch state CAN signal and the object detection state CAN signal to the zone controller periodically through the CAN bus;
[0166] The refrigerator is used to turn on the item detection function and perform item detection under the drive of the refrigerator controller, and feed back the item detection switch state and the item detection state to the refrigerator controller through a hard line.
[0167] Based on the same inventive concept as the above disclosed content, the present disclosure also provides an electronic device accordingly. The electronic device of the present disclosure embodiment includes at least one processor and at least one memory electrically connected, the memory is electrically connected to the processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the method as described above.
[0168] It should be noted that the electrical connection between the above-mentioned units does not necessarily mean the connection between lines. An indirect connection method can be applied to the embodiments of the present disclosure as long as the purpose of the present disclosure is achieved.
[0169] Based on the same inventive concept, the present disclosure also provides a computer storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.
[0170] Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A method for detecting items in a vehicle refrigerator, characterized in that: include: Receive the task of starting the vehicle refrigerator item detection function; Sending an item detection service query request to the zone controller via Ethernet; Receive the open item detection service interface information sent by the zone controller via Ethernet; Based on the SOME / IP protocol, the query information of the item detection service interface is used to send a remote call request for the item detection service to the regional controller via Ethernet, and subscribe to the item detection switch status event and the item detection status event; Receiving the object detection switch state issued by the zone controller via Ethernet, and outputting the object detection function switch state based on the object detection switch state, wherein the object detection function switch state includes: on and off; The object detection status published by the zone controller is received via Ethernet, and the state of the refrigerator is output based on the object detection status, wherein the state of the refrigerator includes: empty and loaded.
2. The method according to claim 1, characterized in that Output the status of the refrigerator based on the object detection status, including: When the item detection switch is on and the item detection status is empty, the user is reminded to check that the refrigerator is in an empty state, and please turn off the refrigerator in time.
3. The method according to claim 2, characterized in that Also includes: Receive the task of shutting down the refrigerator item detection function; Sending a closed item detection service query request to the zone controller via Ethernet; receiving closed article detection service interface information sent by the zone controller via Ethernet; Based on the SOME / IP protocol, the closed item detection service is remotely called using the queried closed item detection service interface information; ICU receives the item detection switch status issued by ZCU.
4. A method for detecting items in a vehicle refrigerator, characterized in that: include: Receiving an item detection service query request sent by a user terminal via Ethernet; Query the information of opening the item detection service interface from the service registry; Send the queried open item detection service interface information to the user terminal via Ethernet; Receiving a remote call to start an item detection service request sent by a user terminal via Ethernet; Parse the remote call to open item detection service request and assemble it into the open item detection CAN signal; Sending the assembled opened item detection CAN signal to the refrigerator controller via the CAN bus; Receiving an item detection switch state CAN signal and an item detection state CAN signal periodically sent by the refrigerator controller through the CAN bus, wherein the item detection switch state CAN signal contains an item detection switch state value, and the item detection state CAN signal contains an item detection state value; Determine whether the item detection switch status value and the item detection status value have changed, trigger the item detection switch status event and the item detection status event, encapsulate the item detection switch status CAN signal and the item detection status CAN signal into Ethernet data, and publish them to the user terminal via Ethernet.
5. The method according to claim 4, characterized in that Also includes: receiving a closed item detection service query request sent by a user terminal via Ethernet; Query the closed item detection service interface information from the service registry; Sending the queried closed item detection service interface information to the user terminal via Ethernet; Receiving a remote call to close an item detection service request sent by a user terminal via Ethernet; Parse the remote call to close the object detection service request and assemble it into a close object detection CAN signal; Sending the assembled closed item detection CAN signal to the refrigerator controller via the CAN bus; Receive the item detection switch status CAN signal periodically sent by the refrigerator controller via the CAN bus; Determine if the item detection switch status value has changed, trigger the item detection switch status event, encapsulate the item detection switch status CAN signal, and publish it to the user terminal via Ethernet.
6. A vehicle refrigerator article detection device, characterized in that: include: A first receiving unit, a first sending unit, a second sending unit, a second receiving unit and an output unit; wherein: A first receiving unit, used to receive a task to start the vehicle refrigerator item detection function; The first sending unit is used to send an opening item detection service query request to the zone controller via Ethernet when receiving a task to open the vehicle refrigerator item detection function; The second receiving unit is used to receive the information of starting the item detection service interface sent by the regional controller through Ethernet; and receive the item detection switch state and item detection state issued by the regional controller through Ethernet; The second sending unit is used to send a remote call to start the item detection service request to the regional controller through Ethernet based on the SOME / IP protocol and using the queried start item detection service interface information, and subscribe to the item detection switch state event and the item detection state event; The output unit is used to output the switch state of the object detection function based on the received object detection switch state; based on the received object detection state, output the state of the refrigerator, wherein the switch state of the object detection function includes: on and off, wherein the state of the refrigerator includes: empty and with objects.
7. A vehicle refrigerator article detection device, characterized in that: include: A first receiving unit, a query unit, a first sending unit, a conversion unit, a second sending unit, a second receiving unit and a triggering unit; wherein: The first receiving unit is used to receive a query request for opening an item detection service sent by a user terminal via Ethernet; and receive a remote call request for opening an item detection service sent by a user terminal via Ethernet; A query unit, used to query the information of the opening item detection service interface from the service registration table; The first sending unit is used to send the queried information of opening the object detection service interface to the user terminal through Ethernet; and when the trigger unit triggers the object detection switch state event and the object detection state event, encapsulate the object detection switch state and the object detection state and publish them to the user terminal through Ethernet; A conversion unit, used to parse a remote call to start the item detection service request and assemble it into an item detection start CAN signal, and encapsulate the item detection switch state CAN signal and the item detection state CAN signal to form Ethernet data; A second sending unit, used to send the assembled opened object detection CAN signal to the refrigerator controller via a CAN bus; A second receiving unit is used to receive an item detection switch state CAN signal and an item detection state CAN signal periodically sent by the refrigerator controller through a CAN bus, wherein the item detection switch state CAN signal contains an item detection switch state value, and the item detection state CAN signal contains an item detection state value; The trigger unit is used to determine the object detection switch state value and the change of the object detection state value, and trigger the object detection switch state event and the object detection state event.
8. A vehicle refrigerator article detection system, characterized in that: include: User terminal, zone controller, refrigerator controller and refrigerator; A user terminal is used to receive a task to start the vehicle refrigerator item detection function; Send an item detection service query request to the regional controller via Ethernet; receive the item detection service interface information sent by the regional controller via Ethernet; based on the SOME / IP protocol, use the queried item detection service interface information to send a remote item detection service request to the regional controller via Ethernet, and subscribe to item detection switch status events and item detection status events; receive the item detection switch status and item detection status published by the regional controller via Ethernet; output the item detection function switch status based on the received item detection switch status; Based on the received object detection status, output the state of the refrigerator, wherein the object detection function switch state includes: on and off; the state of the refrigerator includes: empty and loaded; The area controller is used to receive an item detection service query request sent by a user terminal via Ethernet; query the item detection service interface information from a service registration table; send the query item detection service interface information to the user terminal via Ethernet; receive a remote item detection service request sent by the user terminal via Ethernet; parse the remote item detection service request and assemble it into an item detection CAN signal; send the assembled item detection CAN signal to the refrigerator controller via the CAN bus; receive an item detection switch status CAN signal and an item detection status CAN signal periodically sent by the refrigerator controller via the CAN bus; determine whether an item detection switch status value and an item detection status value have changed, trigger an item detection switch status event and an item detection status event, encapsulate the item detection switch status CAN signal and the item detection status CAN signal, and publish them to the user terminal via Ethernet, wherein the item detection switch status CAN signal contains the item detection switch status value, and the item detection status CAN signal contains the item detection status value; The refrigerator controller is used to receive the object detection CAN signal sent by the zone controller through the CAN bus; according to the received CAN signal, drive the refrigerator to turn on the object detection function and perform object detection through the hard line; receive the object detection switch state and the object detection state sent by the refrigerator through the hard line and assemble them into corresponding CAN signals; send the object detection switch state CAN signal and the object detection state CAN signal to the zone controller periodically through the CAN bus; The refrigerator is used to turn on the item detection function and perform item detection under the drive of the refrigerator controller, and feed back the item detection switch state and the item detection state to the refrigerator controller through a hard line.
Citation Information
Patent Citations
Vehicle-mounted refrigerator control method and system based on CAN communication data
CN119178281A
Control system suitable for vehicle-mounted refrigerator
CN219318818U