Device state prompting device and method

By designing a device status prompt device including magnetic positioning member, status display member, rotary member, rotary switch member and wireless transceiver unit, the shortcomings of the prior art in flexibility, interactivity, real-time, installation convenience and energy efficiency are solved, real-time display and remote monitoring of the device status are realized, and the efficiency and accuracy of equipment management are improved.

CN119649707AInactive Publication Date: 2025-03-18NANJING HYDRAULIC RES INST
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202510168479.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-17
Publication Date
2025-03-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing equipment status indicator technology has shortcomings in flexibility, interactivity, real-time, installation convenience and energy efficiency, and it is difficult to meet the needs of modern industrial environment for monitoring the status of intelligent and interconnected equipment.

Method used

A device status prompt device is designed, using magnetic positioning parts to be adsorbed on the surface of the device to be monitored, equipped with a status display part, a rotating part, a rotating switch part and a wireless transceiver unit to realize real-time display and remote monitoring of the device status.

Benefits of technology

This device not only has a simple structure and convenient operation, but can effectively prompt and record the operating status of the equipment, but also realizes remote monitoring of the equipment status through wireless communication. It has the characteristics of intuitive display, accurate identification, convenient installation, and efficient management, and is suitable for the status management of various equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119649707A_ABST
    Figure CN119649707A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment state prompting device and method, and belongs to the technical field of equipment state monitoring and indication. Comprising a magnetic attraction positioning part, a state display part, a rotating part, a rotary switch part, a wireless transceiving unit and a power supply part, the magnetic attraction positioning piece is provided with an accommodating space; the state display part is connected to the magnetic attraction positioning part in a matched mode. The rotating piece is arranged between the magnetic attraction positioning piece and the state display piece and is rotationally connected to the magnetic attraction positioning piece; the rotary switch piece is connected to the rotating piece; the wireless transmit-receive unit is connected to the rotary switch member. The system can effectively prompt and record the equipment operation state, realizes remote monitoring of the equipment state through wireless communication, has the characteristics of visual display, accurate identification, convenient installation, efficient management and the like, and is suitable for state management of various equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of equipment status monitoring and indication, and in particular relates to an equipment status prompting device and method. Background Art

[0002] In modern industrial environments, effective management and maintenance of equipment is essential to ensure production efficiency. Traditional equipment status indication methods usually rely on physical signboards, LED lights or display screens at fixed locations. Although these methods can convey basic information, they have the following limitations: (i) Users need to check the status of equipment regularly and cannot receive updates instantly, especially when operating in large factories or multiple locations. (ii) Many indicator devices are fixed in design and difficult to quickly deploy to different types of equipment, especially those that do not have a suitable mounting surface. (iii) Limited communication capabilities: Some existing solutions do not support remote data transmission, limiting their potential for application in distributed systems.

[0003] With the development of industry, the market demand for more intelligent and interconnected equipment status monitoring solutions is growing. Existing equipment status indication technologies are gradually showing their shortcomings in terms of flexibility, interactivity, real-time performance, installation convenience and energy efficiency. Therefore, there is an urgent need for a new type of equipment status prompt device that can overcome the above shortcomings while providing better user experience and technical performance. Summary of the invention

[0004] Purpose of the invention: In order to solve the above problems, the present invention provides a device and method for prompting the status of an equipment.

[0005] Technical solution: A device for prompting equipment status, comprising: A magnetic positioning member, used to be attached to the surface of the device to be monitored; the magnetic positioning member has a containing space; A status display component adapted to be connected to the magnetic positioning component; the status display component has a display window for displaying the current status of the device to be monitored; A rotating member, disposed between the magnetic positioning member and the status display member and rotatably connected to the magnetic positioning member; A rotary switch element connected to the rotating element and rotating synchronously therewith; the rotary switch element is configured to generate N groups of different status signals; A wireless transceiver unit is connected to the rotary switch and is disposed in the accommodating space; the wireless transceiver unit is configured to receive and transmit status signals.

[0006] In a further embodiment, the wireless transceiver unit comprises: a microcontroller for controlling the state of the rotary switch member via its digital output pins; A wireless transceiver configured to implement wireless data transmission; The plurality of digital pins of the microcontroller are respectively connected to the control input terminals of the rotary switch element to selectively activate different output paths of the rotary switch element; The microcontroller is connected to the wireless transceiver via an SPI interface.

