Lock body, lock body system and control method
By combining digital and analog signals from DI and AI switches in the terminal device, the problem of inaccurate open/closed state recognition is solved, achieving higher recognition accuracy and security, and improving user experience and driving safety.
Patent Information
- Application Number
- CN202511750692.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-25
- Publication Date
- 2026-02-24
AI Technical Summary
The inaccurate identification of the opening and closing status of the opening and closing components in the terminal equipment, especially when the switch state changes abruptly due to poor contact of the DI switch return line harness or corrosion of the lock body, results in a poor user experience.
By combining DI and AI switches, and integrating digital and analog signals, the system ensures accurate identification of open/closed states in mechanical or electric locking bodies, and reduces false identifications in short-circuit or open-circuit conditions. Combined with security strategies, this improves identification accuracy and user experience.
It improves the accuracy of identifying open and closed states, reduces current loss, and takes safety measures in the event of a short circuit or open circuit to ensure user experience and driving safety.
Smart Images

Figure CN121556748A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a lock body, a lock body system, and a control method. Background Technology
[0002] Currently, opening and closing components in terminal devices, such as the four doors, hood, and tailgate of a vehicle, can be equipped with digital input (DI) switches. The state of the DI switch varies depending on the opening and closing state of the component. Taking the hood as an example, when the hood is open, the DI switch is closed and outputs a low-level signal; when the hood is closed, the DI switch is open and outputs a high-level signal. Thus, the vehicle's control unit can determine the opening and closing state of the hood based on the detected signals from the DI switches.
[0003] However, in some scenarios, such as when there is poor contact in the DI switch return loop harness or when corrosion of the lock body causes the switch state to change, the terminal device may not be able to accurately determine the opening and closing state of the opening and closing components, resulting in a poor user experience. Summary of the Invention
[0004] This application provides a lock body, a lock body system, and a control method, which enables terminal devices to more accurately determine the opening and closing state of the opening and closing components, thereby accurately indicating the opening and closing state of the opening and closing components to the user and improving the user experience.
[0005] In a first aspect, this application provides a mechanical lock body, which includes a DI switch and an analog input (AI) switch; wherein the DI switch is used to output a digital signal of a first level when in a closed state and to output a digital signal of a second level when in an open state; the AI switch is used to output an analog signal corresponding to a first resistance value when in a closed state and to output an analog signal corresponding to a second resistance value when in an open state.
[0006] The digital signal output by the DI switch and the analog signal output by the AI switch are used to determine the opening and closing state of the first opening and closing component equipped with the mechanical lock body, which is either closed or open.
[0007] In one possible implementation, the mechanical lock body and the first opening and closing component can be applied to a terminal device or a component of a terminal device, such as a vehicle, or components such as doors or hoods in a vehicle; or, for example, smart home appliances such as refrigerators.
[0008] The "open" state can also be understood as the "on" state.
[0009] The mechanical lock body provided in this application, when in a short-circuit or open-circuit state, has a resistance value corresponding to the analog signal detected by the first control unit from the AI switch that differs from a first resistance value or a second resistance value. This allows for accurate identification of the short-circuit or open-circuit state of the mechanical lock body, avoiding misidentification of the opening / closing state of the first opening / closing component due to these states. This improves the accuracy of opening / closing state identification and enhances the user experience.
[0010] In conjunction with the first aspect, in some possible implementations, the AI switch is connected in series with the first resistor and in parallel with the second resistor; wherein the second resistance value is the sum of the first resistance value of the first resistor and the third resistance value of the second resistor.
[0011] Alternatively, the AI switch is connected in series with the third resistor, and the AI switch and the third resistor connected in series are connected in parallel with the fourth resistor; wherein the resistance of the fourth resistor is the second resistance value, and the resistance of the third resistor and the fourth resistor connected in parallel is the first resistance value.
[0012] It is understood that the AI switch in the mechanical lock body can be set in either of these two ways so that when the AI switch is in the closed state, it can output an analog signal corresponding to the first resistance value, and when the AI switch is in the open state, it can output an analog signal corresponding to the second resistance value.
[0013] In conjunction with the first aspect, in some possible implementations, when the first switching component is in the open state, the DI switch and the AI switch are in the closed state, and the DI switch outputs a digital signal of the first level, and the AI switch outputs an analog signal corresponding to the first resistance value; when the first switching component is in the closed state, the DI switch and the AI switch are in the open state, and the DI switch outputs a digital signal of the second level, and the AI switch outputs an analog signal corresponding to the second resistance value.
[0014] Under normal circumstances, the first opening and closing component is a normally closed component, such as a car door, which is in the closed state most of the time. Therefore, by making the AI switch and DI switch open when the first opening and closing component is in the closed state, and making the AI switch and DI switch closed when the first opening and closing component is in the open state, the entire circuit can be in the open state more often, reducing current loss.
[0015] Secondly, this application provides a control method applied to a first control unit. The method includes: acquiring a digital signal output by a DI switch in a mechanical lock body and an analog signal output by an AI switch in a mechanical lock body; determining the opening and closing state of a first opening and closing component equipped with a mechanical lock body based on the digital signal output by the DI switch and the analog signal output by the AI switch, wherein the opening and closing state is a closed state or an open state.
[0016] In one possible implementation, the first control unit may be a terminal device or a component in the terminal device (e.g., a chip, chip system, circuit, software and / or hardware module, etc.).
[0017] The control method provided in this application allows the first control unit to more accurately determine the opening and closing state of the first opening and closing component based on the digital signal output by the DI switch and the analog signal output by the AI switch. That is, compared to determining the opening and closing state of the first opening and closing component solely based on digital signals, the use of both digital and analog signals allows for mutual verification, reducing the possibility of misidentifying the open circuit state of the mechanical lock body as an arbitrary opening and closing state of the first opening and closing component, thereby improving the accuracy of determining the opening and closing state of the first opening and closing component.
[0018] In conjunction with the second aspect, in some possible implementations, the opening and closing state of the first opening and closing component equipped with the mechanical lock body is determined based on the digital signal output by the DI switch and the analog signal output by the AI switch, including: determining the first opening and closing component to be in an open state based on the digital signal of a first level from the DI switch and the analog signal corresponding to the first resistance value from the AI switch; and determining the first opening and closing component to be in a closed state based on the digital signal of a second level from the DI switch and the analog signal corresponding to the second resistance value from the AI switch.
[0019] In this way, the first control unit can accurately identify the opening and closing state of the first opening and closing component.
[0020] In conjunction with the second aspect, in some possible implementations, the AI switch is connected in series with the first resistor and in parallel with the second resistor; wherein the second resistance value is the sum of the first resistance value of the first resistor and the third resistance value of the second resistor; or, the AI switch is connected in series with the third resistor, and the AI switch and the third resistor connected in series are connected in parallel with the fourth resistor; wherein the resistance value of the fourth resistor is the second resistance value, and the resistance value of the third resistor and the fourth resistor in parallel is the first resistance value.
[0021] In conjunction with the second aspect, in some possible implementations, the method further includes: determining, based on the detected digital signal of the second level and the analog signal corresponding to the fourth resistance value, that the connection state between the mechanical lock body and the first control unit is an open-circuit connection state; wherein the fourth resistance value is greater than the first resistance value and the fourth resistance value is greater than the second resistance value; and / or, determining, based on the detected digital signal of the first level and the analog signal corresponding to the fifth resistance value, that the connection state between the mechanical lock body and the first control unit is a short-circuit connection state; wherein the fifth resistance value is less than the first resistance value and the fifth resistance value is less than the second resistance value.
[0022] It can be understood that when the connection between the mechanical lock body and the first control unit is in an open circuit state, it is equivalent to the resistance in the circuit where the AI switch is located being infinitely large. Therefore, the fourth resistance value corresponding to the analog signal identified by the first control unit is greater than the second resistance value. When the connection between the mechanical lock body and the first control unit is in a short circuit state, it is equivalent to the resistance in the circuit where the AI switch is located being 0 or close to 0. Therefore, the fifth resistance value corresponding to the analog signal identified by the first control unit is less than the first resistance value.
[0023] In this way, the first control unit can accurately identify the open circuit and short circuit states of the mechanical lock body, thereby reducing the phenomenon of misidentifying the opening and closing state of the first opening and closing component caused by the open circuit and short circuit states of the mechanical lock body.
[0024] In conjunction with the second aspect, in some possible implementations, the method further includes: when it is determined that the connection state between the mechanical lock body and the first control unit is an open circuit connection state or a short circuit connection state, sending first information, the first information being used to indicate a fault in the first opening and closing component.
[0025] Here, the first information can be understood as instructions, signals, etc. That is, the first control unit can indicate the fault status of the first opening and closing component to other devices or modules so that other devices or modules can take certain safety measures.
[0026] In conjunction with the second aspect, in some possible implementations, the first opening / closing component is applied to a vehicle; the method further includes: when the vehicle is in motion, if it is determined that the connection state between the mechanical lock body and the first control unit is an open circuit or a short circuit, or if it is determined that the first opening / closing component is in an open state, then executing a first safety strategy; and / or, when the vehicle is stationary, if it is determined that the connection state between the mechanical lock body and the first control unit is an open circuit or a short circuit, or if it is determined that the first opening / closing component is in an open state, then upon receiving a first instruction instructing the vehicle to move, executing a second safety strategy.
[0027] It is understandable that when the mechanical lock body is in a short-circuit or open-circuit state, it may be unable to accurately identify the open or closed state of the first opening and closing component. When the first opening and closing component is in the open state, there may be a safety hazard. Therefore, taking appropriate safety measures when the mechanical lock body is in a short-circuit or open-circuit state, or when the first opening and closing component is in the open state, can improve driving safety.
[0028] In conjunction with the second aspect, in some possible implementations, the first safety strategy includes one or more of the following: pulling over to the side of the road; switching the vehicle mode to the target vehicle mode; or controlling the vehicle speed to be less than a first threshold; the second safety strategy includes: controlling the output of a first prompt, the first prompt being used to remind the user of an abnormality in the first opening / closing component; and / or controlling the vehicle to remain stationary.
[0029] The target vehicle mode can be either intelligent driving mode or human-driven mode. The first threshold can be a preset positive number. The first prompt can be a prompt output through any means such as interface display or voice prompt.
[0030] This method enables appropriate safety measures to be taken when the vehicle is in motion or stationary (i.e., parked), thereby improving safety.
[0031] In conjunction with the second aspect, in some possible implementations, the method further includes: receiving a first input from a user, the first input indicating that the user has confirmed an abnormal state of the first opening / closing component; and, in response to the first input, controlling the vehicle to move upon receiving a second instruction instructing the vehicle to move.
[0032] In other words, the vehicle can drive normally after the user confirms the abnormal state of the first opening and closing component, which can improve the user experience.
[0033] In conjunction with the second aspect, in some possible implementations, the method further includes: switching the digital signal output by the DI switch from a first level to a second level to wake up the vehicle; and / or switching the digital signal output by the DI switch from a second level to a first level to wake up the vehicle.
[0034] In this way, even when a vehicle uses a mechanical lock body, bilateral wake-up can be achieved based on the ID switch within the mechanical lock body. For example, when the first opening / closing component switches from an open state to a closed state, the first control unit detects a change in the digital signal level from a first level to a second level, which can wake up the entire vehicle; conversely, when the first opening / closing component switches from a closed state to an open state, the first control unit detects a change in the digital signal level from a second level to a first level, which can also wake up the entire vehicle. This not only meets the vehicle's security requirements but also allows the first application to display the correct status of the first opening / closing component in real time, improving the user experience.
[0035] Thirdly, this application provides a mechanical lock body system, including a mechanical lock body and a first control unit. The mechanical lock body includes a DI switch and an AI switch; the DI switch and the AI switch are respectively connected to the first control unit.
[0036] The DI switch is used to output a digital signal of a first level when closed and a digital signal of a second level when open; the AI switch is used to output an analog signal corresponding to a first resistance when closed and an analog signal corresponding to a second resistance value when open; the first control unit is used to acquire the digital signal output by the DI switch and the analog signal output by the AI switch, and based on the digital signal output by the DI switch and the analog signal output by the AI switch, determine the opening and closing state of the first opening and closing component with the mechanical lock body, wherein the opening and closing state is either closed or open.
[0037] In one possible implementation, the mechanical lock system can be applied to a terminal device or a component of a terminal device. For example, it can be applied to smart home appliances such as vehicles and refrigerators.
[0038] In conjunction with the third aspect, in some possible implementations, the AI switch is connected in series with the first resistor and in parallel with the second resistor, the second resistance being the sum of the first resistance and the third resistance of the second resistor; or, the AI switch is connected in series with the third resistor, and the AI switch and the third resistor connected in series are connected in parallel with the fourth resistor; wherein, the resistance of the fourth resistor is the second resistance, and the resistance of the third resistor and the fourth resistor in parallel is the first resistance.
[0039] In conjunction with the third aspect, in some possible implementations, when the first switching component is in the open state, the DI switch is used to output a digital signal of the first level, and the AI switch is used to output an analog signal corresponding to the first resistance value; correspondingly, the first control unit is used to: determine that the first switching component is in the open state based on the digital signal of the first level and the analog signal corresponding to the first resistance value.
[0040] When the first switching component is in the closed state, the DI switch is used to output a digital signal of the second level, and the AI switch is used to output an analog signal corresponding to the second resistance value; correspondingly, the first control unit is used to determine that the first switching component is in the closed state based on the digital signal of the second level and the analog signal corresponding to the second resistance value.
[0041] In conjunction with the third aspect, in some possible implementations, the first control unit is used to: determine, based on the detected digital signal of the second level and the analog signal corresponding to the fourth resistance value, that the connection state between the mechanical lock body and the first control unit is an open circuit connection state; wherein, the fourth resistance value is greater than the first resistance value and the fourth resistance value is greater than the second resistance value; and determine, based on the detected digital signal of the first level and the analog signal corresponding to the fifth resistance value, that the connection state between the mechanical lock body and the first control unit is a short circuit connection state; wherein, the fifth resistance value is less than the first resistance value and the fifth resistance value is less than the second resistance value.
[0042] In conjunction with the third aspect, in some possible implementations, the first control unit is used to: send first information when the connection between the mechanical lock body and the first control unit is in an open circuit connection state or a short circuit connection state, the first information being used to indicate a fault in the first opening and closing component.
[0043] In conjunction with the third aspect, in some possible implementations, the first opening and closing component is applied to the vehicle; the first control unit is configured to: when the vehicle is in motion, if it is determined that the connection state between the mechanical lock body and the first control unit is an open circuit connection state or a short circuit connection state, execute a first safety strategy; and / or, when the vehicle is stationary, if it is determined that the connection state between the mechanical lock body and the first control unit is an open circuit connection state or a short circuit connection state, execute a second safety strategy upon receiving a first instruction instructing the vehicle to move.
[0044] In conjunction with the third aspect, in some possible implementations, the first safety strategy includes one or more of the following: pulling over to the side of the road; switching the vehicle mode to the target vehicle mode; or controlling the vehicle speed to be less than a first threshold; the second safety strategy includes: controlling the output of a first prompt, the first prompt being used to remind the user of an abnormality in the first opening and closing component; and / or controlling the vehicle to remain stationary.
[0045] In conjunction with the third aspect, in some possible implementations, the first control unit is configured to: receive a first input from a user, the first input indicating that the user has confirmed an abnormal state of the first opening / closing component; and, in response to the first input, control the vehicle to drive upon receiving a second instruction instructing the vehicle to drive.
[0046] In conjunction with the third aspect, in some possible implementations, the first control unit is used to: switch the digital signal output by the DI switch from a first level to a second level to wake up the vehicle; and / or switch the digital signal output by the DI switch from a second level to a first level to wake up the vehicle.
[0047] Fourthly, this application provides an electrically operated magnetic lock body, comprising: a first DI switch, a first AI switch, a second DI switch, and a second AI switch; wherein, the first DI switch is configured to: output a first-level digital signal in a closed state and output a second-level digital signal in an open state; the first AI switch is configured to: output an analog signal corresponding to a first resistance value in a closed state and output an analog signal corresponding to a second resistance value in an open state; the second DI switch is configured to: output a third-level digital signal in a closed state and output a fourth-level digital signal in an open state; the second AI switch is configured to: output an analog signal corresponding to a sixth resistance value in a closed state and output an analog signal corresponding to a seventh resistance value in an open state.
[0048] The digital signals output by the first DI switch and the second DI switch, as well as the analog signals output by the first AI switch and the second AI switch, are used to: confirm the opening and closing state of the second opening and closing component equipped with an electric suction lock body. The opening and closing state includes a closed state, a half-open state, or an open state.
[0049] In one possible implementation, the electrically operated magnetic lock body and the second opening and closing component can be applied to a terminal device or a component of a terminal device, such as a vehicle, or components such as doors or hoods in a vehicle; or, for example, smart home appliances such as refrigerators.
[0050] Among them, the first DI switch and the first AI switch can also be understood as fully locked switches; the second AI switch and the second DI switch can also be understood as partially locked switches.
[0051] The electric magnetic lock body provided in this application exhibits different resistance values for the analog signals detected by the second control unit from the first AI switch when the electric magnetic lock body is in a short-circuit or open-circuit state, and also different resistance values for the analog signals detected by the second control unit from the second AI switch. This allows for accurate identification of the short-circuit or open-circuit state of the electric magnetic lock body, avoiding misidentification of the opening / closing state of the second opening / closing component caused by short-circuit or open-circuit states. This improves the accuracy of opening / closing state identification and enhances the user experience.
[0052] In conjunction with the fourth aspect, in some possible implementations, the first AI switch satisfies any of the following:
[0053] The first AI switch is connected in series with the first resistor and in parallel with the second resistor, the second resistance being the sum of the first resistance and the third resistance of the second resistor; or,
[0054] The first AI switch is connected in series with the third resistor, and the first AI switch and the third resistor, which are connected in series, are connected in parallel with the fourth resistor. The resistance of the fourth resistor is the second resistance value, and the resistance of the third resistor and the fourth resistor in parallel is the first resistance value.
[0055] The second AI switch satisfies any of the following:
[0056] The second AI switch is connected in parallel with the fifth resistor and in series with the sixth resistor. The seventh resistance is the sum of the sixth resistance of the sixth resistor and the eighth resistance of the fifth resistor; or,
[0057] The second AI switch is connected in series with the seventh resistor, and the second AI switch and the seventh resistor, which are connected in series, are connected in parallel with the eighth resistor. The resistance of the eighth resistor is the seventh resistance value, and the resistance of the seventh resistor and the eighth resistor in parallel is the sixth resistance value.
[0058] It is understandable that the first AI switch in the electrically operated magnetic lock body can be configured in either of the two methods described above, so that when the first AI switch is in the closed state, it can output an analog signal corresponding to a first resistance value, and when the first AI switch is in the open state, it can output an analog signal corresponding to a second resistance value. Similarly, the second AI switch in the electrically operated magnetic lock body can be configured in either of the two methods described above, so that when the second AI switch is in the closed state, it can output an analog signal corresponding to a sixth resistance value, and when the second AI switch is in the open state, it can output an analog signal corresponding to a seventh resistance value.
[0059] In conjunction with the fourth aspect, in some possible implementations, when the second switching component is in the open state, the first DI switch, the second DI switch, the first AI switch and the second AI switch are in the closed state, and the first DI switch outputs a digital signal of the first level, the second DI switch outputs a digital signal of the third level, the first AI switch outputs an analog signal corresponding to the first resistance value, and the second AI switch outputs an analog signal corresponding to the sixth resistance value.
[0060] When the second switching component is in a half-open state, the first DI switch and the first AI switch are closed, the second DI switch and the second AI switch are open, and the first DI switch outputs a digital signal of a first level, the first AI switch outputs an analog signal corresponding to a first resistance value, the second DI switch outputs a digital signal of a fourth level, and the second AI switch outputs an analog signal corresponding to a seventh resistance value; or,
[0061] When the second switching component is in the closed state, the first DI switch, the second DI switch, the first AI switch and the second AI switch are in the open state, and the first DI switch outputs a digital signal of the second level, the first AI switch outputs an analog signal corresponding to the second resistance value, the second DI switch outputs a digital signal of the fourth level, and the second AI switch outputs an analog signal corresponding to the seventh resistance value.
[0062] It is understandable that, under normal circumstances, the second opening and closing component is a normally closed component, such as a car door, which is in the closed state most of the time. Therefore, by making the first DI switch, the second DI switch, the first AI switch, and the second AI switch open when the second opening and closing component is in the open state, the first DI switch, the second DI switch, the first AI switch, and the second AI switch are in the closed state, the entire circuit can be in the open state more often, reducing current loss.
[0063] Fifthly, this application provides another control method applied to a second control unit. The method includes: acquiring a digital signal output by a first DI switch, an analog signal output by a first AI switch, a digital signal output by a second DI switch, and an analog signal output by a second AI switch in an electrically operated magnetic lock body; and determining the opening and closing state of a second opening and closing component equipped with an electrically operated magnetic lock body based on the digital signals output by the first DI switch and the second DI switch, as well as the analog signals output by the first AI switch and the second AI switch. The opening and closing state is a closed state, an open state, or a half-open state.
[0064] In one possible implementation, the second control unit can be a terminal device or a component in the terminal device (e.g., a chip, chip system, circuit, software and / or hardware module, etc.).
[0065] The control method provided in this application allows the second control unit to more accurately determine the opening and closing state of the second opening and closing component based on the digital signals output by the first DI switch and the second DI switch, as well as the analog signals output by the first AI switch and the second AI switch. That is, compared to determining the opening and closing state of the second opening and closing component solely based on digital signals, the combination of multiple signals allows for mutual verification, reducing the possibility of misidentifying the open circuit state of the electric magnetic lock body as an arbitrary opening and closing state of the second opening and closing component, thereby improving the accuracy of determining the opening and closing state of the second opening and closing component.
[0066] In conjunction with the fifth aspect, in some possible implementations, determining the opening and closing state of the second opening and closing assembly, which is equipped with an electrically operated magnetic lock body, includes:
[0067] Based on the digital signal at the first level from the first DI switch, the analog signal corresponding to the first resistance value from the first AI switch, the digital signal at the third level from the second DI switch, and the analog signal corresponding to the sixth resistance value from the second AI switch, the second switching component is determined to be in the open state.
[0068] Based on the digital signal at a first level from the first DI switch, the analog signal corresponding to the first resistance value from the first AI switch, the digital signal at a fourth level from the second DI switch, and the analog signal corresponding to the seventh resistance value from the second AI switch, the second switching component is determined to be in a half-open state; or,
[0069] Based on the digital signal at the second level from the first DI switch, the analog signal corresponding to the second resistance value from the first AI switch, the digital signal at the fourth level from the second DI switch, and the analog signal corresponding to the seventh resistance value from the second AI switch, the second switching component is determined to be in the closed state.
[0070] In this way, the second control unit can accurately identify the opening and closing state of the second opening and closing component.
[0071] In conjunction with the fifth aspect, in some possible implementations, the first AI switch satisfies any of the following:
[0072] The first AI switch is connected in series with the first resistor and in parallel with the second resistor, the second resistance being the sum of the first resistance and the third resistance of the second resistor; or,
[0073] The first AI switch is connected in series with the third resistor, and the first AI switch and the third resistor, which are connected in series, are connected in parallel with the fourth resistor. The resistance of the fourth resistor is the second resistance value, and the resistance of the third resistor and the fourth resistor in parallel is the first resistance value.
[0074] The second AI switch satisfies any of the following:
[0075] The second AI switch is connected in parallel with the fifth resistor and in series with the sixth resistor. The seventh resistance is the sum of the sixth resistance of the sixth resistor and the eighth resistance of the fifth resistor; or,
[0076] The second AI switch is connected in series with the seventh resistor, and the second AI switch and the seventh resistor, which are connected in series, are connected in parallel with the eighth resistor. The resistance of the eighth resistor is the seventh resistance value, and the resistance of the seventh resistor and the eighth resistor in parallel is the sixth resistance value.
[0077] In conjunction with the fifth aspect, in some possible implementations, the method further includes at least one of the following:
[0078] Based on the digital signal at the second level from the first DI switch and the analog signal corresponding to the fourth resistance value from the first AI switch, the connection state between the first DI switch and the first AI switch and the second control unit is determined to be an open circuit connection state; wherein, the fourth resistance value is greater than the first resistance value and the fourth resistance value is greater than the second resistance value;
[0079] Based on the digital signal at the fourth level from the second DI switch and the analog signal corresponding to the ninth resistance value from the second AI switch, the connection state between the second DI switch, the second AI switch and the second control unit is determined to be an open circuit connection state; wherein, the ninth resistance value is greater than the sixth resistance value and the ninth resistance value is greater than the seventh resistance value.
[0080] Based on the digital signal at a first level from the first DI switch and the analog signal corresponding to the fifth resistance value from the first AI switch, the connection state between the first DI switch and the first AI switch and the second control unit is determined to be a short-circuit connection state; wherein, the fifth resistance value is less than the first resistance value, and the fifth resistance value is less than the second resistance value; or,
[0081] Based on the digital signal at the third level from the second DI switch and the analog signal corresponding to the tenth resistance value from the second AI switch, the connection state between the second DI switch, the second AI switch and the second control unit is determined to be a short-circuit connection state; wherein, the tenth resistance value is less than the sixth resistance value and the tenth resistance value is less than the seventh resistance value.
[0082] In this way, the second control unit can accurately identify the open and short circuit states of the fully locked switches (the first AI switch and the first DI switch), and can also accurately identify the open and short circuit states of the partially locked switches (the second AI switch and the second DI switch), thereby reducing the phenomenon of misidentifying the opening and closing state of the second opening and closing component caused by the open and short circuit states of the fully locked switches or partially locked switches.
[0083] In conjunction with the fifth aspect, in some possible implementations, the method further includes: when the connection between the switch and the second control unit in the electric magnetic locking body is in an open circuit or short circuit state, controlling the transmission of second information, the second information being used to indicate an abnormality in the second opening and closing component.
[0084] The second information can be understood as instructions, signals, etc. That is, the second control unit can indicate the fault status of the second opening and closing component to other devices or modules so that other devices or modules can take certain safety measures.
[0085] In conjunction with the fifth aspect, in some possible implementations, the second opening / closing component is applied to a vehicle; the method further includes: when the vehicle is in motion, if it is determined that the connection between the switch and the second control unit in the electric magnetic locking body is in an open circuit or short circuit state, or if it is determined that the electric magnetic locking body is in a half-open or open state, then a third safety strategy is executed; and / or, when the vehicle is stationary, if it is determined that the connection between the switch and the second control unit in the electric magnetic locking body is in an open circuit or short circuit state, or if it is determined that the electric magnetic locking body is in a half-open or open state, upon receiving a third instruction instructing the vehicle to move, a fourth safety strategy is executed.
[0086] It is understandable that when the electrically operated locking body is in a short-circuit or open-circuit state, it may be unable to accurately identify the open / closed state of the second opening / closing component. If the second opening / closing component is in the open state, there may be a safety hazard. Therefore, taking appropriate safety measures when the electrically operated locking body is in a short-circuit or open-circuit state, or when the second opening / closing component is in the open state, can improve driving safety.
[0087] In conjunction with the fifth aspect, in some possible implementations, the third safety strategy includes one or more of the following: pulling over to the side of the road; switching the vehicle mode to the target vehicle mode; or controlling the vehicle speed to be less than a first threshold; the fourth safety strategy includes: controlling the output of a first prompt, the first prompt being used to remind the user of a second opening / closing component malfunction; and / or controlling the vehicle to remain stationary.
[0088] In conjunction with the fifth aspect, in some possible implementations, the method further includes: receiving a second input from a user, the second input indicating that the user has confirmed an abnormal state of the second opening / closing component; and, in response to the second input, controlling the vehicle to move upon receiving a fourth instruction instructing the vehicle to move.
[0089] In other words, the vehicle can drive normally after the user confirms the abnormal state of the second opening and closing component, which can improve the user experience.
[0090] In conjunction with the fifth aspect, in some possible implementations, the method further includes at least one of the following:
[0091] The digital signal output by the first DI switch is switched from the first level to the second level, waking up the entire vehicle.
[0092] The vehicle is woken up by switching the digital signal output from the first DI switch from the second level to the first level.
[0093] The vehicle is woken up by switching the digital signal output from the second DI switch from the third level to the fourth level; or...
[0094] The digital signal output from the second DI switch is switched from the fourth level to the third level, waking up the entire vehicle.
[0095] In this way, when the vehicle uses an electrically operated magnetic lock, the switching between the closed and partially open states, as well as between the partially open and open states of the second opening / closing component, can wake up the entire vehicle. This ensures that changes in the opening / closing state of the second opening / closing component can activate the vehicle, allowing it to promptly instruct the first application on its opening / closing status. The first application can then display the accurate opening / closing status of the second opening / closing component in real time, improving the user experience.
[0096] Sixthly, this application provides an electrically operated magnetic lock body system, including an electrically operated magnetic lock body and a second control unit. The electrically operated magnetic lock body includes: a first DI switch, a first AI switch, a second DI switch, and a second AI switch; the first DI switch, the first AI switch, the second DI switch, and the second AI switch are respectively connected to the second control unit;
[0097] The first DI switch is used to output a first-level digital signal when closed and a second-level digital signal when open. The first AI switch is used to output an analog signal corresponding to a first resistance value when closed and an analog signal corresponding to a second resistance value when open. The second DI switch is used to output a third-level digital signal when closed and a fourth-level digital signal when open. The second AI switch is used to output an analog signal corresponding to a sixth resistance value when closed and an analog signal corresponding to a seventh resistance value when open. The second control unit is used to acquire the digital signals output by the first DI switch and the second DI switch, as well as the analog signals output by the first AI switch and the second AI switch. Based on the digital signals output by the first DI switch and the second DI switch, as well as the analog signals output by the first AI switch and the second AI switch, the control unit confirms the opening and closing state of the second opening and closing component equipped with the electric suction lock body. The opening and closing state includes a closed state, a half-open state, or an open state.
[0098] In one possible implementation, the electrically operated magnetic locking system can be applied to a terminal device or a component of a terminal device. For example, it can be applied to smart home appliances such as vehicles and refrigerators.
[0099] In conjunction with the sixth aspect, in some possible implementations, the first AI switch satisfies any of the following: the first AI switch is connected in series with the first resistor and in parallel with the second resistor, the second resistance being the sum of the first resistance of the first resistor and the third resistance of the second resistor; or, the first AI switch is connected in series with the third resistor, and the first AI switch and the third resistor, which are connected in series, are connected in parallel with the fourth resistor, the fourth resistor having a second resistance, and the third resistor having a first resistance when connected in parallel with the fourth resistor.
[0100] The second AI switch satisfies any of the following: the second AI switch is connected in parallel with the fifth resistor, and the sixth resistor is connected in series, with the seventh resistance being the sum of the sixth resistance of the sixth resistor and the eighth resistance of the fifth resistor; or, the second AI switch is connected in series with the seventh resistor, and the second AI switch and the seventh resistor, which are connected in series, are connected in parallel with the eighth resistor, with the resistance of the eighth resistor being the seventh resistance, and the resistance of the seventh resistor and the eighth resistor when connected in parallel being the sixth resistance.
[0101] In conjunction with the sixth aspect, in some possible implementations, when the second switching component is in the open state, the first DI switch, the first AI switch, the second DI switch, and the second AI switch are in the closed state; and the first DI switch outputs a digital signal of a first level, the first AI switch outputs an analog signal corresponding to a first resistance value, the second DI switch outputs a digital signal of a third level, and the second AI switch outputs an analog signal corresponding to a sixth resistance value.
[0102] Correspondingly, the second control unit is used to: determine that the second opening and closing component is in the open state based on the digital signal of the first level from the first DI switch, the analog signal corresponding to the first resistance value from the first AI switch, the digital signal of the third level from the second DI switch, and the analog signal corresponding to the sixth resistance value from the second AI switch;
[0103] When the second switching component is in a half-open state, the first DI switch and the first AI switch are in a closed state, and the second DI switch and the second AI switch are in an open state; and the first DI switch outputs a digital signal of a first level, the first AI switch outputs an analog signal corresponding to a first resistance value, the second DI switch outputs a digital signal of a fourth level, and the second AI switch outputs an analog signal corresponding to a seventh resistance value;
[0104] Correspondingly, the second control unit is configured to: determine that the second switching component is in a half-open state based on the digital signal at a first level from the first DI switch, the analog signal corresponding to the first resistance value from the first AI switch, the digital signal at a fourth level from the second DI switch, and the analog signal corresponding to the seventh resistance value from the second AI switch; or,
[0105] When the second switching component is in the closed state, the first DI switch, the first AI switch, the second DI switch, and the second AI switch are in the open state; and the first DI switch outputs a digital signal of the second level, the first AI switch outputs an analog signal corresponding to the second resistance value, the second DI switch outputs a digital signal of the fourth level, and the second AI switch outputs an analog signal corresponding to the seventh resistance value.
[0106] Correspondingly, the second control unit is used to determine that the second switching component is in a closed state based on the digital signal of the second level from the first DI switch, the analog signal corresponding to the second resistance value from the first AI switch, the digital signal of the fourth level from the second DI switch, and the analog signal corresponding to the seventh resistance value from the second AI switch.
[0107] In conjunction with the sixth aspect, in some possible implementations, the second control unit is further configured to:
[0108] Based on the digital signal at the second level from the first DI switch and the analog signal corresponding to the fourth resistance value from the first AI switch, the connection state between the first DI switch and the first AI switch and the second control unit is determined to be an open circuit connection state; wherein, the fourth resistance value is greater than the first resistance value and the fourth resistance value is greater than the second resistance value;
[0109] Based on the digital signal at the fourth level from the second DI switch and the analog signal corresponding to the ninth resistance value from the second AI switch, the connection state between the second DI switch, the second AI switch and the second control unit is determined to be an open circuit connection state; wherein, the ninth resistance value is greater than the sixth resistance value and the ninth resistance value is greater than the seventh resistance value.
[0110] Based on the digital signal at a first level from the first DI switch and the analog signal corresponding to the fifth resistance value from the first AI switch, the connection state between the first DI switch and the first AI switch and the second control unit is determined to be a short-circuit connection state; wherein, the fifth resistance value is less than the first resistance value, and the fifth resistance value is less than the second resistance value; or,
[0111] Based on the digital signal at the third level from the second DI switch and the analog signal corresponding to the tenth resistance value from the second AI switch, the connection state between the second DI switch, the second AI switch and the second control unit is determined to be a short-circuit connection state; wherein, the tenth resistance value is less than the sixth resistance value and the tenth resistance value is less than the seventh resistance value.
[0112] In conjunction with the sixth aspect, in some possible implementations, the second control unit is further configured to: control the transmission of second information when the connection between the switch and the second control unit in the electric magnetic locking body is in an open circuit or short circuit state, the second information being used to indicate an abnormality in the second opening and closing component.
[0113] In conjunction with the sixth aspect, in some possible implementations, the second opening / closing assembly is applied to a vehicle; the second control unit is also used for:
[0114] When the vehicle is in motion, if it is determined that the connection between the switch and the second control unit in the electric magnetic lock body is in an open circuit or short circuit state, or if it is determined that the electric magnetic lock body is in a half-open or open state, then the third safety strategy is executed; and / or, when the vehicle is stationary, if it is determined that the connection between the switch and the second control unit in the electric magnetic lock body is in an open circuit or short circuit state, or if it is determined that the electric magnetic lock body is in a half-open or open state, then upon receiving a third instruction instructing the vehicle to move, the fourth safety strategy is executed.
[0115] In conjunction with the sixth aspect, in some possible implementations, the third safety strategy includes one or more of the following: pulling over to the side of the road; switching the vehicle mode to the target vehicle mode; or controlling the vehicle speed to be less than a first threshold; the fourth safety strategy includes: controlling the output of a first prompt, the first prompt being used to remind the user of a second opening / closing component malfunction; and / or controlling the vehicle to remain stationary.
[0116] In conjunction with the sixth aspect, in some possible implementations, the second control unit is further configured to: receive a second input from a user, the second input indicating that the user has confirmed an abnormal state of the second opening / closing component; and, in response to the second input, control the vehicle to move upon receiving a fourth instruction instructing the vehicle to move.
[0117] In conjunction with the sixth aspect, in some possible implementations, the second control unit is further configured to:
[0118] The digital signal output by the first DI switch is switched from the first level to the second level, waking up the entire vehicle.
[0119] The vehicle is woken up by switching the digital signal output from the first DI switch from the second level to the first level.
[0120] The vehicle is woken up by switching the digital signal output from the second DI switch from the third level to the fourth level; or...
[0121] The digital signal output from the second DI switch is switched from the fourth level to the third level, waking up the entire vehicle.
[0122] Seventhly, this application provides a control device capable of implementing the method in the second aspect or any possible implementation of the second aspect, or implementing the method in the fifth aspect or any possible implementation of the fifth aspect. The device includes corresponding units (or modules) for performing the above-described methods. The units (or modules) included in the device can be implemented in software and / or hardware.
[0123] Eighthly, this application provides another control device, including at least one processor, each of the at least one processor being configured to implement the method in the second aspect or any possible implementation of the second aspect, or the method in the fifth aspect or any possible implementation of the fifth aspect.
[0124] Optionally, the device may also include a communication interface (or transceiver), with the processor coupled to the communication interface.
[0125] Ninthly, this application provides a terminal device that includes a first opening / closing component and a mechanical lock body according to the first aspect; or includes a first opening / closing component and a mechanical lock body system according to the third aspect. Alternatively, the terminal device includes a second opening / closing component and an electrically operated locking body according to the fourth aspect; or includes a second opening / closing component and an electrically operated locking body system according to the sixth aspect.
[0126] In a tenth aspect, this application provides a chip system including at least one processor for supporting the implementation of the methods shown in the second aspect or any possible implementation of the second aspect, or in the fifth aspect or any possible implementation of the fifth aspect.
[0127] In one possible design, the chip system also includes a memory for storing program instructions and data, which may be located inside or outside the processor.
[0128] The chip system can consist of chips or include chips and other discrete components.
[0129] In one aspect, this application provides a computer-readable storage medium storing a computer program (also referred to as code or instructions) that, when executed by a processor, enables the implementation of the methods in any possible implementation of the second aspect or the fifth aspect.
[0130] In a twelfth aspect, this application provides a computer program product comprising: a computer program (also referred to as code or instructions) that, when executed, enables the implementation of the methods in the second aspect or any possible implementation of the second aspect, or the methods in the fifth aspect and any possible implementation of the fifth aspect.
[0131] It should be understood that the third aspect of this application corresponds to the technical solution of the first or second aspect of this application, the sixth aspect of this application corresponds to the technical solution of the fourth or fifth aspect of this application, and the seventh to twelfth aspects of this application correspond to the technical solutions of any one of the first to sixth aspects of this application. The beneficial effects obtained by each aspect and the corresponding feasible implementation are similar, and will not be described again. Attached Figure Description
[0132] Figure 1 A schematic block diagram of an intelligent driving device provided in an embodiment of this application;
[0133] Figure 2 A schematic block diagram of an intelligent driving system provided in an embodiment of this application;
[0134] Figure 3 A schematic diagram illustrating an application scenario provided in an embodiment of this application;
[0135] Figure 4 This is a schematic block diagram of a mechanical lock system;
[0136] Figure 5This is a schematic block diagram of an electrically operated magnetic locking system;
[0137] Figure 6 A flowchart illustrating a control method provided in an embodiment of this application;
[0138] Figure 7 Schematic block diagrams of two mechanical lock body systems provided in the embodiments of this application;
[0139] Figure 8 A schematic diagram of the vehicle control process provided in the embodiments of this application;
[0140] Figure 9 A schematic diagram of a pop-up window provided in an embodiment of this application;
[0141] Figure 10 A flowchart illustrating another control method provided in an embodiment of this application;
[0142] Figure 11 A schematic block diagram of a first type of electrically operated magnetic locking system provided in the embodiments of this application;
[0143] Figure 12 A schematic block diagram of a second electrically operated magnetic locking system provided in the embodiments of this application;
[0144] Figure 13 A schematic block diagram of a control device provided in an embodiment of this application;
[0145] Figure 14 A schematic block diagram of another control device provided in an embodiment of this application. Detailed Implementation
[0146] To facilitate understanding of the embodiments of this application, the following points will be explained first:
[0147] First, in the embodiments of this application, the indication includes explicit indication (also known as direct indication) and implicit indication (also known as indirect indication). Explicit indication information A refers to including information A; implicit indication information A refers to indicating information A through the correspondence between information A and information B and direct indication information B. The correspondence between information A and information B can be predefined, pre-stored, pre-burned, or pre-configured; or it can refer to indicating information A through information B and preset rules.
[0148] Second, in the embodiments of this application, information C is used to determine information D, which includes determining information D based solely on information C, as well as determining it based on information C and other information. Furthermore, information C can also be used to determine information D indirectly, for example, in the case where information D is determined based on information E, and information E is determined based on information C.
[0149] Third, in the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates an "or" relationship between the preceding and following related objects, but it does not exclude the possibility of indicating an "and" relationship. The specific meaning can be understood in conjunction with the context. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c; a and b; a and c; b and c; or a and b and c. Here, a, b, and c can be single or multiple.
[0150] Fourth, in the embodiments of this application, the use of prefixes such as "first" and "second" is merely for the purpose of distinguishing and describing different things belonging to the same name category, and does not constrain the order, size, or quantity of things. For example, "first threshold" and "second threshold" are simply different thresholds, and there is no temporal order, size, or priority relationship between them.
[0151] Fifth, the "sending" and "receiving" in the embodiments of this application can be performed between devices, such as between a second device and a first device; or they can be performed within a device, such as between components, modules, chips, software modules, or hardware modules within a device via a bus, wiring, or interface.
[0152] Sixth, in the embodiments of this application, "when," "if," and "if" all refer to the device making corresponding processing under certain objective circumstances, and are not limited to a time, nor do they require the device to make a judgment action when it is implemented, nor do they mean that there are other limitations.
[0153] Seventh, in the embodiments of this application, the words "example," "exemplarily," "for example," or "such as" are used to indicate that they are examples, illustrations, or explanations. Any embodiment or design that is described as "example," "exemplarily," "for example," or "such as" in this application should not be construed as being more preferred or advantageous than other embodiments or design options. Specifically, the use of the words "example," "exemplarily," "for example," or "such as" is intended to present the relevant concepts in a specific manner.
[0154] Eighth, the lock body, lock body system and control method in the embodiments of this application can be applied to the Internet of Vehicles, such as vehicle to everything (V2X), long term evolution-vehicle (LTE-V) communication, vehicle to vehicle (V2V) and so on.
[0155] Exemplarily, the lock body or lock body system can be installed in the vehicle or a component of the vehicle. For example, it can be installed in components such as the vehicle's hood, doors, tailgate, charging port cover, and fuel filler cap. The control method can be executed by the vehicle or other devices within the vehicle. These other devices can be, for example, hardware units, software modules, or a combination of both. These other devices include, but are not limited to, vehicle-mounted terminals, vehicle-mounted controllers, vehicle-mounted modules, vehicle-mounted components, vehicle-mounted chips, and vehicle-mounted units. The vehicle can implement the control method provided in the embodiments of this application through these other devices.
[0156] Of course, the lock body, lock body system, and control method in this application embodiment can also be used in other smart terminals besides vehicles, or installed in other smart terminals besides vehicles, or installed in components of such smart terminals. The smart terminal can be a device with opening and closing components, such as smart transportation equipment, smart home appliances such as refrigerators, etc. For example, it includes, but is not limited to, components such as the smart terminal or the controller, chip, and chip system within the smart terminal.
[0157] To facilitate understanding of the embodiments of this application, the terms involved in the embodiments of this application will be explained below.
[0158] 1. DI switch
[0159] A DI switch can be understood as a sensor that outputs a binary signal (i.e., 0 or 1). Different digital signals can be output depending on the state of the DI switch.
[0160] For example, when the DI switch is closed, a high-level signal, such as 12 volts (V), is output; when the DI switch is open, a low-level signal (such as 0V) is output. Alternatively, a high-level signal is output when the DI switch is open, and a low-level signal is output when the DI switch is closed. For ease of understanding, the following description uses the example of outputting a low-level signal when the DI switch is closed and a high-level signal when it is open to illustrate the embodiments of this application.
[0161] Therefore, when DI switches are applied to opening and closing components such as doors, hoods, and tailgates, the state of the DI switch changes depending on the on / off state of the component, resulting in different digital signals output by the DI switch. This allows the control domain to determine the opening and closing state of the component based on the digital signals output by the DI switch.
[0162] It is understood that the high-level signal output by the DI switch can be logic 1 and the low-level signal can be logic 0; or, the high-level signal output by the DI switch can be logic 0 and the low-level signal can be logic 1. This application does not specifically limit this. For ease of understanding, the following description uses a high-level signal of logic 1 and a low-level signal of logic 0 as an example to illustrate the embodiments of this application.
[0163] 2. AI Switch
[0164] An AI switch can be understood as a sensor that outputs a continuous analog signal (such as 0-5V voltage). Depending on the state of the AI switch, it can output different analog signals.
[0165] For example, when the AI switch is closed, it outputs voltage signal 1; when the AI switch is open, it outputs voltage signal 2. Voltage signal 1 and voltage signal 2 correspond to different voltages. This is because the resistance value in the circuit differs depending on the state of the AI switch, resulting in different voltage signals output by the AI switch. Therefore, it can also be understood that the resistance value (hereinafter referred to as resistance) corresponding to the analog signal output by the AI switch differs depending on the state of the AI switch.
[0166] Therefore, when AI switches are applied to opening and closing components such as car doors, hoods, and tailgates, the state of the AI switch changes depending on the on / off state of the components, resulting in different analog signals output by the AI switch. This allows the control domain to determine the opening / closing state of the components based on the analog signals output by the AI switch.
[0167] It is understood that the lock body, lock body system, and control method provided in this application can be applied to intelligent driving devices or components in intelligent driving devices. To facilitate understanding of the solution in this application, the following will first combine... Figure 1 and Figure 2 Detailed description of intelligent driving equipment
[0168] Figure 1 This is a schematic block diagram of an intelligent driving device (i.e., a service push device) 100 to which this application embodiment applies. Figure 1 As shown, the intelligent driving device 100 may include a perception system 120 and a computing platform 130.
[0169] The perception system 120 may include several types of sensors for sensing information about the environment surrounding the intelligent driving device 100. For example, the perception system 120 may include a positioning system, which may be a global navigation satellite system (GNSS), such as the Global Positioning System (GPS) or the BeiDou system. Alternatively, the perception system 120 may also include one or more of the following sensors: an inertial measurement unit (IMU), lidar, millimeter-wave radar, ultrasonic radar, and a camera device.
[0170] Optionally, in this embodiment, the sensing system 120 may further include a DI switch and an AI switch. The DI switch can output different digital signals depending on its state; similarly, the AI switch can output different analog signals depending on its state.
[0171] Some or all of the functions of the intelligent driving device 100 can be controlled by the computing platform 130. Exemplarily, the computing platform 130 may include processors 131 to 13n.
[0172] In this application embodiment, a processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction read and execute capabilities, such as a central processing unit (CPU), a microprocessor, a graphics processing unit (GPU) (which can be understood as a type of microprocessor), or a digital signal processor (DSP). In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. These logical relationships of hardware circuits are fixed or reconfigurable. For example, the processor is a hardware circuit implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), such as a field-programmable gate array (FPGA). In a reconfigurable hardware circuit, the process of the processor loading a configuration document and configuring the hardware circuit can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. Furthermore, the processor can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (NPU), tensor processing unit (TPU), deep learning processing unit (DPU), etc. In addition, the computing platform 130 may also include a memory for storing instructions. Some or all of the processors 131 to 13n can call the instructions in the memory to implement the corresponding functions.
[0173] The computing platform 130 can also control the operation of the intelligent driving system, which may include an advanced driving assistance system (ADAS) and an autonomous driving system (ADS). The intelligent driving system utilizes various sensors on the vehicle (including but not limited to: lidar, millimeter-wave radar, cameras, ultrasonic sensors, GPS, and inertial measurement units) to acquire information from the vehicle's surroundings, and analyzes and processes this information to achieve functions such as obstacle perception, target recognition, vehicle localization, path planning, and driver monitoring / alerts, thereby improving the safety, automation, and comfort of driving the vehicle.
[0174] At different levels of autonomous driving (or intelligent driving levels, ranging from L0 to L5, totaling six levels), intelligent driving systems can achieve different levels of automated driving assistance based on artificial intelligence algorithms and information acquired by multiple sensors. These levels of autonomous driving are based on the classification standards of the Society of Automotive Engineers (SAE). Level L0 is no automation; Level L1 is driver assistance; Level L2 is partial automation; Level L3 is conditional automation; Level L4 is high automation; and Level L5 is full automation. At levels L1 to L3, the task of monitoring road conditions and reacting is jointly completed by the driver and the system, requiring the driver to take over dynamic driving tasks. Levels L4 and L5 allow the driver to completely transform into a passenger. Currently, the functions that intelligent driving systems can achieve mainly include, but are not limited to: adaptive cruise control, automatic emergency braking, automatic parking, blind spot monitoring, forward cross-traffic alert / braking, rear cross-traffic alert / braking, forward collision warning, lane departure warning, lane keeping assist, rear collision warning, traffic sign recognition, traffic jam assist, and highway assist. It should be understood that the above-mentioned functions can have specific modes at different levels of autonomous driving (L0-L5). The higher the level of autonomous driving, the more intelligent the corresponding mode.
[0175] Optionally, in this embodiment of the application, the computing platform 130 can determine the opening and closing status of the opening and closing components (such as the hood, doors, tailgate, etc.) of the intelligent driving device 100 based on the digital signal from the DI switch and the analog signal from the AI switch; it can also determine whether the AI switch and the DI switch are faulty, such as open circuit or short circuit, based on the digital signal from the DI switch and the analog signal from the AI switch.
[0176] In addition, the computing platform 130 can also indicate the opening and closing state of the opening and closing component to the first application installed in the intelligent driving device, so that the display interface of the first application includes the opening and closing state of the opening and closing component, thereby enabling the user to determine the opening and closing state of the opening and closing component.
[0177] It should be understood that in this embodiment, the first application can be understood as an application installed in the vehicle, and the first application can be used to display the opening and closing status of the opening and closing components in the vehicle. This embodiment does not specifically limit the name of the first application.
[0178] Optionally, the computing platform 130 can also indicate the opening and closing status of the opening and closing components to the user's smart terminal.
[0179] For example, the intelligent driving device 100 also includes a communication device; in one case, the computing platform 130 sends information (such as referred to as information 1) indicating the opening and closing state of the opening and closing component to the cloud via the communication device; correspondingly, the cloud receives information 1 from the intelligent driving device 100. Furthermore, the cloud sends information 1 to the user's smart terminal, such as a mobile phone, smartwatch, or smart bracelet, so that the user's smart terminal can display the opening and closing state of the opening and closing component.
[0180] In another scenario, the computing platform 130 sends information 1 to the user's smart terminal via a communication device; correspondingly, the smart terminal receives information 1 from the intelligent driving device 100 so that the user's smart terminal can display the opening and closing status of the opening and closing components.
[0181] Since the state of the opening and closing components is related to driving safety, the computing platform 130 can optionally control the intelligent driving device 100 based on the opening and closing state of the opening and closing components, or the short-circuit or open-circuit state of the switch. For example, it can prevent shifting out of P gear when the opening and closing components are in the open state, or when the switch in the opening and closing components is in the short-circuit or open-circuit state.
[0182] Optionally, the intelligent driving device 100 also includes a display device 140. The display device 140 is typically located in the cockpit of the intelligent driving device 100.
[0183] Display devices 140 are mainly divided into two categories: the first is in-vehicle displays; the second is projection displays, such as head-up displays (HUDs). In-vehicle displays are physical displays and an important component of in-vehicle infotainment systems. Multiple displays can be installed in the cabin, such as digital instrument cluster displays and central control screens. In some possible implementations, one or more of the aforementioned in-vehicle displays can be human-machine interfaces (HMIs), for example, the central control screen can be an HMI. Head-up displays, also known as head-up display systems, are mainly used to display driving information such as speed and navigation on a display device in front of the driver (e.g., the windshield). This reduces the driver's eye-shifting time, avoids pupil changes caused by eye-shifting, and improves driving safety and comfort. HUDs include, for example, combiner-HUD (C-HUD) systems, windshield-HUD (W-HUD) systems, and augmented reality HUD (AR-HUD) systems.
[0184] Optionally, in this embodiment of the application, the display device 140 may display the opening and closing state of the opening and closing component. For example, the display device 140 may display the interface of a first application, which includes the opening and closing state of the opening and closing component.
[0185] Optionally, in this embodiment of the application, the display device 140 may display a prompt message (as described in the first prompt below) when the opening and closing component is in the open state, or when the switch in the opening and closing component is in the short circuit or open circuit state, to remind the user that the opening and closing component is in an abnormal state.
[0186] Figure 2 A schematic block diagram of an intelligent driving system 200 provided in an embodiment of this application is shown. Figure 2 As shown, the system 200 includes a sensing module 210 and a control module 220.
[0187] The sensing module 210 may include Figure 1 The perception system 120 shown includes one or more sensors, such as cameras and radar sensors. These sensors can be used to collect environmental information about the area where the vehicle is located, such as parking line information and obstacle information. The perception module 210 can also process the collected environmental information to create a world model of roads, obstacles, etc., for downstream modules (such as the human-machine interaction module 230 and the control module 220). The perception module 210 can send the collected and / or determined information to the control module 220.
[0188] For example, in this embodiment of the application, the sensing module 210 may further include a DI switch and an AI switch. See the description above for details.
[0189] The control module 220 can acquire digital signals from the DI switch in the sensing module 210; it can also acquire analog signals from the AI switch; and it can determine the opening and closing state of the opening and closing components based on the digital and analog signals, thereby controlling intelligent driving equipment (such as a vehicle) based on the opening and closing state of the opening and closing components. For example, when the hood is open, the vehicle is prohibited from shifting out of P gear.
[0190] It should be understood that the intelligent driving system 200 can be understood as a system in an intelligent driving device, which includes multiple modules that can be independently set in different devices, or multiple modules can be integrated in the same device. This application embodiment does not specifically limit this.
[0191] Optionally, the system 200 may also include a human-computer interaction module 230 and a display module 240.
[0192] The human-computer interaction module 230 may include Figure 1One or more of the display devices 140 shown may include, for example, an HMI; the human-computer interaction module 230 may also include a sound-generating device (such as a speaker, audio device, etc.) and a sound-receiving device (such as a microphone).
[0193] The display module 240 may include Figure 1 One or more of the display devices 140 shown may be used, and the display module 240 may display the vehicle interface, such as the interface of the first application. The human-machine interaction module 230 may receive user input commands (including voice commands, touch screen commands, etc.) and then control the changes of the interface shown by the display module 240 according to the commands.
[0194] It should be understood that Figure 1 and Figure 2 For illustrative purposes only, in actual application scenarios, intelligent driving devices / systems may include more or fewer devices or modules, and this application embodiment does not specifically limit this.
[0195] Currently, various types of terminal devices incorporate opening and closing components. Examples include vehicle doors, hoods, tailgates, charging port covers, and fuel filler caps. Taking vehicles as an example, these opening and closing components typically include a lock body, allowing the device to close or open based on this lock.
[0196] It is understandable that in vehicles, the lock body in the opening and closing components can typically be one of the following two types: a mechanical lock body and an electric suction lock body.
[0197] In this context, a mechanical lock body can be understood as a traditional lock that achieves locking and unlocking based on its physical structure and manual operation by the user. That is, when the opening and closing component is equipped with a mechanical lock body, the user manually opens or closes the opening and closing component.
[0198] Mechanical lock bodies typically have two states: fully open and fully locked. The fully open state, also known as the unlocked state, indicates that the opening and closing components are open, or can be understood as the components not being locked. The fully locked state, also known as the locked or closed state, indicates that the opening and closing components are closed, or can be understood as the components being locked.
[0199] An electric magnetic lock can be understood as an intelligent lock that automatically locks and unlocks based on motor drive and electronic control.
[0200] Electric magnetic lock bodies typically have three states: fully open, partially locked, and fully locked. The descriptions of the fully open and fully locked states can be found in the section on mechanical lock bodies. The partially locked state can be understood as a state between the fully open and fully locked states. When the electric magnetic lock body is in the partially locked state, the opening and closing components cannot be opened freely, but they are not yet firmly locked in place. For example, the user can manually pull open and close the components.
[0201] Taking the left rear door as an example, if the opening and closing component is the left rear door, Figure 3 As shown in (a), when the left rear door is in the open state, that is, when the electric magnetic lock body installed in the left rear door is in the fully open state, in response to the user's operation of closing the left rear door, the electric magnetic lock body installed in the left rear door can switch to a half-lock state; and then switch from the half-lock state to the fully locked state. At this time, the left rear door is locked and in the closed state.
[0202] However, in some scenarios, such as when a user closes the left rear door with insufficient force, the electric magnetic lock in the left rear door can switch from a fully open state to a half-lock state in response to the user's action of closing the left rear door. It can also remain in the half-lock state, which can be understood as the left rear door remaining in a half-open state. In this case, the left rear door will not open automatically, but the user can manually pull it open.
[0203] When the electric magnetic lock is in a half-lock state, in response to the user's operation of closing the left rear door, the electric magnetic lock installed in the left rear door can switch from a half-lock state to a fully locked state.
[0204] Similarly, such as Figure 3 As shown in (b), when the left rear door is in the closed or locked state, that is, when the electric magnetic lock body installed in the left rear door is in the fully locked state, in response to the user's operation of opening the left rear door, the electric magnetic lock body installed in the left rear door can switch to the half-lock state; and then switch from the half-lock state to the fully open state. At this time, the left rear door is switched to the open state.
[0205] However, in some scenarios, such as when a user doesn't apply enough force to open the left rear door, the electric magnetic lock in the left rear door can switch from a fully locked state to a half-locked state in response to the user's action of opening the left rear door. It can also remain in the half-locked state, which can be understood as the left rear door being partially open. In this case, in response to the user's action of opening the left rear door, the electric magnetic lock in the left rear door can switch from a half-locked state to a fully open state.
[0206] It is understandable that the status of opening and closing components in a vehicle, such as doors, hood, and tailgate, affects driving safety and property security. Therefore, vehicles need to accurately identify the status of these components and alert users when they are not properly closed or malfunctioning. Currently, the locks in these components typically have a DI switch, allowing the vehicle's control unit to determine the opening / closing status of the component based on the digital signal output by the DI switch. Two specific solutions exist in related technologies.
[0207] Option 1: The mechanical lock body includes a DI switch, and the control unit determines the state of the opening and closing components based on the digital signal from the DI switch.
[0208] For example Figure 4 As shown, Figure 4 A mechanical lock body system is shown, which includes a control unit and a mechanical lock body.
[0209] The mechanical lock body includes a DI switch; the control unit includes a DI interface, which is connected to the DI switch. The control unit can receive digital signals from the DI switch through the DI interface.
[0210] It should be understood that in the embodiments of this application, the AI switch / DI switch in the lock body is grounded to ensure that the output signal of the AI switch / DI switch is stable and complies with safety design specifications. For example, the ground (GND) in the figure and the "downward arrow in the circle" can both indicate that the switch is grounded. For the sake of simplicity, this will not be described in detail below.
[0211] For example, in conjunction with Table 1 Figure 4 When the opening and closing components are in the closed state, that is, when the mechanical lock body is in the fully locked state, the DI switch is in the open state and outputs a high-level signal (denoted as 1); when the opening and closing components are in the open state, that is, when the mechanical lock body is in the fully open state, the DI switch is in the closed state and outputs a low-level signal (denoted as 0).
[0212] Correspondingly, when the control unit receives (or detects, or acquires) a high-level signal through the DI interface, it can be determined that the opening and closing component is in the closed state; when the control unit receives a low-level signal through the DI interface, it can be determined that the opening and closing component is in the open state.
[0213] However, in some scenarios, referring to Table 1, when the mechanical lock body is in a short-circuit state, that is, when the mechanical lock body (or DI switch) is short-circuited to the control unit, the control unit can still obtain a low-level signal through the DI interface; when the mechanical lock body is in an open-circuit state, that is, when the mechanical lock body (or DI switch) is open-circuited to the control unit, the control unit can obtain a high-level signal through the DI interface.
[0214] It can be seen that when the opening and closing component is in the closed state and the mechanical lock body is in the open circuit state, the digital signals obtained by the control unit are all high-level signals; when the opening and closing component is in the open state and the mechanical lock body is in the short circuit state, the digital signals obtained by the control unit are all low-level signals.
[0215] As a result, on the one hand, the control unit cannot accurately identify the open-circuit and short-circuit states of the mechanical lock body, and cannot determine whether the mechanical lock body is malfunctioning. On the other hand, when the mechanical lock body is in an open-circuit state, the control unit may determine that the opening and closing components are in a closed state based on the detected high-level signal; and when the mechanical lock body is in a short-circuit state, the control unit may determine that the opening and closing components are in an open state based on the detected low-level signal, causing the opening and closing component status displayed by the first application to be incorrect, outputting an error message to the user, and even potentially affecting driving safety and property safety, thus impacting the user experience.
[0216] Table 1
[0217]
[0218] Option 2 involves installing two DI switches in the electric magnetic lock body. The control unit determines the state of the opening and closing components based on the digital signals from the two DI switches.
[0219] For example Figure 5 As shown, Figure 5 An electrically operated magnetic lock body system is shown, which includes a control unit and an electrically operated magnetic lock body.
[0220] The electrically operated locking body includes DI switch 1 and DI switch 2. DI switch 1 can be understood as a full lock switch, and DI switch 2 can be understood as a partial lock switch. The control unit includes DI interface 1 and DI interface 2, with DI interface 1 connected to DI switch 1 and DI interface 2 connected to DI switch 2. The control unit can receive digital signals from DI switch 1 through DI interface 1, and the control unit can also receive digital signals from DI switch 2 through DI interface 2.
[0221] For example, in conjunction with Table 2 Figure 5 When the opening and closing components are in the closed state, that is, when the electric magnetic lock body is in the fully locked state, DI switch 1 (fully locked switch) is in the open state and outputs a high-level signal (denoted as 1); DI switch 2 (half locked switch) is in the open state and outputs a high-level signal.
[0222] When the opening and closing components are in the open state, that is, when the electric magnetic lock body is in the fully open state, DI switch 1 is in the closed state and outputs a low-level signal (denoted as 0); DI switch 2 is in the closed state and outputs a low-level signal.
[0223] When the opening and closing components are in the half-open state, that is, when the electric magnetic lock body is in the half-locked state, DI switch 1 is in the closed state and outputs a low-level signal; DI switch 2 is in the open state and outputs a high-level signal.
[0224] Correspondingly, when the control unit receives a high-level signal through DI interface 1 and a high-level signal through DI interface 2, it can be determined that the opening and closing component is in the closed state.
[0225] When the control unit receives a low-level signal through DI interface 1 and a low-level signal through DI interface 2, it can be determined that the opening / closing component is in the open state.
[0226] When the control unit receives a low-level signal through DI interface 1 and a high-level signal through DI interface 2, it can be determined that the opening and closing component is in a semi-locked state.
[0227] Referring back to Table 2, when the electric locking body is in a short-circuit state, that is, when the electric locking body (or DI switch 1 and DI switch 2) is short-circuited with the control unit, the control unit can obtain a low-level signal through DI interface 1 and can obtain a low-level signal through DI interface 2.
[0228] When the electric locking body is in an open circuit state, that is, when the electric locking body (or DI switch 1 and DI switch 2) is disconnected from the control unit, the control unit can obtain a high-level signal through DI interface 1 and can obtain a high-level signal through DI interface 2.
[0229] Therefore, similar to Scheme 1, based on Scheme 2, the control unit cannot identify the open circuit and short circuit states of the electric magnetic lock body, and may display the incorrect status of the opening and closing components, which may affect driving safety and property safety, and affect user experience.
[0230] Table 2
[0231]
[0232] In view of this, embodiments of this application provide a mechanical lock body, a control method, and a mechanical lock body system. The mechanical lock body includes an AI switch and a DI switch. The terminal device, based on analog signals from the AI switch and digital signals from the DI switch, can not only identify the open / closed state of the mechanical lock body but also its open / short circuit state. Furthermore, because the mechanical lock body includes a DI switch, when the mechanical lock body and its opening / closing components are applied to a vehicle, the opening and closing of the components can also wake up the entire vehicle. This allows the first application to promptly obtain the state changes of the opening / closing components, enabling the user to determine the accurate state of the components in real time, thereby improving the user experience.
[0233] Furthermore, this application also provides an electrically operated magnetic lock body, a control method, and an electrically operated magnetic lock body system. The electrically operated magnetic lock body includes a full-lock switch and a half-lock switch. The full-lock switch includes at least one DI switch and at least one AI switch, and the half-lock switch includes at least one DI switch and at least one AI switch. Thus, the terminal device can not only identify the opening and closing state of the opening and closing components, but also identify whether the full-lock switch is in a short-circuit or open-circuit state based on the AI switch in the full-lock switch, and also identify whether the half-lock switch is in a short-circuit or open-circuit state based on the AI switch in the half-lock switch. In addition, bilateral vehicle wake-up can be achieved based on the DI switches in the full-lock switch and the half-lock switch; that is, the vehicle can be woken up when the opening and closing components switch between an open state and a half-open state, and when switching between a closed state and a half-open state. This allows the first application to obtain the state changes of the opening and closing components in a timely manner, so that the user can determine the accurate state of the opening and closing components in real time, thereby improving the user experience.
[0234] The lock body, control method, and lock body system provided in this application will be described below with reference to specific embodiments. These embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0235] I. Mechanical Lock Body
[0236] The mechanical lock body includes: DI switch and AI switch.
[0237] The DI switch is used to output a digital signal of a first level when it is closed and a digital signal of a second level when it is open; the AI switch is used to output an analog signal corresponding to a first resistance value when it is closed and an analog signal corresponding to a second resistance value when it is open.
[0238] The digital signal output by the DI switch and the analog signal output by the AI switch are used to determine the opening and closing state of the first opening and closing component equipped with the mechanical lock body, which is either closed or open.
[0239] It is understandable that the first level and the second level are different. For example, the first level may be low and the second level may be high; or the first level may be high and the second level may be low. This is to ensure that the level of the digital signal can reflect the state of the DI switch.
[0240] The first resistance value and the second resistance value are different. For example, the first resistance value is greater than the second resistance value, or the second resistance value is greater than the first resistance value. This is so that the resistance value corresponding to the analog signal can reflect the state of the AI switch.
[0241] It should be understood that in the embodiments of this application, the first opening and closing component can be a component in a vehicle or a component in other terminals, such as a component in a smart home appliance (refrigerator, etc.). The embodiments of this application do not specifically limit this.
[0242] Based on the digital signal output by the DI switch and the analog signal output by the AI switch, the opening and closing state of the first opening and closing component can be determined by the first control unit.
[0243] For example, Figure 6 This is a flowchart illustrating the control method 600 executed by the first control unit provided in an embodiment of this application. Figure 6 As shown, method 600 includes the following steps:
[0244] S601, The first control unit acquires the digital signal output by the DI switch in the mechanical lock body and the analog signal output by the AI switch in the mechanical lock body.
[0245] For example, the first control unit is provided with a DI interface, and the first control unit can be connected to a DI switch through the DI interface. Then the first control unit can obtain digital signals from the DI switch through the DI interface.
[0246] Similarly, the first control unit is equipped with an AI interface, and can connect to the AI switch via this AI interface. The first control unit can then obtain analog signals from the AI switch through this AI interface.
[0247] It is understood that the first control unit is hardware and / or software capable of acquiring the digital signal output by the DI switch and the analog signal output by the AI switch. The first control unit and the mechanical lock body can be independently housed in different components, or they can be housed in the same component. This application does not specifically limit this aspect.
[0248] For example, the first control unit may be a controller, chip, chip system, processor, etc. in the terminal device. For example, when the terminal device is a vehicle, the first control unit may be a vehicle control unit (VCU), body domain controller (BDC), etc., or other controllers in the vehicle.
[0249] S602, the first control unit determines the opening and closing state of the first opening and closing component equipped with the mechanical lock body based on the digital signal and the analog signal.
[0250] It should be understood that the first opening and closing component with the mechanical lock body can also be a mechanical lock body set in the first opening and closing component, or the mechanical lock body can be connected to the first opening and closing component so that the state of the mechanical lock body can reflect the opening and closing state of the first opening and closing component. The embodiments of this application do not specifically limit the setting method of the mechanical lock body and the first opening and closing component.
[0251] Specifically, the first control unit can determine the opening and closing state of the first opening and closing component based on the level of the digital signal and the resistance value corresponding to the analog signal.
[0252] This application also provides a mechanical lock system including the aforementioned mechanical lock body and a first control unit. For example... Figure 7 As shown, Figure 7 Two mechanical lock body systems are shown. Figure 7 (a) shows the system and Figure 7 (b) shows that the difference between the systems lies in the different architecture of the mechanical lock body.
[0253] As an example and not a limitation, the mechanical lock body in the embodiments of this application may have the following structure.
[0254] Architecture 1: The AI switch in the mechanical lock body is connected in series with the first resistor, and the AI switch is connected in parallel with the second resistor; wherein, the second resistance value is the sum of the first resistance value of the first resistor and the third resistance value of the second resistor.
[0255] For example, such as Figure 7 As shown in (a), Figure 7 (a) shows a mechanical lock body system including an AI switch of architecture 1. The first resistor has a first resistance value (denoted by R1); the second resistor has a third resistance value (denoted by R2).
[0256] When the AI switch is closed, it outputs an analog signal corresponding to the first resistance value (R1); when the AI switch is open, it outputs an analog signal corresponding to the second resistance value, where the second resistance value = R1 + R2.
[0257] Architecture 2: The AI switch in the mechanical lock body is connected in series with the third resistor, and the AI switch and the third resistor connected in series are connected in parallel with the fourth resistor; wherein, the resistance of the fourth resistor is the second resistance value, and the resistance of the third resistor and the fourth resistor connected in parallel is the first resistance value.
[0258] For example, such as Figure 7 As shown in (b) in the figure, Figure 7 (b) shows a mechanical lock system including the mechanical lock body of structure 2. The resistance of the fourth resistor is the second resistance value (R1+R2). The resistance of the third resistor connected in parallel with the fourth resistor is the first resistance value (R1), that is, the resistance values of the third resistor (R3) and the fourth resistor (R1+R2) satisfy: 1 / R1=1 / R3+1 / (R1+R2), or, R1=(R1+R2)×R3 / (R1+R2+R3).
[0259] Based on Table 3, when the AI switch is in the closed state, the AI switch outputs the analog signal corresponding to the first resistance value (R1) of the third and fourth resistors in parallel; when the AI switch is in the open state, the AI switch outputs the analog signal corresponding to the second resistance value (R1+R2) of the fourth resistor.
[0260] In one possible implementation, the first control unit can determine the opening / closing state of the first opening / closing component in the following way:
[0261] As shown in Table 3, in one case, the first opening and closing component is in the open state, and the mechanical lock body is in the fully open state.
[0262] At this time, the DI switch and the AI switch are in a closed state, and the DI switch outputs a digital signal of the first level (e.g., denoted as 0), and the AI switch outputs an analog signal corresponding to the first resistance value (denoted as R1). Correspondingly, the first control unit receives (or detects) the digital signal of the first level from the DI switch and the analog signal corresponding to the first resistance value from the AI switch; and based on the digital signal of the first level and the analog signal corresponding to the first resistance value, determines that the first opening and closing component is in an open state.
[0263] In another scenario, the first opening / closing component is in the closed state, and the mechanical lock body is in the fully locked state.
[0264] At this time, the DI switch is used to output a digital signal of the second level (e.g., denoted as 1), and the AI switch is used to output an analog signal corresponding to the second resistance value (denoted as R1+R2). Correspondingly, the first control unit receives the digital signal of the second level from the DI switch and the analog signal corresponding to the first resistance value from the AI switch; based on the digital signal of the second level and the analog signal corresponding to the second resistance value, it determines that the first switching component is in the closed state.
[0265] Table 3
[0266]
[0267] Normally, the first opening / closing component is in a closed state; for example, components such as the hood and doors in a vehicle are mostly closed. Therefore, by making the first opening / closing component open, the DI switch and AI switch are in a closed state, and by making the first opening / closing component closed, the DI switch and AI switch are in an open state. This ensures that the DI switch and AI switch are in an open state more often, thus breaking the entire circuit and reducing current loss.
[0268] It is understandable that if the first switching component is normally open, the opposite setting can also be used, that is, when the first switching component is open, the DI switch and the AI switch are disconnected, and when the first switching component is closed, the DI switch and the AI switch are closed. The specific implementation method is similar, and for the sake of simplicity, it will not be described in detail here.
[0269] It should be understood that Table 3 is merely an example, illustrating the case where the first level is low (0) and the second level is high (1). In actual applications, the first level can also be high and the second level can be low. This application does not impose any specific limitations on this.
[0270] Referring again to Table 3, based on the mechanical lock body provided in the embodiments of this application, the first control unit can also determine whether the mechanical lock body is in a short circuit state or an open circuit state.
[0271] For example, method 600 further includes: the first control unit determines the connection state between the mechanical lock body and the first control unit as an open circuit connection state (i.e., the mechanical lock body is in an open circuit state) based on the detected digital signal of the second level and the analog signal corresponding to the fourth resistance value; wherein the fourth resistance value is greater than the first resistance value and the fourth resistance value is greater than the second resistance value.
[0272] Referring to Table 3, the second level digital signal is, for example, a high-level signal (denoted as 1). Alternatively, in practical applications, the second level can also be a low-level signal.
[0273] The mechanical lock body is disconnected from the first control unit, which is equivalent to the resistance in the circuit where the AI switch is located being infinitely large. Therefore, the fourth resistance is greater than the first resistance (R1) and also greater than the second resistance (R1+R2). The analog signal corresponding to the fourth resistance can be recorded as >R1+R2.
[0274] Method 600 may further include: the first processing unit determines, based on the detected digital signal of the first level and the analog signal corresponding to the fifth resistance value, that the connection state between the mechanical lock body and the first control unit is a short-circuit connection state (i.e., the mechanical lock body is in a short-circuit state); wherein, the fifth resistance value is less than the first resistance value and the fifth resistance value is less than the second resistance value.
[0275] Referring to Table 3, the first level digital signal is, for example, a low level signal (denoted as 0). Alternatively, in practical applications, the first level can also be a high level.
[0276] A short circuit connects the mechanical lock body to the first control unit, which is equivalent to a resistance of 0Ω or close to 0Ω in the circuit where the AI switch is located. Therefore, the fifth resistance is less than the first resistance (R1) and also less than the second resistance (R1+R2). For example, the fifth resistance could be 0Ω, and the corresponding analog signal could be recorded as 0Ω.
[0277] As shown in Table 3, the output signals are different when the mechanical lock body is in the fully open, fully locked, open-circuit, and short-circuit states. This allows the first control unit to determine not only the opening and closing state of the first opening and closing component based on the detected digital and analog signals, but also to accurately identify whether the mechanical lock body is in a short-circuit or open-circuit state, thereby determining whether the mechanical lock body is faulty.
[0278] This reduces false alarms about the opening / closing status of the first opening / closing component caused by lock body malfunctions. Furthermore, it provides timely alerts to users when the mechanical lock body malfunctions, allowing them to address the problem promptly and improving the user experience.
[0279] Based on the above embodiments, optionally, when the first control unit determines that the connection state between the mechanical lock body and the first control unit is an open circuit connection state or a short circuit connection state, a first message is sent, the first message being used to indicate a fault in the first opening and closing component.
[0280] That is, the first control unit can send first information to other modules or devices.
[0281] In one example, the first control unit is a body domain controller. The body domain controller can send first information to the vehicle controller so that the vehicle controller can determine that the mechanical lock body is faulty, thereby facilitating the vehicle controller to control the vehicle.
[0282] In another example, the first control unit sends a first message to the cockpit domain controller so that the cockpit domain controller can control the display device to display the fault status of the mechanical lock body.
[0283] In another example, the first control unit may send first information to the first application so that the first application can display the fault status of the mechanical lock body.
[0284] In another example, the first control unit can send first information to the cloud, so that the cloud can send the first information to the user's smart terminal (such as a mobile phone, smartwatch, etc.), thereby enabling the user's smart terminal to display the fault status of the mechanical lock body.
[0285] It is understood that the first opening / closing component, mechanical lock body, and first control unit provided in this application embodiment can be installed in a vehicle. The first control unit can be, for example, a vehicle body domain controller, or other components in the vehicle capable of acquiring signals from the mechanical lock body. Furthermore, the first control unit can also perform the following steps.
[0286] like Figure 8 As shown, when the vehicle is in motion, if it is determined that the connection between the mechanical lock body and the first control unit is in an open circuit or short circuit state, or if it is determined that the first opening and closing component is in an open state, then the first safety strategy is executed.
[0287] When the vehicle is stationary, if it is determined that the connection between the mechanical lock body and the first control unit is in an open circuit or short circuit state, or if it is determined that the first opening and closing component is in an open state, the second safety strategy is executed upon receiving a first instruction instructing the vehicle to move.
[0288] The first control unit can determine the vehicle status first, or it can determine the status of the mechanical lock body first. Furthermore, when the vehicle is in motion, it can be in either human-driven mode or intelligent driving mode; this embodiment does not specifically limit this.
[0289] Here, "vehicle stationary" can be understood as the vehicle being in a stopped state, or as the vehicle speed being 0, or as the current gear being P (Park). The first instruction can be a command generated based on user input, such as a command generated based on the user's action of shifting out of P gear.
[0290] It is understood that in the embodiments of this application, the first control unit executes the first security policy, or the first control unit directly executes the first security policy or the second security policy, or the first control unit instructs other components to execute the first security policy or the second security policy. The embodiments of this application do not specifically limit this.
[0291] The first and second security strategies can be the same or different; both are measures taken when the opening and closing components malfunction.
[0292] For example, the first safety strategy includes one or more of the following: pulling over to the side of the road; switching the vehicle mode to the target vehicle mode; or controlling the vehicle speed to be less than a first threshold.
[0293] It is understandable that when the first opening / closing component is a component such as the hood, door, or tailgate, if the first opening / closing component is in the open state, or if the mechanical lock within it is malfunctioning to the point that the open / closed state of the first opening / closing component cannot be accurately determined, safety hazards may arise. For example, an open hood may obstruct the driver's view, and an open door may cause the user to be thrown out of the cabin. Another example is that an open tailgate may cause items inside the vehicle to fall out.
[0294] Therefore, the first control unit can control parking on the side of the road, for example, the first control unit instructs the intelligent driving system / vehicle control domain to park on the side of the road.
[0295] In addition, the first control unit can also switch the vehicle mode to a safer vehicle mode, such as switching to intelligent driving mode, so that the intelligent driving system can drive the vehicle to a safe location and stop as soon as possible; or switching to human driving mode, such as prompting the driver to take over the vehicle, so that the driver can make reasonable driving behavior.
[0296] To reduce safety risks, in scenarios where it is inconvenient to stop immediately, the first control unit can also control the vehicle speed to be lower than a first threshold, which is a preset positive number, thereby improving driving safety.
[0297] The second safety strategy includes: controlling the output of a first prompt, which is used to alert the user to an abnormality in the first opening / closing component; and / or controlling the vehicle to remain stationary.
[0298] It is understandable that the second safety strategy is the safety strategy adopted when the vehicle is parked. As known above, if the first opening / closing component is in the open state, or if the mechanical lock within it malfunctions (or can be understood as a malfunction of the first opening / closing component) to the point that the open / closed state of the first opening / closing component cannot be accurately determined, there may be a safety hazard if the vehicle is moving. Therefore, in this situation, even if the first command is detected, the first control unit still controls the vehicle to remain stationary, for example, by preventing it from shifting out of Park (P) gear.
[0299] In addition, in this case, the first control unit can also control the output of the first prompt, such as through interface display, voice prompt, etc.
[0300] It should be understood that when the first prompt is displayed through an interface, it can be displayed in any form, including but not limited to pop-ups, cards, bubbles, notifications, capsules, etc. This application does not specifically limit this.
[0301] Taking the first prompt as a pop-up window, the first opening / closing component as the hood, and the hood (also known as the front trunk) being in the open state as an example, the first prompt could be as follows: Figure 9 As shown in the image. This pop-up window may include a full vehicle diagram, and the hood area in the diagram may be highlighted with a specific color (such as red) to more prominently alert the user to any hood malfunction. It may also provide risk warnings to the user with text such as "Hood not closed" or "Please close the hood before driving. The trunk may open during driving, potentially causing vehicle damage or an accident."
[0302] Optionally, the pop-up window may also display buttons 901 and 902.
[0303] In response to user input on button 901, the pop-up window can be closed, while the vehicle remains stationary, even if it is still impossible to shift out of Park. Button 901 may display the text "Do not drive for now," allowing the user to confirm that clicking button 901 acknowledges the risk and will not drive the vehicle until the risk is resolved.
[0304] In response to user input on button 902, the pop-up window can also be closed, indicating that the user has acknowledged the risk, at which point the vehicle can be shifted out of Park (P) gear. Button 902 may display the text "Understand the Risk," allowing the user to confirm their understanding. Clicking button 902 indicates that the user has acknowledged or resolved the risk and can continue driving.
[0305] It should be understood that Figure 9 This is just an example; in real-world applications, the initial prompt can be displayed to the user in other ways and with different styles. Furthermore, when the mechanical lock malfunctions (i.e., is in an open-circuit or short-circuit state), a similar initial prompt can be output. For the sake of brevity, these details will not be elaborated upon here.
[0306] It should also be understood that Figure 9 The styles shown are merely examples. In actual application scenarios, the text displayed in the pop-up window can also be replaced with other text; the styles of buttons 901 and 902 can also be replaced with other text, for example, the text "Understand the risks" on button 902 can be replaced with "Understand the risks and drive"; the vehicle schematic diagram can also be replaced with other images or styles. This application embodiment does not specifically limit this.
[0307] Optionally, the first control unit may also perform the following steps: the first control unit receives a first input from the user, the first input indicating that the user has confirmed the abnormal state of the first opening and closing component; then, in response to the first input, upon receiving a second instruction instructing the vehicle to move, the first control unit controls the vehicle to move.
[0308] The first input is, for example, Figure 9 In this example, the user inputs input to button 902, such as clicking. Alternatively, in practical applications, the first input can also be voice input; this embodiment does not specifically limit this.
[0309] The second instruction is similar to the first instruction; for example, it may be generated based on the user's action of shifting out of Park (P). In this case, the first control unit no longer prohibits shifting out of Park, and the vehicle can be driven normally.
[0310] In addition, the digital signal output by the DI switch can also be used to wake up the entire vehicle.
[0311] For example, the first control unit wakes up the vehicle when the digital signal output by the DI switch is switched from a first level to a second level; and / or, the first control unit wakes up the vehicle when the digital signal output by the DI switch is switched from a second level to a first level.
[0312] It is understood that the first control unit can wake up the vehicle directly, or it can instruct other components (such as the vehicle controller) to wake up the vehicle. This application does not specifically limit this.
[0313] In other words, switching the first opening / closing component from the open state to the closed state, and vice versa, can wake up the entire vehicle. Thus, the first control unit can provide other devices or modules with the accurate status of the first opening / closing component in real time, ensuring the correct status is displayed. Furthermore, the user opening the first opening / closing component can wake up the entire vehicle, improving operational convenience; and after the vehicle is powered off, in the event of theft or other incidents, the system can wake up the vehicle, triggering an alarm and enhancing security.
[0314] The above description of the mechanical lock system demonstrates that it not only identifies the opening and closing state of the first opening and closing component, thus determining whether the mechanical lock is malfunctioning, but also, when applied to vehicles, enables dual-side vehicle wake-up. Specifically, a switch in the digital signal output from the DI switch, whether high or low, can act as a wake-up source to activate the entire vehicle. This enhances user and equipment security, meets requirements, and improves the user experience.
[0315] As an example, if the mechanical lock body only includes an AI switch, since the analog signal output by the AI switch does not support bilateral wake-up, it is mostly used for wake-up of button-type trigger switches (wake-up is achieved by switching from the non-pressed state to the pressed state). It is generally not suitable as a wake-up source for the whole vehicle, which makes it impossible for the mechanical lock body to wake up the whole vehicle.
[0316] II. Electric suction lock body
[0317] The electrically operated magnetic lock body includes: a first DI switch, a first AI switch, a second DI switch, and a second AI switch.
[0318] The first DI switch is used to output a digital signal of a first level when it is closed, and to output a digital signal of a second level when it is open.
[0319] The first AI switch is used to: output an analog signal corresponding to a first resistance value when in the closed state, and output an analog signal corresponding to a second resistance value when in the open state.
[0320] The second DI switch is used to output a third-level digital signal when closed and a fourth-level digital signal when open.
[0321] The second analog input switch is used to output an analog signal corresponding to the sixth resistance value when it is closed, and to output an analog signal corresponding to the seventh resistance value when it is open.
[0322] The digital signals output by the first DI switch and the second DI switch, as well as the analog signals output by the first AI switch and the second AI switch, are used to: confirm the opening and closing state of the second opening and closing component equipped with an electric suction lock body. The opening and closing state includes a closed state, a half-open state, or an open state.
[0323] It should be understood that the first level, the second level, the first resistance value, and the second resistance value can be referred to in the description of the mechanical lock body above, and will not be repeated here for the sake of brevity.
[0324] Similarly, the third level is different from the fourth level. For example, the third level is low and the fourth level is high; or, the third level is high and the fourth level is low, so that the digital signal obtained from the second DI switch can reflect the state of the second DI switch. The sixth resistance value is greater than the seventh resistance value, or the seventh resistance value is greater than the sixth resistance value, so that the analog signal obtained from the second AI switch can reflect the state of the second AI switch.
[0325] It should be understood that the third voltage level can be the same as the first voltage level, for example, both being low; the fourth voltage level can be the same as the second voltage level, for example, both being high. Alternatively, with technological advancements, the third voltage level can be different from the first voltage level, and the fourth voltage level can be different from the second voltage level; this application does not specifically limit this.
[0326] It should also be understood that in the embodiments of this application, the second opening and closing component can be a component in a vehicle or a component in other terminals, such as a component in a smart home appliance (refrigerator, etc.). The embodiments of this application do not specifically limit this.
[0327] It should be noted that in the embodiments of this application, the mechanical lock body and the electric magnetic lock body can be used independently. For example, the opening and closing components in the terminal device may all use mechanical lock bodies or all use electric magnetic lock bodies; or, the mechanical lock body and the electric magnetic lock body may also be used in combination. For example, the vehicle door in a vehicle may use an electric magnetic lock body, while the hood may use a mechanical lock body. The embodiments of this application do not impose specific limitations on this.
[0328] Based on the digital signals output by the first DI switch and the second DI switch, and the analog signals output by the first AI switch and the second AI switch, the second control unit can determine the opening and closing state of the second opening and closing component.
[0329] For example, Figure 10 This is a flowchart illustrating the control method 1000 executed by the second control unit provided in an embodiment of this application. Figure 10 As shown, method 1000 includes the following steps:
[0330] S1001, The second control unit acquires the digital signal output by the first DI switch, the analog signal output by the first AI switch, the digital signal output by the second DI switch, and the analog signal output by the second AI switch in the electric magnetic locking body.
[0331] For example, the second control unit is provided with a DI interface 1, and the second control unit can be connected to the first DI switch through the DI interface 1. The second control unit can then obtain digital signals from the first DI switch through the DI interface 1. The second control unit is also provided with an AI interface 1, and the second control unit can be connected to the first AI switch through the AI interface 1. The second control unit can then obtain analog signals from the first AI switch through the AI interface 1.
[0332] Similarly, the second control unit is provided with a DI interface 2, and the second control unit can be connected to a second DI switch through this DI interface 2. The second control unit can then obtain digital signals from the second DI switch through the DI interface 2. The second control unit is also provided with an AI interface 2, and the second control unit can be connected to a second AI switch through this AI interface 2. The second control unit can then obtain analog signals from the second AI switch through the AI interface 2.
[0333] It is understood that the second control unit is the hardware and / or software capable of acquiring the digital signals output by the first DI switch and the second DI switch, as well as the analog signals output by the first AI switch and the second AI switch. The second control unit and the electrically operated magnetic lock body can be independently housed in different components, or they can be housed in the same component. This application does not specifically limit this aspect.
[0334] For example, the second control unit may be a controller, chip, chip system, processor, etc., in the terminal device. For example, when the terminal device is a vehicle, the second control unit may be a vehicle controller, body domain controller, etc., or other controllers in the vehicle. The second control unit may be the same as or different from the first control unit.
[0335] S1002, the second control unit determines the opening and closing state of the second opening and closing component equipped with the electric suction lock body based on the digital signals output by the first DI switch and the second DI switch, and the analog signals output by the first AI switch and the second AI switch. The opening and closing state is closed, open, or half-open.
[0336] It should be understood that the second opening and closing component with the electric suction lock body can also be that the electric suction lock body is set in the second opening and closing component, or the electric suction lock body is connected to the second opening and closing component so that the state of the electric suction lock body can reflect the opening and closing state of the second opening and closing component. The embodiments of this application do not specifically limit the setting method of the electric suction lock body and the second opening and closing component.
[0337] Specifically, the second control unit can determine the opening and closing state of the second switching component based on the level of the digital signals output by the first DI switch and the second DI switch, and the resistance value corresponding to the analog signals output by the first AI switch and the second AI switch.
[0338] This application also provides an electrically operated magnetic lock system including the aforementioned electrically operated magnetic lock body and second control unit. For example... Figure 11 and Figure 12 As shown, Figure 11 and Figure 12 Two electrically operated magnetic lock body systems are shown. The difference between these two systems lies in the different architectures of the first and second AI switches.
[0339] As an example and not a limitation, the AI switch in the aforementioned electric magnetic lock body may have the following architecture.
[0340] Architecture A: Combining Figure 11 The first AI switch is connected in series with the first resistor and in parallel with the second resistor. The second resistance value is the sum of the first resistance value (i.e., R1) of the first resistor and the third resistance value (i.e., R2) of the second resistor.
[0341] It should be understood that architecture a is similar to architecture 1 mentioned above, and can be referred to the description above, which will not be repeated here.
[0342] Similarly, the second AI switch can also adopt a similar architecture.
[0343] Architecture b: The second AI switch is connected in parallel with the fifth resistor and in series with the sixth resistor. The seventh resistance value is the sum of the sixth resistance value of the sixth resistor and the eighth resistance value of the fifth resistor.
[0344] Still combined Figure 11 The resistance of the sixth resistor is the sixth resistance value (denoted by R6); the resistance of the fifth resistor is the eighth resistance value (denoted by R5).
[0345] When the second AI switch is closed, it outputs an analog signal corresponding to the sixth resistance value (R6); when the second AI switch is open, it outputs an analog signal corresponding to the seventh resistance value, where the seventh resistance value = R6 + R5.
[0346] Alternatively, the first AI switch and the second AI switch can also adopt the following architecture.
[0347] Architecture c: The first AI switch is connected in series with the third resistor, and the first AI switch and the third resistor, which are connected in series, are connected in parallel with the fourth resistor. The resistance of the fourth resistor is the second resistance value, and the resistance of the third resistor and the fourth resistor in parallel is the first resistance value.
[0348] It should be understood that this architecture is similar to architecture 2 of the AI switch in the mechanical lock body, as described above, and will not be repeated here.
[0349] Similarly, the second AI switch can also adopt a similar architecture.
[0350] Architecture d: The second AI switch is connected in series with the seventh resistor, and the second AI switch and the seventh resistor, which are connected in series, are connected in parallel with the eighth resistor. The resistance of the eighth resistor is the seventh resistance value, and the resistance of the seventh resistor and the eighth resistor in parallel is the sixth resistance value.
[0351] Still combined Figure 12 The resistance of the eighth resistor is the same as the resistance of the seventh resistor (R6 + R5). When the seventh and eighth resistors are connected in parallel, their resistance is the same as the resistance of the sixth resistor (R6). That is, the resistance of the seventh resistor (R7) and the resistance of the eighth resistor (R6 + R5) satisfy: 1 / R6 = 1 / R7 + 1 / (R6 + R5), or R6 = (R6 + R5) × R7 / (R6 + R5 + R7).
[0352] When the second AI switch is closed, the second AI switch outputs an analog signal corresponding to the sixth resistance value (R6) of the seventh resistor and the eighth resistor in parallel; when the second AI switch is open, the second AI switch outputs an analog signal corresponding to the seventh resistance value (R6+R5) of the eighth resistor.
[0353] It should be understood that Figure 11 and Figure 12 For illustrative purposes only, in actual applications, the first AI switch may use architecture c and the second AI switch may use architecture b; or the first AI switch may use architecture a and the second AI switch may use architecture d. For the sake of simplicity, these will not be shown one by one here.
[0354] It is understandable that for electrically operated magnetic lock bodies, for example... Figure 11 or Figure 12 As shown, the first AI switch and the first DI switch can also be understood as full-lock switches; the second AI switch and the second DI switch can also be understood as half-lock switches. This facilitates the detection of the status of the second opening and closing component, the vehicle wake-up function for any state change of the second opening and closing component, and the fault detection of the electric magnetic lock body.
[0355] In one possible implementation, the second control unit can determine the opening / closing state of the second opening / closing component in the following way:
[0356] As shown in Table 4, in one case, the second opening and closing component is in the open state, and the electric suction lock body is in the fully open state.
[0357] Then the first DI switch, the first AI switch, the second DI switch, and the second AI switch can be in the closed state; and the first DI switch outputs a digital signal of the first level (for example, denoted as 0), the first AI switch outputs an analog signal corresponding to the first resistance value (denoted as R1), the second DI switch outputs a digital signal of the third level (for example, denoted as 0), and the second AI switch outputs an analog signal corresponding to the sixth resistance value (denoted as R6).
[0358] Correspondingly, the second control unit can acquire a first-level digital signal (0) from the first DI switch, an analog signal (R1) corresponding to the first resistance value from the first AI switch, a third-level digital signal (0) from the second DI switch, and an analog signal (R6) corresponding to the sixth resistance value from the second AI switch. Based on these signals, the second control unit can determine that the second switching component is in the open state.
[0359] In another scenario, the second opening / closing component is in a partially open state, and the electrically operated locking body is in a partially locked state.
[0360] Then the first DI switch and the first AI switch are in the closed state, and the second DI switch and the second AI switch are in the open state; and the first DI switch outputs a digital signal of the first level (0), the first AI switch outputs an analog signal (R1) corresponding to the first resistance value, the second DI switch outputs a digital signal of the fourth level (denoted as 1), and the second AI switch outputs an analog signal (denoted as R6+R5) corresponding to the seventh resistance value.
[0361] Correspondingly, the second control unit can acquire a first-level digital signal (0) from the first DI switch, an analog signal (R1) corresponding to the first resistance value from the first AI switch, a fourth-level digital signal (1) from the second DI switch, and an analog signal (R6+R5) corresponding to the seventh resistance value from the second AI switch. Furthermore, the second control unit can determine that the second switching component is in a half-open state based on the first-level digital signal (0), the first resistance value (R1), the fourth-level digital signal (1), and the seventh resistance value (R6+R5).
[0362] In another scenario, the second opening / closing component is in the closed state, while the electrically operated locking body is in the fully locked state.
[0363] The first DI switch, the first AI switch, the second DI switch, and the second AI switch are in the off state; and the first DI switch outputs a digital signal of the second level (1), the first AI switch outputs an analog signal corresponding to the second resistance value (denoted as R1+R2), the second DI switch outputs a digital signal of the fourth level (1), and the second AI switch outputs an analog signal corresponding to the seventh resistance value (R6+R5).
[0364] Correspondingly, the second control unit can acquire a second-level digital signal (1) from the first DI switch, an analog signal (R1+R2) corresponding to the second resistance value from the first AI switch, a fourth-level digital signal (1) from the second DI switch, and an analog signal (R6+R5) corresponding to the seventh resistance value from the second AI switch. Furthermore, the second control unit can determine that the second switching component is in a closed state based on the second-level digital signal (1), the analog signal (R1+R2) corresponding to the second resistance value, the fourth-level digital signal (1), and the analog signal (R6+R5) corresponding to the seventh resistance value.
[0365] Table 4
[0366]
[0367] Since the second switching component is normally in a closed state, such as components like the hood and doors in a vehicle, it is designed to be open, causing the first DI switch, first AI switch, second DI switch, and second AI switch to be closed, and closed, causing them to be open. This ensures that the DI switches and AI switches are more frequently disconnected, thus breaking the entire circuit and reducing current loss.
[0368] It is understandable that if the second switching component is normally open, the opposite setting can also be adopted. That is, when the second switching component is open, the first DI switch, the first AI switch, the second DI switch, and the second AI switch are in the off state, and when the second switching component is closed, the first DI switch, the first AI switch, the second DI switch, and the second AI switch are in the closed state. The specific implementation method is similar, and for the sake of simplicity, it will not be described in detail here.
[0369] It should be understood that Table 4 is merely an example, illustrating the case where the first and third levels are low (0) and the second and fourth levels are high (1). In actual applications, the first and third levels can also be high, and the second and fourth levels can be low. This application does not specifically limit this.
[0370] As can be understood, based on the information above, the first AI switch and the first DI switch are equivalent to fully locked switches; the second AI switch and the second DI switch are equivalent to partially locked switches. Therefore, a fully locked switch may be in a short-circuit or open-circuit state, and a partially locked switch may also be in a short-circuit or open-circuit state. The second control unit can determine the short-circuit or open-circuit state of the fully locked switch, and the short-circuit or open-circuit state of the partially locked switch, through the following methods.
[0371] For example, method 1000 also includes any one or more of the following.
[0372] Item 1: The second control unit determines that the connection state between the first DI switch and the first AI switch and the second control unit is an open circuit connection state based on the digital signal of the second level from the first DI switch and the analog signal corresponding to the fourth resistance value from the first AI switch; wherein, the fourth resistance value is greater than the first resistance value and the fourth resistance value is greater than the second resistance value.
[0373] The connection status between the first DI switch and the first AI switch and the second control unit is an open circuit connection, which can also be understood as: the full lock switch is in an open circuit state, or the full lock switch and the second control unit are in an open circuit connection.
[0374] Referring to Table 5, the second level digital signal is, for example, a high-level signal (denoted as 1). Alternatively, in practical applications, the second level can also be a low-level signal.
[0375] When the second control unit is disconnected from the full lock switch, it is equivalent to the resistance in the circuit where the first AI switch is located being infinitely large. Therefore, the fourth resistance is greater than the first resistance (R1) and also greater than the second resistance (R1+R2). The analog signal corresponding to the fourth resistance can be recorded as >R1+R2.
[0376] Item 2: Based on the digital signal of the first level from the first DI switch and the analog signal corresponding to the fifth resistance value from the first AI switch, determine that the connection state between the first DI switch and the first AI switch and the second control unit is a short-circuit connection state; wherein, the fifth resistance value is less than the first resistance value and the fifth resistance value is less than the second resistance value.
[0377] The connection status between the first DI switch and the first AI switch and the second control unit is a short circuit connection, which can also be understood as: the full lock switch is in a short circuit state, or the full lock switch and the second control unit are in a short circuit connection.
[0378] Referring to Table 5, the first level digital signal is, for example, a low level signal (denoted as 0). Alternatively, in practical applications, the first level can also be a high level.
[0379] When the second control unit is short-circuited with the full lock switch, the resistance in the circuit containing the first AI switch is equivalent to 0Ω or close to 0Ω. Therefore, the fifth resistance is less than the first resistance (R1) and also less than the second resistance (R1+R2). The analog signal corresponding to the fifth resistance can be recorded as 0Ω.
[0380] Item 3: Based on the digital signal of the fourth level from the second DI switch and the analog signal corresponding to the ninth resistance value from the second AI switch, determine that the connection state between the second DI switch, the second AI switch and the second control unit is an open circuit connection state; wherein, the ninth resistance value is greater than the sixth resistance value and the ninth resistance value is greater than the seventh resistance value.
[0381] The connection status between the second DI switch and the second AI switch and the second control unit is an open circuit connection, which can also be understood as: the half-lock switch is in an open circuit state, or the half-lock switch and the second control unit are in an open circuit connection.
[0382] Referring to Table 5, the fourth level digital signal is, for example, a high-level signal (denoted as 1). Alternatively, in practical applications, the fourth level can also be a low-level signal.
[0383] When the second control unit is disconnected from the half-lock switch, it is equivalent to the resistance in the circuit where the second AI switch is located being infinitely large. Therefore, the ninth resistance is greater than the sixth resistance (R6) and also greater than the seventh resistance (R6+R5). The analog signal corresponding to the ninth resistance can be recorded as >R6+R5.
[0384] Item 4: Based on the digital signal at the third level from the second DI switch and the analog signal corresponding to the tenth resistance value from the second AI switch, determine that the connection state between the second DI switch, the second AI switch and the second control unit is a short-circuit connection state; wherein, the tenth resistance value is less than the sixth resistance value and the tenth resistance value is less than the seventh resistance value.
[0385] The connection state between the second DI switch and the second AI switch and the second control unit is a short-circuit connection state, which can also be understood as: the half-lock switch is in a short-circuit state, or the half-lock switch and the second control unit are in a short-circuit connection state.
[0386] Referring to Table 5, the third level digital signal is, for example, a low-level signal (denoted as 0). Alternatively, in practical applications, the third level can also be a high-level signal.
[0387] When the second control unit is short-circuited with the half-lock switch, it is equivalent to the resistance in the circuit where the second AI switch is located being 0Ω or close to 0Ω. Therefore, the tenth resistance is less than the sixth resistance (R6) and also less than the seventh resistance (R6+R5). The analog signal corresponding to the tenth resistance can be recorded as 0Ω.
[0388] Table 5
[0389]
[0390] Combining Tables 4 and 5, it can be seen that the output signals are different when the electric magnetic lock body is in the fully open, partially locked, fully locked, open-circuit, and short-circuit states. This allows the second control unit, based on the detected digital and analog signals from the electric magnetic lock body, to not only determine the opening and closing state of the second opening and closing component, but also accurately identify whether the electric magnetic lock body is in a short-circuit or open-circuit state, thus determining whether the electric magnetic lock body is faulty. Furthermore, referring to Table 5, the second control unit can not only identify whether the electric magnetic lock body is faulty as a whole, but also identify whether the partially locked switch or fully locked switch is faulty individually, thus more accurately pinpointing the fault location.
[0391] This not only reduces false alarms about the opening and closing status of the second opening and closing component caused by lock body malfunctions, but also promptly alerts users to lock body malfunctions, allowing them to address the problem in a timely manner and improving the user experience.
[0392] Based on the above embodiments, optionally, when there is an open circuit or short circuit connection between the switch and the second control unit in the electric locking body, for example, when the connection between the half-lock switch and the second control unit is open circuit or short circuit, or when the connection between the full-lock switch and the second control unit is open circuit or short circuit, the second control unit can send a second message, which is used to indicate that the second opening and closing component is abnormal.
[0393] The second control unit sends a second message that is similar to the first message output by the first control unit. Please refer to the description above for details, which will not be repeated here.
[0394] The difference lies in the fact that, for electrically operated lock bodies, the second control unit can more accurately determine whether the malfunction is caused by a half-lock switch or a fully-lock switch. Optionally, the second information can also be used to indicate the malfunctioning switch and the cause of the malfunction. For example, when the half-lock switch is short-circuited, the second information can be used to indicate that the half-lock switch is short-circuited; when the half-lock switch is open-circuited, the second information can be used to indicate that the half-lock switch is open-circuited; when the fully-lock switch is short-circuited, the second information can be used to indicate that the fully-lock switch is short-circuited; when the fully-lock switch is open-circuited, the second information can be used to indicate that the fully-lock switch is open-circuited.
[0395] In this way, the second control unit can indicate the fault location and cause to other components or users to facilitate subsequent maintenance.
[0396] It is understood that the second opening / closing component, the electrically operated magnetic lock body, and the second control unit provided in this application embodiment can be installed in a vehicle. The second control unit can be a vehicle body domain controller, or it can be any other component in the vehicle capable of acquiring signals from the electrically operated magnetic lock body. Furthermore, the second control unit can also perform the following steps.
[0397] and Figure 8 The scheme shown is similar. When the vehicle is in motion, if the second control unit determines that there is a switch in the electric magnetic lock body and the second control unit in an open circuit or short circuit state, or determines that the electric magnetic lock body is in a half-open or open state, then the third safety strategy is executed.
[0398] When the vehicle is stationary, if the second control unit determines that there is an open circuit or short circuit between the switch and the second control unit in the electric magnetic lock body, or determines that the electric magnetic lock body is in a half-open or open state, the fourth safety strategy is executed upon receiving a third instruction instructing the vehicle to move.
[0399] The second control unit may first determine the vehicle status, or it may first determine the status of the electric magnetic lock body. This application embodiment does not specifically limit this.
[0400] It should be understood that the third instruction is similar to the first instruction. This implementation method is similar to the way the first control unit executes the first security policy or the second security policy. For details, please refer to the description above, which will not be repeated here.
[0401] For example, the third safety strategy includes one or more of the following: pulling over to the side of the road; switching the vehicle mode to the target vehicle mode; or controlling the vehicle speed to be less than a first threshold. The fourth safety strategy includes: controlling the output of a first prompt, the first prompt being used to alert the user to an abnormality in the second opening / closing component; and / or controlling the vehicle to remain stationary.
[0402] It should be understood that the third security strategy is similar to the first security strategy, and the fourth security strategy is similar to the second security strategy. For details, please refer to the description above, which will not be repeated here.
[0403] Compared with the above Figure 9 The process shown is similar; in response to the user's input operation on button 902, the vehicle can drive normally. That is, method 1000 may further include: the second control unit receiving a second input from the user, the second input indicating that the user has confirmed the abnormal state of the second opening / closing component; and in response to the second input, controlling the vehicle to drive upon receiving a fourth command instructing the vehicle to drive.
[0404] The fourth instruction is similar to the second instruction. The second input is similar to the first input. This implementation is similar to the implementation described above where the first control unit responds to the first input and controls the vehicle's movement upon receiving the second instruction; details can be found in the description above and will not be repeated here.
[0405] As can be seen from Table 4 above, when the second switching component switches between the open state and the half-open state, the level of the digital signal output by the second DI switch changes; when the second switching component switches between the closed state and the half-open state, the level of the digital signal output by the first DI switch changes.
[0406] Therefore, when the second opening / closing component switches between the open state and the half-open state, the vehicle can be woken up based on the level change of the digital signal output by the second DI switch; when the second opening / closing component switches between the closed state and the half-open state, the vehicle can be woken up based on the level change of the digital signal output by the first DI switch.
[0407] For example, method 1000 also includes one or more of the following.
[0408] The vehicle is woken up when the digital signal output by the first DI switch is switched from a first level to a second level; the vehicle is woken up when the digital signal output by the first DI switch is switched from a second level to a first level; the vehicle is woken up when the digital signal output by the second DI switch is switched from a third level to a fourth level; or, the vehicle is woken up when the digital signal output by the second DI switch is switched from a fourth level to a third level.
[0409] That is, when the second opening and closing component switches from the half-open state to the closed state, the digital signal output by the first DI switch switches from the first level to the second level; if the second control unit detects that the digital signal output by the first DI switch switches from the first level to the second level, the second control unit can wake up the whole vehicle, or the second control unit instructs the whole vehicle controller to wake up the whole vehicle.
[0410] When the second opening / closing component switches from the closed state to the half-open state, the digital signal output by the first DI switch switches from the second level to the first level; if the second control unit detects that the digital signal output by the first DI switch has switched from the second level to the first level, the second control unit can wake up the whole vehicle, or the second control unit instructs the whole vehicle controller to wake up the whole vehicle.
[0411] When the second opening / closing component switches from the open state to the half-open state, the digital signal output by the second DI switch switches from the third level to the fourth level. If the second control unit detects that the digital signal output by the second DI switch has switched from the third level to the fourth level, the second control unit can wake up the vehicle, or the second control unit can instruct the vehicle controller to wake up the vehicle.
[0412] When the second opening / closing component switches from a half-open state to an open state, the digital signal output by the second DI switch switches from a fourth level to a third level. If the second control unit detects that the digital signal output by the second DI switch has switched from a fourth level to a third level, the second control unit can wake up the vehicle, or the second control unit can instruct the vehicle controller to wake up the vehicle.
[0413] As an example, if the electrically operated magnetic lock body consists of only one AI switch and one DI switch, when the second opening / closing component switches between the open and partially open states, the control unit can obtain the digital signal with changing levels (switching between 0 and 1), thus enabling the vehicle to be activated. However, when the opening / closing component switches between the closed and partially open states, the control unit obtains only high-level digital signals and cannot obtain the digital signal with changing levels, resulting in the inability to activate the vehicle. This could lead to the first application incorrectly displaying the status of the opening / closing component, or cause other security risks, affecting the user experience.
[0414] In one example, taking a car door as the opening and closing component, when the vehicle is powered off and the door is in a half-open state, the door switches from the half-open state to the closed state in response to the user's action of closing the door. However, since the vehicle is powered off, and the switch from the half-open state to the closed state does not generate a level change in the digital signal, the vehicle cannot be woken up. Consequently, the control unit will not indicate the new state of the door (i.e., the closed state) to the first application, and the door state displayed by the first application will still be the half-open state.
[0415] This prevents users from determining the correct status of the car door from the first application. Users might then assume the door isn't closed properly and need to close it again, resulting in a poor user experience.
[0416] In another example, taking the hood as the opening and closing component, after the vehicle is powered off, due to various factors such as being pried open or a collision, the hood switches from a closed state to a half-open state. In this case, no digital signal level switch occurs, resulting in the inability to wake up the vehicle. Consequently, the control unit will not send the new hood state (half-open state) to the first application, and the hood state displayed by the first application will still be the closed state.
[0417] This results in two problems: firstly, it fails to promptly remind users; secondly, when users need to use the vehicle and restart it, the hood status displayed on the in-cabin display remains closed instead of being updated to half-open. This means that if the hood switches from half-open to open due to factors such as bumps or strong winds while the vehicle is in motion, it may affect the driver and create a safety hazard.
[0418] Therefore, the electric magnetic locking body provided in this application embodiment, by including at least two AI switches and at least two DI switches, enables the entire vehicle to be woken up by any state switch of the second opening and closing component, so that the second control unit can indicate the latest state of the second opening and closing component to the first application. This not only enables the first application to display the opening and closing state of the second opening and closing component in real time and accurately, but also enables the user to be promptly alerted when the electric magnetic locking body malfunctions, thereby improving security and user experience.
[0419] In addition, when the second opening and closing component switches states due to accidents such as theft or collision, it can also wake up the whole vehicle and output an alarm in time to improve equipment security.
[0420] It should be noted that, in the embodiments of this application, all steps in the accompanying drawings are merely examples, and the order of the numbers of the methods described above does not imply the order of execution and should not constitute any limitation on the embodiments of this application. For example, in practical applications, the execution order of the steps shown in this application can be adjusted, and some steps can be added or removed; the embodiments of this application do not limit this.
[0421] The above text combined Figures 6 to 12 The lock body and control method of the embodiments of this application are described in detail below. Figure 13 and Figure 14 This application describes in detail the control device according to embodiments of the present application. The control device includes modules or units for executing each part of the above embodiments. The modules or units shown may be software or hardware, or hardware, or a combination of software and hardware. The control device is only briefly illustrated below; for details of the implementation, please refer to the description of the foregoing method embodiments, which will not be repeated below.
[0422] Figure 13 This is a schematic block diagram of a control device 1300 provided in an embodiment of this application. Figure 13 As shown, the device 1300 includes a communication module 1301 and a processing module 1302.
[0423] The communication module 1301 can realize corresponding communication functions, such as interaction with other devices; and the communication module 1301 can also be called a communication interface, input / output interface, or communication unit, etc. The processing module 1302 can be used to perform processing operations.
[0424] In one possible implementation, the device 1300 is used to implement the steps performed by the first processing unit in the above method embodiment.
[0425] The communication module 1301 is used to acquire the digital signal output by the DI switch in the mechanical lock body and the analog signal output by the AI switch in the mechanical lock body;
[0426] The processing module 1302 is used to determine the opening and closing state of the first opening and closing component with the mechanical lock body based on the digital signal output by the DI switch and the analog signal output by the AI switch. The opening and closing state is either closed or open.
[0427] Optionally, the processing module 1302 is used to determine that the first switching component is in an open state based on the digital signal of the first level from the DI switch and the analog signal corresponding to the first resistance value from the AI switch; and to determine that the first switching component is in a closed state based on the digital signal of the second level from the DI switch and the analog signal corresponding to the second resistance value from the AI switch.
[0428] Optionally, the AI switch is connected in series with the first resistor and in parallel with the second resistor; wherein the second resistance is the sum of the first resistance and the third resistance of the second resistor; or, the AI switch is connected in series with the third resistor, and the AI switch and the third resistor connected in series are connected in parallel with the fourth resistor; wherein the resistance of the fourth resistor is the second resistance, and the resistance of the third resistor and the fourth resistor in parallel is the first resistance.
[0429] Optionally, the processing module 1302 is used to determine, based on the detected digital signal of the second level and the analog signal corresponding to the fourth resistance value, that the connection state between the mechanical lock body and the device 1300 is an open circuit connection state; wherein the fourth resistance value is greater than the first resistance value and the fourth resistance value is greater than the second resistance value; and / or, based on the detected digital signal of the first level and the analog signal corresponding to the fifth resistance value, determine that the connection state between the mechanical lock body and the device 1300 is a short circuit connection state; wherein the fifth resistance value is less than the first resistance value and the fifth resistance value is less than the second resistance value.
[0430] Optionally, the communication module 1301 is used to send first information when it is determined that the connection state between the mechanical lock body and the device 1300 is an open circuit connection state or a short circuit connection state. The first information is used to indicate a fault in the first opening and closing component.
[0431] Optionally, the first opening / closing component is applied to the vehicle; the processing module 1302 is configured to execute a first safety strategy when the vehicle is in motion if it is determined that the connection state between the mechanical lock body and the device 1300 is an open circuit or a short circuit, or that the first opening / closing component is in an open state; and / or, when the vehicle is stationary, if it is determined that the connection state between the mechanical lock body and the device 1300 is an open circuit or a short circuit, or that the first opening / closing component is in an open state, and upon receiving a first instruction instructing the vehicle to move, execute a second safety strategy.
[0432] The first safety strategy includes one or more of the following: pulling over to the side of the road; switching the vehicle mode to the target vehicle mode; or controlling the vehicle speed to be less than a first threshold; the second safety strategy includes: controlling the output of a first prompt, the first prompt being used to remind the user of an abnormality in the first opening and closing component; and / or controlling the vehicle to remain stationary.
[0433] Optionally, the communication module 1301 is used to receive a first input from the user, the first input being used to indicate that the user has confirmed the abnormal state of the first opening / closing component; the processing module 1302 is used to control the vehicle to drive in response to the first input, upon receiving a second instruction instructing the vehicle to drive.
[0434] Optionally, the processing module 1302 is used to wake up the vehicle by switching the digital signal output by the DI switch from a first level to a second level; and / or, to wake up the vehicle by switching the digital signal output by the DI switch from a second level to a first level.
[0435] In one possible implementation, the device 1300 is used to implement the steps performed by the second control unit in the above method embodiment.
[0436] The communication module 1301 is used to acquire the digital signal output by the first DI switch, the analog signal output by the first AI switch, the digital signal output by the second DI switch, and the analog signal output by the second AI switch in the electric magnetic locking body.
[0437] The processing module 1302 is used to determine the opening and closing state of the second opening and closing component equipped with an electric suction lock body based on the digital signals output by the first DI switch and the second DI switch, and the analog signals output by the first AI switch and the second AI switch. The opening and closing state is a closed state, an open state, or a half-open state.
[0438] Optionally, the processing module 1302 is configured to determine that the second switching component is in an open state based on a digital signal of a first level from the first DI switch, an analog signal corresponding to a first resistance value from the first AI switch, a digital signal of a third level from the second DI switch, and an analog signal corresponding to a sixth resistance value from the second AI switch; determine that the second switching component is in a half-open state based on a digital signal of a first level from the first DI switch, an analog signal corresponding to a first resistance value from the first AI switch, a digital signal of a fourth level from the second DI switch, and an analog signal corresponding to a seventh resistance value from the second AI switch; or, determine that the second switching component is in a closed state based on a digital signal of a second level from the first DI switch, an analog signal corresponding to a second resistance value from the first AI switch, a digital signal of a fourth level from the second DI switch, and an analog signal corresponding to a seventh resistance value from the second AI switch.
[0439] Optionally, the first AI switch satisfies any one of the following: the first AI switch is connected in series with the first resistor and in parallel with the second resistor, the second resistance being the sum of the first resistance and the third resistance of the second resistor; or, the first AI switch is connected in series with the third resistor, and the first AI switch and the third resistor connected in series are connected in parallel with the fourth resistor, the resistance of the fourth resistor being the second resistance, and the resistance of the third resistor and the fourth resistor in parallel being the first resistance.
[0440] The second AI switch satisfies any of the following: the second AI switch is connected in series with the sixth resistor and in parallel with the fifth resistor, and the seventh resistance is the sum of the sixth resistance of the sixth resistor and the eighth resistance of the fifth resistor; or, the second AI switch is connected in series with the seventh resistor, and the second AI switch and the seventh resistor connected in series are connected in parallel with the eighth resistor, the resistance of the eighth resistor is the seventh resistance, and the resistance of the seventh resistor and the eighth resistor in parallel is the sixth resistance.
[0441] Optionally, the processing module 1302 is configured to determine, based on the digital signal at a second level from the first digital input switch and the analog signal corresponding to the fourth resistance value from the first AI switch, that the connection state between the first DI switch and the first AI switch and the device 1300 is an open-circuit connection state; wherein the fourth resistance value is greater than the first resistance value and the fourth resistance value is greater than the second resistance value; and to determine, based on the digital signal at a fourth level from the second digital input switch and the analog signal corresponding to the ninth resistance value from the second AI switch, that the connection state between the second DI switch and the second AI switch and the device 1300 is an open-circuit connection state; wherein the ninth resistance value is greater than the sixth resistance value and the ninth resistance value is greater than the sixth resistance value. The resistance value is greater than the seventh resistance value; based on the digital signal of the first level from the first DI switch and the analog signal corresponding to the fifth resistance value from the first AI switch, the connection state between the first DI switch and the first AI switch and the device 1300 is determined to be a short-circuit connection state; wherein, the fifth resistance value is less than the first resistance value and the fifth resistance value is less than the second resistance value; or, based on the digital signal of the third level from the second DI switch and the analog signal corresponding to the tenth resistance value from the second AI switch, the connection state between the second DI switch and the second AI switch and the device 1300 is determined to be a short-circuit connection state; wherein, the tenth resistance value is less than the sixth resistance value and the tenth resistance value is less than the seventh resistance value.
[0442] Optionally, the communication module 1301 is used to control the transmission of second information when the connection between the switch and the device 1300 in the electric magnetic locking body is in an open circuit connection state or a short circuit connection state. The second information is used to indicate an abnormality in the second opening and closing component.
[0443] Optionally, the second opening / closing component is applied to the vehicle; the processing module 1302 is configured to execute a third safety strategy when the vehicle is in motion if it is determined that the connection between the switch and the device 1300 in the electric magnetic lock body is in an open or short-circuit state, or if it is determined that the electric magnetic lock body is in a half-open or open state; and / or, when the vehicle is stationary, if it is determined that the connection between the switch and the device 1300 in the electric magnetic lock body is in an open or short-circuit state, or if it is determined that the electric magnetic lock body is in a half-open or open state, and upon receiving a third instruction instructing the vehicle to move, execute a fourth safety strategy.
[0444] The third safety strategy includes one or more of the following: pulling over to the side of the road; switching the vehicle mode to the target vehicle mode; or controlling the vehicle speed to be less than a first threshold; the fourth safety strategy includes: controlling the output of a first prompt, the first prompt being used to remind the user of an abnormality in the second opening and closing component; and / or controlling the vehicle to remain stationary.
[0445] Optionally, the communication module 1301 is used to receive a second input from the user, the second input being used to indicate that the user has confirmed the abnormal state of the second opening / closing component; the processing module 1302 is used to control the vehicle to drive in response to the second input, upon receiving a fourth instruction instructing the vehicle to drive.
[0446] Optionally, the processing module 1302 is used to wake up the vehicle by switching the digital signal output by the first DI switch from a first level to a second level; to wake up the vehicle by switching the digital signal output by the first DI switch from a second level to a first level; to wake up the vehicle by switching the digital signal output by the second DI switch from a third level to a fourth level; or, to wake up the vehicle by switching the digital signal output by the second DI switch from a fourth level to a third level.
[0447] It should be understood that the device 1300 here is embodied in the form of a functional module. The term "module" here can refer to application-specific integrated circuits (ASICs), electronic circuits, processors (e.g., shared processors, proprietary processors, or group processors) and memory for executing one or more software or firmware programs, integrated logic circuits, and / or other suitable components supporting the described functionality. For example, when a module is implemented in the form of a processing element scheduler code, the processing element can be a general-purpose processor, such as a central processing unit (CPU), or other processors capable of calling program code, such as a controller. Furthermore, these modules can be integrated together to implement a system-on-a-chip (SOC).
[0448] In an optional example, those skilled in the art will understand that the device 1300 may specifically be the first control unit or the second control unit in the above embodiments. The device 1300 may be used to execute the various processes and / or steps corresponding to the first control unit or the second control unit in the above method embodiments. To avoid repetition, it will not be described again here.
[0449] The aforementioned device 1300 has the function of implementing the corresponding steps executed by the first control unit or the second control unit in the above method; the above function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above function. In the embodiments of this application, Figure 13 The device 1300 in the middle can also be a chip, such as a SOC.
[0450] Figure 14 A schematic block diagram of a control device 1400 provided in an embodiment of this application is shown. The device 1400 can be a chip system; or it can be an apparatus configured with a chip system to implement the methods shown in the above method embodiments. In this embodiment, the chip system can be composed of chips, or it can include chips and other discrete devices.
[0451] like Figure 14 As shown, the control device 1400 may include a processor 1410, which can be used to execute computer programs or instructions in memory to perform various steps and / or processes corresponding to the first control unit or the second control unit in the above method embodiments.
[0452] In one possible implementation, the control device 1400 further includes a communication interface 1420. The communication interface 1420 can be used to communicate with other devices via a transmission medium, thereby enabling the control device 1400 to communicate with other devices. The communication interface 1420 may be, for example, a transceiver, an input / output interface, a pin, a bus, a transceiver circuit, or a device capable of transmitting and receiving functions. The processor 1410 can utilize the communication interface 1420 to input and output data for executing the various steps and / or processes corresponding to the first control unit or the second control unit in the above method embodiments.
[0453] In one possible implementation, the control device 1400 further includes at least one memory 1430 for storing program instructions and / or data. The memory 1430 is coupled to the processor 1410. The coupling in this embodiment is an indirect coupling or communication connection between devices, units, or modules, and can be electrical, mechanical, or other forms, used for information exchange between devices, units, or modules. The processor 1410 may operate in conjunction with the memory 1430. The processor 1410 may execute program instructions stored in the memory 1430.
[0454] Optionally, the memory 1430 may be a memory disposed in the device 1400. Exemplarily, the memory 1430 may be integrated with the processor 1410; or, the memory 1430 may be disposed separately from the processor 1410.
[0455] Optionally, the memory 1430 may be a memory outside of the device 1400. It may also be a memory outside of the control device 1400.
[0456] This application provides an electronic device, which includes a processor and a memory; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, causing the electronic device to perform the above-described method.
[0457] This application provides a chip. The chip includes a processor, which is used to call a computer program in memory to execute the technical solutions in the above embodiments. Its implementation principle and technical effects are similar to those in the related embodiments described above, and will not be repeated here.
[0458] This application provides a mechanical lock system, which includes a mechanical lock body and a first control unit. The mechanical lock body and the first control unit are specifically described in the method embodiments above.
[0459] This application provides an electrically operated magnetic lock system, which includes an electrically operated magnetic lock body and a second control unit. The details of the electrically operated magnetic lock body and the second control unit can be found in the descriptions of the method embodiments above.
[0460] This application provides a vehicle that includes a mechanical lock system and a first opening and closing assembly; and / or, the vehicle includes an electrically operated magnetic lock system and a second opening and closing assembly.
[0461] This application provides a terminal, which includes a mechanical lock body system and a first opening and closing component; and / or, the vehicle includes an electrically operated magnetic lock body system and a second opening and closing component.
[0462] This application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, it implements the methods described above. The methods described in the above embodiments can be implemented wholly or partially by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted over the computer-readable medium. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.
[0463] In one possible implementation, a computer-readable medium may include random access memory (RAM), read-only memory (ROM), compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage or other magnetic storage devices, or any other medium intended to carry or store required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0464] This application provides a computer program product, which includes a computer program that, when run, causes a computer to perform the above-described method.
[0465] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0466] The term "multiple" in this document refers to two or more. The term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Furthermore, the character " / " in this document generally indicates an "or" relationship between the preceding and following related objects; in formulas, the character " / " indicates a "division" relationship between the preceding and following related objects. Additionally, it should be understood that in the description of the embodiments of this application, terms such as "first" and "second" are used only for descriptive purposes and should not be construed as indicating or implying relative importance or order.
[0467] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application.
[0468] It is understood that, in the embodiments of this application, the order of the above-mentioned process numbers does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
Claims
1. A mechanical lock body, characterized in that, The mechanical lock body includes: a digital input DI switch and an analog input AI switch; The DI switch is used to: output a first-level digital signal when in the closed state, and output a second-level digital signal when in the open state; The AI switch is used to: output an analog signal corresponding to a first resistance value when in the closed state, and output an analog signal corresponding to a second resistance value when in the open state; The digital signal output by the DI switch and the analog signal output by the AI switch are used to determine the opening and closing state of the first opening and closing component on which the mechanical lock body is installed, wherein the opening and closing state is either closed or open.
2. The lock body according to claim 1, characterized in that, The AI switch is connected in series with a first resistor, and the AI switch is connected in parallel with a second resistor; wherein the second resistance value is the sum of the first resistance value of the first resistor and the third resistance value of the second resistor; or, The AI switch is connected in series with the third resistor, and the AI switch and the third resistor, which are connected in series, are connected in parallel with the fourth resistor; wherein, the resistance of the fourth resistor is the second resistance value, and the resistance of the third resistor and the fourth resistor in parallel is the first resistance value.
3. The lock body according to claim 1 or 2, characterized in that, When the first opening / closing component is in the open state, the DI switch and the AI switch are in the closed state, and the DI switch outputs a digital signal of the first level, and the AI switch outputs an analog signal corresponding to the first resistance value; When the first switching component is in the closed state, the DI switch and the AI switch are in the disconnected state, and the DI switch outputs a digital signal of the second level, while the AI switch outputs an analog signal corresponding to the second resistance value.
4. A control method, characterized in that, Applied to a first control unit, the method includes: Acquire the digital signal output by the digital input DI switch in the mechanical lock body and the analog signal output by the analog input AI switch in the mechanical lock body; Based on the digital signal output by the DI switch and the analog signal output by the AI switch, the opening and closing state of the first opening and closing component with the mechanical lock body is determined, wherein the opening and closing state is either closed or open.
5. The method according to claim 4, characterized in that, The determination of the opening / closing state of the first opening / closing component, on which the mechanical lock body is mounted, based on the digital signal output by the DI switch and the analog signal output by the AI switch includes: Based on the digital signal of the first level from the DI switch and the analog signal corresponding to the first resistance value from the AI switch, the first switching component is determined to be in the open state; Based on the digital signal of the second level from the DI switch and the analog signal corresponding to the second resistance value from the AI switch, the first switching component is determined to be in the closed state.
6. The method according to claim 5, characterized in that, The AI switch is connected in series with a first resistor, and the AI switch is connected in parallel with a second resistor; wherein the second resistance value is the sum of the first resistance value of the first resistor and the third resistance value of the second resistor; or, The AI switch is connected in series with the third resistor, and the AI switch and the third resistor, which are connected in series, are connected in parallel with the fourth resistor; wherein, the resistance of the fourth resistor is the second resistance value, and the resistance of the third resistor and the fourth resistor in parallel is the first resistance value.
7. The method according to claim 5 or 6, characterized in that, The method further includes: Based on the detected digital signal of the second level and the analog signal corresponding to the fourth resistance value, the connection state between the mechanical lock body and the first control unit is determined to be an open circuit connection state; wherein, the fourth resistance value is greater than the first resistance value, and the fourth resistance value is greater than the second resistance value; and / or, Based on the detected digital signal of the first level and the analog signal corresponding to the fifth resistance value, it is determined that the connection state between the mechanical lock body and the first control unit is a short-circuit connection state; wherein, the fifth resistance value is less than the first resistance value and the fifth resistance value is less than the second resistance value.
8. The method according to claim 7, characterized in that, The method further includes: If it is determined that the connection between the mechanical lock body and the first control unit is an open circuit connection or a short circuit connection, a first message is sent, which is used to indicate a fault in the first opening and closing component.
9. The method according to any one of claims 4 to 8, characterized in that, The first opening and closing component is applied to a vehicle; The method further includes: When the vehicle is in motion, if it is determined that the connection between the mechanical lock body and the first control unit is in an open circuit or short circuit state, or if it is determined that the first opening / closing component is in an open state, then the first security strategy is executed; and / or, When the vehicle is stationary, if it is determined that the connection between the mechanical lock body and the first control unit is in an open circuit or short circuit state, or if it is determined that the first opening and closing component is in an open state, a second safety strategy is executed upon receiving a first instruction instructing the vehicle to move. The first safety policy includes one or more of the following: pulling over to the side of the road; switching the vehicle mode to the target vehicle mode; or controlling the vehicle speed to be less than a first threshold. The second safety strategy includes: controlling the output of a first prompt, the first prompt being used to remind the user that the first opening / closing component is malfunctioning; and / or controlling the vehicle to remain stationary.
10. The method according to claim 9, characterized in that, The method further includes: Upon receiving the user's first input, the first input is used to indicate that the user has confirmed the abnormal state of the first opening / closing component; In response to the first input, upon receiving a second instruction instructing the vehicle to move, the vehicle is controlled to move.
11. The method according to any one of claims 4 to 10, characterized in that, The method further includes: Based on the digital signal output by the DI switch switching from a first level to a second level, the entire vehicle is awakened; and / or, The vehicle is woken up by switching the digital signal output by the DI switch from the second level to the first level.
12. A mechanical lock body system, characterized in that, The device includes a mechanical lock body and a first control unit. The mechanical lock body includes a digital input (DI) switch and an analog input (AI) switch. The DI switch and the AI switch are respectively connected to the first control unit. The DI switch is used to: output a first-level digital signal when in the closed state, and output a second-level digital signal when in the open state; The AI switch is used to: output an analog signal corresponding to the first resistance when in the closed state, and output an analog signal corresponding to the second resistance value when in the open state; The first control unit is configured to: acquire the digital signal output by the DI switch and the analog signal output by the AI switch, and determine the opening and closing state of the first opening and closing component on which the mechanical lock body is provided based on the digital signal output by the DI switch and the analog signal output by the AI switch, wherein the opening and closing state is a closed state or an open state.
13. An electrically operated magnetic lock body, characterized in that, The electrically operated magnetic lock body includes: a first digital input (DI) switch, a first analog input (AI) switch, a second DI switch, and a second AI switch; The first DI switch is used to: output a digital signal of a first level when in the closed state, and output a digital signal of a second level when in the open state; The first AI switch is used to: output an analog signal corresponding to a first resistance value when in the closed state, and output an analog signal corresponding to a second resistance value when in the open state; The second DI switch is used to: output a digital signal of the third level when in the closed state, and output a digital signal of the fourth level when in the open state; The second AI switch is used to: output an analog signal corresponding to the sixth resistance value when in the closed state, and output an analog signal corresponding to the seventh resistance value when in the open state; The digital signals output by the first DI switch and the second DI switch, as well as the analog signals output by the first AI switch and the second AI switch, are used to: confirm the opening and closing state of the second opening and closing component on which the electric magnetic locking body is installed, the opening and closing state including the closed state, the half-open state, or the open state.
14. The lock body according to claim 13, characterized in that, The first AI switch satisfies any of the following: The first AI switch is connected in series with a first resistor and in parallel with a second resistor, the second resistance being the sum of the first resistance of the first resistor and the third resistance of the second resistor; or, The first AI switch is connected in series with the third resistor, and the first AI switch and the third resistor, which are connected in series, are connected in parallel with the fourth resistor. The resistance of the fourth resistor is the second resistance value, and the resistance of the third resistor and the fourth resistor in parallel is the first resistance value. The second AI switch satisfies any of the following: The second AI switch is connected in parallel with the fifth resistor and in series with the sixth resistor, and the seventh resistance value is the sum of the sixth resistance value of the sixth resistor and the eighth resistance value of the fifth resistor; or, The second AI switch is connected in series with the seventh resistor, and the second AI switch and the seventh resistor, which are connected in series, are connected in parallel with the eighth resistor. The resistance of the eighth resistor is the same as the resistance of the seventh resistor, and the resistance of the seventh resistor and the eighth resistor in parallel is the same as the resistance of the sixth resistor.
15. The lock body according to claim 13 or 14, characterized in that, When the second switching component is in the open state, the first DI switch, the second DI switch, the first AI switch and the second AI switch are in the closed state, and the first DI switch outputs a digital signal of the first level, the second DI switch outputs a digital signal of the third level, the first AI switch outputs an analog signal corresponding to the first resistance value, and the second AI switch outputs an analog signal corresponding to the sixth resistance value. When the second switching component is in a half-open state, the first DI switch and the first AI switch are in a closed state, the second DI switch and the second AI switch are in an open state, and the first DI switch outputs a digital signal of the first level, the first AI switch outputs an analog signal corresponding to the first resistance value, the second DI switch outputs a digital signal of the fourth level, and the second AI switch outputs an analog signal corresponding to the seventh resistance value; or... When the second switching component is in the closed state, the first DI switch, the second DI switch, the first AI switch and the second AI switch are in the open state, and the first DI switch outputs a digital signal of the second level, the first AI switch outputs an analog signal corresponding to the second resistance value, the second DI switch outputs the digital signal of the fourth level, and the second AI switch outputs the analog signal corresponding to the seventh resistance value.
16. A control method, characterized in that, The method, applied to a second control unit, includes: Acquire the digital signal output by the first digital input DI switch, the analog signal output by the first analog input AI switch, the digital signal output by the second DI switch, and the analog signal output by the second AI switch in the electric magnetic locking body; Based on the digital signals output by the first DI switch and the second DI switch, and the analog signals output by the first AI switch and the second AI switch, the opening and closing state of the second opening and closing component equipped with the electric suction lock body is determined, wherein the opening and closing state is a closed state, an open state, or a half-open state.
17. The method according to claim 16, characterized in that, Determining the opening / closing state of the second opening / closing assembly, which is equipped with the electrically operated magnetic lock body, includes: Based on the digital signal at a first level from the first DI switch, the analog signal corresponding to the first resistance value from the first AI switch, the digital signal at a third level from the second DI switch, and the analog signal corresponding to the sixth resistance value from the second AI switch, the second opening / closing component is determined to be in the open state. Based on the digital signal at the first level from the first DI switch, the analog signal corresponding to the first resistance value from the first AI switch, the digital signal at the fourth level from the second DI switch, and the analog signal corresponding to the seventh resistance value from the second AI switch, it is determined that the second switching component is in a half-open state; or, Based on the digital signal at the second level from the first DI switch, the analog signal corresponding to the second resistance value from the first AI switch, the digital signal at the fourth level from the second DI switch, and the analog signal corresponding to the seventh resistance value from the second AI switch, the second switching component is determined to be in the closed state.
18. The method according to claim 17, characterized in that, The first AI switch satisfies any of the following: The first AI switch is connected in series with a first resistor and in parallel with a second resistor, the second resistance being the sum of the first resistance of the first resistor and the third resistance of the second resistor; or, The first AI switch is connected in series with the third resistor, and the first AI switch and the third resistor, which are connected in series, are connected in parallel with the fourth resistor. The resistance of the fourth resistor is the second resistance value, and the resistance of the third resistor and the fourth resistor in parallel is the first resistance value. The second AI switch satisfies any of the following: The second AI switch is connected in parallel with the fifth resistor and in series with the sixth resistor, and the seventh resistance value is the sum of the sixth resistance value of the sixth resistor and the eighth resistance value of the fifth resistor; or, The second AI switch is connected in series with the seventh resistor, and the second AI switch and the seventh resistor, which are connected in series, are connected in parallel with the eighth resistor. The resistance of the eighth resistor is the same as the resistance of the seventh resistor, and the resistance of the seventh resistor and the eighth resistor in parallel is the same as the resistance of the sixth resistor.
19. The method according to claim 17 or 18, characterized in that, The method further includes at least one of the following: Based on the digital signal at the second level from the first DI switch and the analog signal corresponding to the fourth resistance value from the first AI switch, the connection state between the first DI switch and the first AI switch and the second control unit is determined to be an open circuit connection state; wherein, the fourth resistance value is greater than the first resistance value and the fourth resistance value is greater than the second resistance value; Based on the digital signal of the fourth level from the second DI switch and the analog signal corresponding to the ninth resistance value from the second AI switch, the connection state between the second DI switch and the second AI switch and the second control unit is determined to be an open circuit connection state; wherein, the ninth resistance value is greater than the sixth resistance value and the ninth resistance value is greater than the seventh resistance value; Based on the digital signal at the first level from the first DI switch and the analog signal corresponding to the fifth resistance value from the first AI switch, the connection state between the first DI switch and the first AI switch and the second control unit is determined to be a short-circuit connection state; wherein, the fifth resistance value is less than the first resistance value, and the fifth resistance value is less than the second resistance value; or, Based on the digital signal at the third level from the second DI switch and the analog signal corresponding to the tenth resistance value from the second AI switch, the connection state between the second DI switch and the second AI switch and the second control unit is determined to be a short-circuit connection state; wherein, the tenth resistance value is less than the sixth resistance value and the tenth resistance value is less than the seventh resistance value.
20. The method according to claim 19, characterized in that, The method further includes: If the connection between the switch and the second control unit in the electric magnetic locking body is in an open circuit or short circuit state, the control sends a second message, which is used to indicate that the second opening and closing component is abnormal.
21. The method according to claim 20, characterized in that, The second opening and closing component is applied to a vehicle; The method further includes: While the vehicle is in motion, if it is determined that the connection between the switch in the electric magnetic lock body and the second control unit is in an open circuit or short circuit state, or if it is determined that the electric magnetic lock body is in a half-open or open state, then a third safety strategy is executed; and / or, When the vehicle is stationary, if it is determined that the connection between the switch in the electric magnetic lock body and the second control unit is in an open circuit or short circuit state, or if it is determined that the electric magnetic lock body is in a half-open or open state, a fourth safety strategy is executed upon receiving a third instruction instructing the vehicle to move. The third safety strategy includes one or more of the following: pulling over to the side of the road; switching the vehicle mode to the target vehicle mode; or controlling the vehicle speed to be less than a first threshold. The fourth safety strategy includes: controlling the output of a first prompt, the first prompt being used to remind the user of an abnormality in the second opening / closing component; and / or controlling the vehicle to remain stationary.
22. The method according to claim 21, characterized in that, The method further includes: The system receives a second input from the user, which indicates that the user has confirmed the abnormal state of the second opening / closing component. In response to the second input, upon receiving a fourth instruction instructing the vehicle to move, the vehicle is controlled to move.
23. The method according to any one of claims 16 to 22, characterized in that, The method further includes at least one of the following: The vehicle is woken up by switching the digital signal output by the first DI switch from the first level to the second level. The vehicle is woken up by switching the digital signal output by the first DI switch from the second level to the first level. The vehicle is woken up by switching the digital signal output from the second DI switch from the third level to the fourth level. or, The digital signal output by the second DI switch is switched from the fourth level to the third level to wake up the vehicle.
24. An electrically operated magnetic locking system, characterized in that, The device includes an electrically operated magnetic lock body and a second control unit. The electrically operated magnetic lock body includes a first digital input (DI) switch, a first analog input (AI) switch, a second DI switch, and a second AI switch. The first DI switch, the first AI switch, the second DI switch, and the second AI switch are respectively connected to the second control unit. The first DI switch is used to: output a digital signal of a first level when in the closed state, and output a digital signal of a second level when in the open state; The first AI switch is used to: output an analog signal corresponding to a first resistance value when in the closed state, and output an analog signal corresponding to a second resistance value when in the open state; The second DI switch is used to: output a digital signal of the third level when in the closed state, and output a digital signal of the fourth level when in the open state; The second AI switch is used to: output an analog signal corresponding to the sixth resistance value when in the closed state, and output an analog signal corresponding to the seventh resistance value when in the open state; The second control unit is configured to: acquire the digital signals output by the first DI switch and the second DI switch, and the analog signals output by the first AI switch and the second AI switch; and based on the digital signals output by the first DI switch and the second DI switch, and the analog signals output by the first AI switch and the second AI switch, confirm the opening and closing state of the second opening and closing component on which the electric suction lock body is provided, the opening and closing state including a closed state, a half-open state, or an open state.
25. A terminal device, characterized in that, Includes the first opening / closing assembly and the mechanical lock body as described in any one of claims 1 to 3; or, Includes the mechanical lock body system and the first opening / closing component as described in claim 12; or, Includes the second opening / closing assembly and the electrically operated magnetic locking body as described in any one of claims 13 to 15; or, It includes the electric suction lock system and the second opening and closing assembly as described in any one of claims 24.
26. A control device, characterized in that, It includes a module for performing the method as described in any one of claims 4 to 11; or, it includes a module for performing the method as described in any one of claims 16 to 23.
27. An electronic device, characterized in that, Includes a processor that executes computer execution instructions to implement the method as claimed in any one of claims 4 to 11, or the method as claimed in any one of claims 16 to 23.
28. A computer program product, characterized in that, The computer program product includes computer program code that, when run on an electronic device, causes the electronic device to perform the method as claimed in any one of claims 4 to 11, or the method as claimed in any one of claims 16 to 23.