[0007] In a further embodiment, the rotating member is evenly divided into N different state display areas along its circumference, where N is an integer greater than 1.

[0008] In a further embodiment, a cross star groove is provided at the bottom center of the rotating member; and a cross star shaped protrusion which is adaptively connected to the cross star groove is provided on the rotary switch member.

[0009] In a further embodiment, it also includes: A power supply is arranged in the accommodating space and is used to supply power to the wireless transceiver unit.

[0010] In another technical solution, a device status prompt method based on the above is provided, comprising the following steps: configuring the digital input pins of the microcontroller to be connected to different output terminals of the rotary switch element, detecting the switch position change of the rotary switch element, and determining the switch state according to the switch position change; and establishing a communication connection with the wireless transceiver through the SPI interface; Constructing an information structure having a digital structure, and acquiring device status prompt data based on the information structure; Read the switch status of the rotary switch according to a predetermined period, and update the device status field in the message structure according to the switch status; Acquire the real-time data set of the current system operation, and update the elements in the real-time data set into the information structure body according to the digital structure to obtain the constructed message structure body; Use the wireless transceiver to send the constructed message structure to the specified target address.

[0011] In a further embodiment, the equipment status field includes at least: equipment operation, equipment shutdown for maintenance, equipment failure, and equipment deactivation.

[0012] In a further embodiment, the information structure includes at least the following bytes: message header, device code, device status, timestamp, battery level, signal strength description, and checksum.

[0013] In a further embodiment, the real-time data set includes at least: system operating time and battery voltage value.

[0014] In a further embodiment, updating the elements in the real-time data set into the information structure according to the digital structure to obtain a constructed message structure includes the following steps: Get the current system running time and update it in the message structure; read the battery voltage value from the analog input pin, convert the battery voltage value into the battery power in percentage form, and fill in the corresponding field; By performing an XOR operation on all bytes in the message structure except a message header, a message tail, and a checksum, a checksum is calculated, and a checksum field of the message structure is set; The calculation formula of the checksum is as follows: ; In the formula, is the checksum, is the XOR symbol, , , , …, Is the valid data involved in the verification and calculation, It is the total number of bytes in the message.

[0015] Beneficial effects: (1) The present invention is not only simple in structure and easy to operate, but also can effectively prompt and record the operating status of the equipment. It also realizes remote monitoring of the equipment status through wireless communication. It has the characteristics of intuitive display, accurate identification, easy installation, and efficient management. It is suitable for the status management of various equipment.

[0016] (2) The magnetic base design of the present invention allows the device to be quickly adsorbed on any metal surface, adapting to installation requirements in different scenarios; the present invention adopts a low-power design, which extends battery life, reduces replacement frequency, and reduces maintenance costs; the miniaturized design of the entire device also helps to reduce material usage and is in line with environmental protection concepts.

[0017] (3) The present invention will update in real time when the equipment status changes and send it through the wireless network, supporting centralized management and automated processing, which will help improve overall operational efficiency; the data collected through wireless communication can be integrated into a larger management system for advanced applications such as predictive maintenance and resource scheduling. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram of the structure of the device in the present invention; Figure 2 It is a structural schematic diagram of a status display component; Figure 3 It is a schematic diagram of the structure of the rotating part; Figure 4 It is a schematic diagram of the assembly of the rotating part and the wireless transceiver unit; Figure 5 It is a structural schematic diagram of a magnetic positioning component; Figure 6 It is the communication protocol table; Figure 7 It is the circuit schematic diagram of the wireless transceiver unit.

[0019] Figures 1 to 7 The markings are as follows: magnetic positioning member 1, status display member 2, rotating member 3, rotary switch member 4, microcontroller 5, wireless transceiver circuit board 6, mounting screw hole 7, center screw hole 8, battery cover 9, magnet 10, wireless transceiver 11. DETAILED DESCRIPTION

[0020] Example 1 like Figure 1 As shown, this embodiment provides a device status prompt device, including: a magnetic positioning member 1, a status display member 2, a rotating member 3, a rotating switch member 4, a wireless transceiver unit, and a power supply member. The device is a circular structure with a diameter of 12 cm and a thickness of 1.2 cm.

[0021] The magnetic positioning member 1 is configured to be adsorbed on the surface of the device to be monitored; the magnetic positioning member 1 has a receiving space. The magnetic positioning member 1 is provided with a magnet 10 for adsorbing on the device to be monitored. The magnetic positioning member 1 is a magnetic base. Figure 5 As shown, a central screw hole 8 is provided at the center of the magnetic positioning member 1 for assembling the status display member 2 .

[0022] The status display component 2 is adapted to be connected to the magnetic positioning component 1. The status display component 2 is configured as a PVC cover plate, and the PVC cover plate is fixed on the magnetic positioning component 1 through a central axis.

[0023] The design of the magnetic base and PVC cover makes the whole device strong yet lightweight, and easy to install on metal surfaces without the need for additional fixing tools.

[0024] like Figure 2 As shown, the status display element 2 has a display window for displaying the current status of the device to be monitored. The display window is located on the PVC cover plate and can clearly display the current device status. The user only needs to observe the window to understand the operation status of the device.

[0025] The rotating member 3 is installed between the magnetic positioning member 1 and the status display member 2 and is rotatably connected to the magnetic positioning member 1. The rotating member 3 is configured as a rotating disk. Figure 3As shown, the rotating member 3 is evenly divided into N different status display areas along its circumference. In this embodiment, N is set to 4. The four status display areas correspond to equipment operation, shutdown maintenance, equipment failure, and equipment out of service. These status areas are evenly arranged along the circumference of the disk, each area occupies a 90-degree sector area, and are marked in green, blue, orange, and red, respectively.

[0026] In addition, the edge of the rotating member 3 is provided with a raised portion for easy manual adjustment, so that the user can easily adjust the device status without complicated operating steps.

[0027] The rotary switch member 4 is connected to the rotating member 3 and rotates synchronously therewith. The rotary switch member 4 is configured to generate N groups of different status signals. The rotary switch member 4 is configured as a 4-position rotary switch, specifically a single-pole four-throw rotary switch (SP4T). The 4-position rotary switch generates four signal combinations of 1000 (equipment operation status), 0100 (shutdown maintenance status), 0010 (equipment failure status), and 0001 (equipment shutdown status). The switch status is read by the signal acquisition circuit, and the signal processing unit converts it into a standard digital signal, which is then encoded by the signal encoder, and finally transmitted by the wireless transceiver 11 to provide equipment status information to the outside.

[0028] The connection mode between the rotary switch member 4 and the rotating member 3 is as follows: a cross star groove is provided at the bottom center of the rotating member 3; a cross star shaped protrusion is provided on the rotary switch member 4 to fit the cross star groove to realize synchronous rotation.

[0029] The specific structure is: a cross-shaped groove matching the rotary switch shaft is provided at the center of the bottom of the rotating disk; a cross-star-shaped protrusion matching the groove is provided at the shaft end of the rotary switch; the synchronous rotation of the rotating disk and the rotary switch is achieved through the sleeve structure, which ensures the stability of the mechanical structure, simplifies the internal connection, and ensures the consistency of the status indication and signal output.

[0030] like Figure 4 As shown, the wireless transceiver unit is connected to the rotary switch member 4 and is disposed in the accommodation space. The wireless transceiver unit is configured to receive and transmit status signals.

[0031] The power supply is installed in the accommodation space and is used to supply power to the wireless transceiver unit. The power supply is a battery. The battery adopts a small lithium polymer battery, and the specific features are as follows: Battery specifications: 3.7V 200mAh lithium polymer battery; Working voltage range: 3.3V~5.0V, meeting the power supply requirements of Arduino Nano and nRF24L01; Battery size: 20mm×15mm×5mm, suitable for installation in the limited space between the base and the disc; Charging method: charging via micro-USB port, charging time is about 1 hour; Duration: In low-power design and sleep mode, a single battery can work continuously for 6-12 months; Battery replacement: The battery can be easily replaced through the battery cover 9 on the base.

[0032] Specifically, the wireless transceiver unit includes: a microcontroller 5 and a wireless transceiver 11. The microcontroller 5 is an Arduino Nano microcontroller. The wireless transceiver 11 is an nRF24L01 wireless transceiver. The microcontroller 5 and the wireless transceiver 11 are mounted on a wireless transceiver circuit board 6. The wireless transceiver circuit board 6 is provided with a plurality of mounting screw holes 7, and the mounting screw holes 7 are used to mount the wireless transceiver circuit board 6 on the magnetic positioning member 1.

[0033] The microcontroller 5 is configured to control the state of the rotary switch 4 through its digital output pins. The wireless transceiver 11 is configured to implement wireless data transmission. Multiple digital pins of the microcontroller 5 are respectively connected to the control input terminals of the rotary switch 4 to selectively activate different output paths of the rotary switch 4. The microcontroller 5 is connected to the wireless transceiver 11 through an SPI interface.

[0034] In the above technical solution, the four status indication areas correspond to different working modes of the equipment (operation, shutdown for maintenance, failure, and deactivation), and are distinguished by color or icon (such as green for normal operation, blue for shutdown for maintenance, orange for equipment failure, and red for equipment deactivation), which improves the recognition accuracy. Each status change will be recorded and sent out, providing a reliable basis for subsequent data analysis.

[0035] The Arduino Nano microcontroller in the low-power wireless transceiver unit, combined with the nRF24L01 wireless transceiver, can achieve long-distance status reporting without consuming too much power. The remote monitoring function allows managers to obtain the working status of the equipment anytime and anywhere and respond in a timely manner, reducing the need for on-site inspections and improving management efficiency.

[0036] The circuit connection relationship between the Arduino Nano microcontroller, nRF24L01 wireless transceiver, and the single-pole four-throw rotary switch is as follows Figure 7 shown.

[0037] Connect the SS / CSN pin of Arduino Nano (e.g. D10) to the CSN pin of nRF24L01; The MOSI pin of Arduino Nano (e.g. D11) is connected to the MOSI pin of nRF24L01; The MISO pin of Arduino Nano (e.g. D12) is connected to the MOSO pin of nRF24L01; Connect the SCK pin of Arduino Nano (e.g. D13) to the SCK pin of nRF24L01; Connect the CE pin of Arduino Nano (e.g. D9) to the CE pin of nRF24L01; The VCC and GND pins of Arduino Nano are connected to the VCC and GND pins of nRF24L01 module respectively, providing necessary power and ground.

[0038] The common end of the SP4T rotary switch is connected to the positive pole of the power supply, and the four output ends are connected to different devices or sensors. The Arduino Nano controller selects one of the output paths for power supply or signal transmission through the control pin according to the program logic.

[0039] The Arduino Nano microcontroller can be programmed to dynamically configure the open state of the SP4TH switch, and can send or receive wireless signals through the nRF24L01 module to achieve remote control and data exchange functions.

[0040] The Arduino Nano microcontroller is used to read the status of the 4-speed rotary switch; the Arduino Nano microcontroller converts the switch status into a standard digital signal. The nRF24L01 wireless transceiver uses a standard communication protocol to send the processed signal outward, and the program encodes the different status signals and customizes the communication protocol to ensure the accuracy of signal transmission.

[0041] The message format in the above wireless communication process is represented by the following message format 128 bits: Message header (8 bits): fixed to 0xAA, used to mark the beginning of the message; Device code (64 bits): used to uniquely identify each device; Device status (8 bits): 0x01: Device running, 0x02: Shutdown for maintenance, 0x03: Device failure, 0x04: Device disabled, Other values ​​are reserved; Status description (32 bits): Timestamp (16 bits), Battery level (8 bits), Signal strength (4 bits), Reserved bits (4 bits); Checksum (8 bits): XOR operation is performed on all data except the message header; Message tail (8 bits): Fixed to 0x55, used to mark the end of the message.

[0042] Example 2 This embodiment provides a device status prompt method based on the embodiment 1, including the following steps: The digital input pins of the microcontroller 5 are configured to be connected to different output terminals of the rotary switch 4, to detect the switch position change of the rotary switch 4, and to determine the switch state according to the switch position change; and at the same time, a communication connection is established with the wireless transceiver 11 through the SPI interface; Constructing an information structure having a digital structure, and acquiring device status prompt data based on the information structure; Read the switch state of the rotary switch element 4 according to a predetermined period, and update the device state field in the message structure according to the switch state; Acquire the real-time data set of the current system operation, and update the elements in the real-time data set into the information structure body according to the digital structure to obtain the constructed message structure body; The constructed message structure is sent to the specified target address using the wireless transceiver 11 .

[0043] Furthermore, the equipment status field includes at least: equipment operation, equipment shutdown for maintenance, equipment failure, and equipment deactivation.

[0044] Furthermore, the information structure includes at least the following bytes: message header, device code, device status, timestamp, battery power, signal strength description and checksum.

[0045] Furthermore, the real-time data set includes at least: system operating time and battery voltage value.

[0046] Further, updating the elements in the real-time data set into the information structure according to the digital structure to obtain a constructed message structure includes the following steps: Get the current system running time and update it in the message structure; read the battery voltage value from the analog input pin, convert the battery voltage value into the battery power in percentage form, and fill in the corresponding field; The checksum is calculated by performing an XOR operation on all bytes in the message structure except the message header, the message tail, and the checksum, and the checksum field of the message structure is set.

[0047] Reading a battery voltage value from an analog input pin and converting the battery voltage value into a battery capacity in percentage form further comprises the following steps: Read the battery voltage from the analog input pin and calculate the adjusted battery percentage using a polynomial equation and correction parameters; Limiting the adjusted power within a predetermined range to obtain a final power percentage, wherein the final power percentage is used to represent the battery power; The final power percentage is calculated using the following formula: ; In the formula, is the final battery charge percentage; is the adjusted battery charge percentage, is the battery voltage, , , , It's over time coefficient of variation; is the temperature correction factor, is the charge and discharge rate correction factor; ; ; In the formula, is the correction constant, is the current temperature measured in real time, is the reference temperature; is the correction constant, is the current charge and discharge current measured in real time, The current temperature and the current charge and discharge current can be obtained by using thermistor and current detection resistor principles respectively, which are existing technologies and will not be described in detail here.

[0048] Use the above formula to ensure that the final power percentage is within a reasonable range, that is, between 0% and 100%. For example: if is 98%, then It will be 98%.

[0049] if is 105%, then Will be limited to 100%.

[0050] if is -3%, then Will be adjusted to 0%.

[0051] In the above technical solution, by introducing a polynomial equation to simulate the nonlinear relationship between battery voltage and charge, and combining time-dependent terms to simulate the battery aging effect, the real state of the battery can be more accurately reflected. This helps to avoid the errors caused by traditional linear models, especially when the battery is close to full or fully discharged.

[0052] In addition, the influence of factors such as temperature and charge and discharge rates are taken into consideration and adjusted through correction factors so that the power estimation can better adapt to different usage conditions.

[0053] Accurate power estimation can help users arrange charging time and frequency reasonably, prevent overcharging or discharging, thereby protecting battery health and extending its service life. In addition, the intelligent management system can optimize battery usage strategies based on power prediction. Moreover, it ensures that the power display is always within a reasonable range (0% to 100%) and is closer to the actual available capacity, reducing users' anxiety about the power of the device.

[0054] The calculation formula for the above checksum is as follows: ; In the formula, is the checksum, is the XOR symbol, , , , …, Is the valid data involved in the verification and calculation, is the total number of bytes in the message (128 bits = 16 bytes).

[0055] The checksum in the message structure is an error detection mechanism used to verify the integrity of data transmission. The checksum is a checksum of all the data in the message except the message header ( ), message tail ( ), and the checksum itself ( ) is XORed. If the data is tampered with during the data transmission process, the checksum calculated by the receiving end will be inconsistent with the checksum sent, thereby verifying the integrity of the data.

[0056] Specifically, C = (DeviceID[0...7]) ⊕ Status ⊕ (Timestamp[0,1]) ⊕ Battery ⊕ SignalDesc.

[0057] Where: DeviceID: 64-bit (8-byte) device code; Status: 8 bits (1 byte) device status; Timestamp: 16-bit (2-byte) timestamp; Battery: 8 bits (1 byte) of battery power; SignalDesc: 8-bit (1 byte) signal description.

[0058] In many application scenarios, such as industrial automation, smart home or agricultural monitoring, the status of devices needs to be monitored in real time, and these devices may not be directly accessible. To this end, in this embodiment, the position of the SP4T rotary switch is periodically read by the Arduino Nano microcontroller, and a message containing the device status, battery level and other information is constructed and sent out through the nRF24L01 wireless transceiver, realizing remote monitoring and status reporting functions.

[0059] In addition, the nRF24L01 wireless transceiver used in this embodiment supports low power mode, and its working state can be accurately controlled by Arduino Nano (for example, transmission is activated only when necessary). In addition, anti-shake delay is added to the code to avoid unnecessary frequent operations and further reduce power consumption.

[0060] Using wireless communication instead of wired connections greatly simplifies system deployment. It only requires ensuring sufficient signal coverage between nodes, reducing the need for physical connections and making installation more flexible and simple. Moreover, by calculating the checksum and including it in the message structure, the receiver can verify whether the received data is correct, enhancing the reliability and integrity of data transmission. If an error is detected, appropriate measures (such as retransmission requests) can be taken to ensure data accuracy.

Claims

1. A device status prompting device, characterized in that: include: Magnetic positioning parts, used to be attached to the surface of the equipment to be monitored; The magnetic positioning member has an accommodating space; A status display component adapted to be connected to the magnetic positioning component; The status display component has a display window for displaying the current status of the device to be monitored; A rotating member, disposed between the magnetic positioning member and the status display member and rotatably connected to the magnetic positioning member; a rotary switch element connected to the rotating element and rotating synchronously therewith; the rotary switch element is configured to generate N groups of different status signals; A wireless transceiver unit is connected to the rotary switch and is disposed in the accommodating space; the wireless transceiver unit is configured to receive and transmit status signals.

2. A device status prompting device as claimed in claim 1, characterized in that: The wireless transceiver unit comprises: a microcontroller for controlling the state of the rotary switch member via its digital output pins; A wireless transceiver configured to implement wireless data transmission; The plurality of digital pins of the microcontroller are respectively connected to the control input terminals of the rotary switch element to selectively activate different output paths of the rotary switch element; The microcontroller is connected to the wireless transceiver via an SPI interface.

3. A device status prompting device as claimed in claim 1, characterized in that: The rotating member is evenly divided into N different state display areas along its circumference, where N is an integer greater than 1.

4. A device status prompting device as claimed in claim 1, characterized in that: A cross star groove is arranged at the bottom center of the rotating member; and a cross star shaped protrusion which is adapted to be connected with the cross star groove is arranged on the rotating switch member.

5. A device status prompting device as claimed in claim 1, characterized in that: Also includes: A power supply is arranged in the accommodating space and is used to supply power to the wireless transceiver unit.

6. A device status prompting method, based on a device status prompting device as claimed in any one of claims 1 to 5, characterized in that: The following steps are involved: configuring the digital input pins of the microcontroller to be connected to different output terminals of the rotary switch element, detecting the switch position change of the rotary switch element, and determining the switch state according to the switch position change; and establishing a communication connection with the wireless transceiver through the SPI interface; Constructing an information structure having a digital structure, and acquiring device status prompt data based on the information structure; Read the switch status of the rotary switch according to a predetermined period, and update the device status field in the message structure according to the switch status; Acquire the real-time data set of the current system operation, and update the elements in the real-time data set into the information structure body according to the digital structure to obtain the constructed message structure body; Use the wireless transceiver to send the constructed message structure to the specified target address.

7. A device status prompt method as claimed in claim 6, characterized in that: The equipment status field includes at least: equipment running, equipment downtime for maintenance, equipment failure, and equipment out of service.

8. A device status prompt method as claimed in claim 6, characterized in that: The information structure includes at least the following bytes: Message header, device code, device status, timestamp, battery level, signal strength description, and checksum.

9. A device status prompt method as claimed in claim 7, characterized in that: The real-time data set includes at least: system operation time and battery voltage value.

10. A device status prompting method as claimed in claim 7, characterized in that: Updating the elements in the real-time data set into the information structure according to the digital structure to obtain a constructed message structure includes the following steps: Get the current system running time and update it in the message structure; read the battery voltage value from the analog input pin, convert the battery voltage value into the battery power in percentage form, and fill in the corresponding field; By performing an XOR operation on all bytes in the message structure except a message header, a message tail, and a checksum, a checksum is calculated, and a checksum field of the message structure is set; The calculation formula of the checksum is as follows: ; In the formula, is the checksum, is the XOR symbol, , , , …, Is the valid data involved in the verification and calculation, It is the total number of bytes in the message.

Citation Information

Patent Citations

  • Assembled switch based on local internet bus line of controller of automobile

    CN101342890A

  • Single-pole multi-throw switch with rotating and switching functions

    CN108346544A

  • Signboard

    CN109658813A

  • Vehicle-mounted data transmission method and system

    CN111726196A

  • Real-time message interface automatic generation method based on JSON mode

    CN113064585A