CN113381785B - Equipment debugging method and device and Bluetooth equipment - Google Patents

Equipment debugging method and device and Bluetooth equipment Download PDF

Info

Publication number
CN113381785B
CN113381785B CN202110644415.2A CN202110644415A CN113381785B CN 113381785 B CN113381785 B CN 113381785B CN 202110644415 A CN202110644415 A CN 202110644415A CN 113381785 B CN113381785 B CN 113381785B
Authority
CN
China
Prior art keywords
data
current
bluetooth
debugged
current equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110644415.2A
Other languages
Chinese (zh)
Other versions
CN113381785A (en
Inventor
扶胜根
刘世勇
翁耀衔
李伟娜
刘佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aux Air Conditioning Co Ltd
Ningbo Aux Electric Co Ltd
Original Assignee
Aux Air Conditioning Co Ltd
Ningbo Aux Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aux Air Conditioning Co Ltd, Ningbo Aux Electric Co Ltd filed Critical Aux Air Conditioning Co Ltd
Priority to CN202110644415.2A priority Critical patent/CN113381785B/en
Publication of CN113381785A publication Critical patent/CN113381785A/en
Application granted granted Critical
Publication of CN113381785B publication Critical patent/CN113381785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/30Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
    • F24F11/49Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring ensuring correct operation, e.g. by trial operation or configuration checks
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • G08C19/30Electric signal transmission systems in which transmission is by selection of one or more conductors or channels from a plurality of conductors or channels
    • G08C19/34Electric signal transmission systems in which transmission is by selection of one or more conductors or channels from a plurality of conductors or channels of a combination of conductors or channels

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Mechanical Engineering (AREA)
  • Databases & Information Systems (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a device debugging method and device and Bluetooth equipment, and relates to the technical field of device debugging.

Description

Equipment debugging method and device and Bluetooth equipment
Technical Field
The invention relates to the technical field of equipment debugging, in particular to an equipment debugging method and device and Bluetooth equipment.
Background
At present, when large-scale equipment such as an air conditioner is installed or debugged after sale, the air conditioner is matched with special Bluetooth equipment, and the Bluetooth equipment is connected with intelligent equipment (such as a mobile phone, a tablet personal computer and the like) through Bluetooth, so that a data interaction channel between the air conditioner and the intelligent equipment is established, namely, the air conditioner transmits data to the intelligent equipment through the Bluetooth equipment, and the intelligent equipment transmits a debugging instruction to the air conditioner through the Bluetooth equipment, so that the convenient debugging of the equipment is realized. However, the data that the air conditioner transmitted to the intelligent device through the bluetooth device exists and loses, and the debugging effect can not be guaranteed.
Disclosure of Invention
The invention solves the problems that: in the existing debugging method, data transmitted to the intelligent device by the device to be debugged through the Bluetooth device is lost.
In order to solve the problems, the invention provides a device debugging method which is applied to a Bluetooth device, wherein the Bluetooth device is in wired connection with a device to be debugged and is in Bluetooth connection with an intelligent device; the equipment debugging method comprises the following steps: receiving current equipment data transmitted by the equipment to be debugged in real time; detecting whether the current equipment data is repeated data; and when the current equipment data is not repeated data, transmitting the current equipment data to the intelligent equipment so that the intelligent equipment debugs the equipment to be debugged based on the equipment data transmitted by the Bluetooth equipment.
Compared with the prior art, the equipment debugging method has the following advantages: in the device debugging process, the device to be debugged transmits device data to the Bluetooth device in real time, the Bluetooth device detects whether the current device data is repeated data or not when receiving the current device data, and transmits the current device data to the intelligent device only when the current device data is not repeated data, so that a large amount of repeated data can be prevented from being transmitted, data loss can be effectively prevented, and the debugging effect is guaranteed.
Furthermore, the bluetooth device is pre-configured with a check data table, a plurality of check information are stored in the check data table, and one check information corresponds to one device data transmitted to the intelligent device; the step of detecting whether the current device data is duplicated data includes: generating verification information of the current equipment data; judging whether the verification information of the current equipment data exists in a verification data table or not; if so, judging that the current equipment data is repeated data; if not, judging that the current equipment data is not the repeated data, and adding the verification information of the current equipment data into the verification data table.
Further, the step of transmitting the current device data to the smart device includes: storing the current equipment data to a pre-established cache space; and according to a first-in first-out cache mechanism, acquiring the current equipment data from the cache space and transmitting the current equipment data to the intelligent equipment.
Further, the size of the cache space satisfies the following formula: x > M (A-B); wherein, X represents the size of the buffer space, M represents the set duration, A represents the data transmission rate of the device to be debugged, and B represents the data transmission rate of the Bluetooth device.
Further, the device debugging method further includes: and when the current equipment data is the repeated data, not transmitting the current equipment data.
The invention also provides a device debugging device, which is applied to the Bluetooth device, wherein the Bluetooth device is in wired connection with the device to be debugged and is in Bluetooth connection with the intelligent device; the device debugging apparatus includes: the receiving module is used for receiving the current equipment data transmitted by the equipment to be debugged in real time; the detection module is used for detecting whether the current equipment data is the repeated data; the first execution module is configured to transmit the current device data to the intelligent device when the current device data is not duplicate data, so that the intelligent device debugs the device to be debugged based on the device data transmitted by the bluetooth device.
Furthermore, the bluetooth device is pre-configured with a check data table, a plurality of check information are stored in the check data table, and one check information corresponds to one device data transmitted to the intelligent device; the detection module is specifically configured to: generating verification information of the current equipment data; judging whether the verification information of the current equipment data exists in a verification data table or not; if so, judging that the current equipment data is repeated data; if not, judging that the current equipment data is not the repeated data, and adding the verification information of the current equipment data into the verification data table.
Further, the first execution module executes the manner of transmitting the current device data to the smart device, including: storing the current equipment data to a pre-established cache space; and according to a first-in first-out cache mechanism, acquiring the current equipment data from the cache space and transmitting the current equipment data to the intelligent equipment.
Further, the device debugging apparatus further includes: and the second execution module is used for not transmitting the current equipment data when the current equipment data is the repeated data.
The invention also provides a bluetooth device, the bluetooth device is connected with the device to be debugged by wire and connected with the intelligent device by bluetooth, the bluetooth device comprises: and the control module is used for realizing the device debugging method when executing the executable instructions stored in the control module.
Drawings
Fig. 1 is a schematic structural diagram of a device debugging system provided in the present invention.
Fig. 2 is a schematic structural diagram of a bluetooth device provided in the present invention.
Fig. 3 is a schematic flow chart of a device debugging method provided in the present invention.
Fig. 4 is another schematic flow chart of the device debugging method provided in the present invention.
Fig. 5 is a schematic diagram of functional modules of the device debugging apparatus provided in the present invention.
Description of reference numerals:
10-equipment to be debugged; 20-a bluetooth device; 30-a smart device; 21-a communication module; 22-a control module; a 23-BLE module; 24-a power supply module; 100-equipment debugging device; 110-a receiving module; 120-a detection module; 130-a first execution module; 140-a second execution module.
Detailed Description
In the installation or after-sale debugging of large-scale equipment such as an air conditioner and the like, due to the complex system and a plurality of parameters, debugging personnel generally need to carry special debugging equipment for debugging and analysis, and the problems of inconvenient carrying, complex field wiring, inconvenient operation and the like often exist.
With the popularization of bluetooth interfaces on smart devices (e.g., mobile phones, tablet computers, etc.), the bluetooth communication method is applied to debugging to overcome the above problems. The device to be debugged is matched with the special Bluetooth device, and the Bluetooth device is connected by using the Bluetooth interface on the intelligent device, so that the intelligent device can be wirelessly connected to the device to be debugged, and a data interaction channel between the intelligent device and the device to be debugged is established. Namely, the device to be debugged transmits data to the intelligent device through the Bluetooth device, the intelligent device analyzes and displays the data through special software for the installation or after-sales debugging personnel to analyze, and meanwhile, the intelligent device transmits debugging instructions to the device to be debugged through the Bluetooth device. The debugging mode well utilizes the functions of intelligent equipment, does not need field wiring, does not need to develop special debugging equipment, and has the advantages of low cost, easy popularization, convenient use and the like.
However, the data transmitted to the intelligent device by the device to be debugged through the bluetooth device is lost, so that the debugging result cannot be guaranteed.
Aiming at the problem of data loss in the existing debugging method, the inventor finds out through long-term research and experiments that the data transmission rate of the equipment to be debugged is not matched with the data transmission rate of the Bluetooth equipment, and the data transmission rate of the equipment to be debugged is greater than the data transmission rate of the Bluetooth equipment, so that the data loss is caused.
Therefore, in the device debugging process, the device to be debugged transmits the device data to the Bluetooth device in real time, and the Bluetooth device transmits the device data to the intelligent device when determining that the device data is not the repeated data, so that the transmission of a large amount of repeated data can be avoided, and the data loss can be effectively prevented.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an apparatus debugging system provided in the present invention, where the apparatus debugging system includes an apparatus to be debugged 10, a bluetooth apparatus 20, and an intelligent apparatus 30.
The bluetooth device 20 is connected to the device to be debugged 10 by wire, and the bluetooth device 20 may be connected to the main board of the device to be debugged 10 through a communication bus. The communication mode of the bluetooth device 20 and the device to be debugged 10 may be, but is not limited to, RS485, RS232, CAN, Homebus, etc. The device 10 to be debugged may be a large device such as an air conditioner and an air source heat pump, and the following embodiments are described by taking the air conditioner as an example.
The bluetooth device 20 is bluetooth connected to the smart device 30, and the bluetooth device 20 can be wirelessly connected to the bluetooth interface of the smart device 30. The smart device 30 may be a mobile terminal with bluetooth functionality, such as a smartphone, a tablet, a personal computer, a wearable smart device (e.g., a bracelet, a smart watch), and so on.
Bluetooth device 20 may be Bluetooth Low Energy (BLE), and BLE supports a Bluetooth Low Energy protocol, may implement wireless and high-speed data transmission with Low power consumption, and has a function of fast connection compared to classical Bluetooth.
When the device 10 to be debugged is debugged, the device 10 to be debugged transmits device data to the bluetooth device 20 through the communication bus, the bluetooth device 20 transmits the device data to the intelligent device 30 in a bluetooth mode, and the intelligent device 30 analyzes and displays the device data through intelligent software (for example, a mobile phone APP, computer software, and the like) so as to be used for installation or after-sale debugging personnel to analyze, thereby realizing data monitoring of the device 10 to be debugged. Then, the intelligent device 30 transmits the debugging instruction to the bluetooth device 20 in a bluetooth manner, and the bluetooth device 20 transmits the debugging instruction to the device to be debugged through the communication bus, so as to debug and change the parameters.
The device data may include: status data (e.g., temperature, pressure, current, voltage, etc.), load operating data (e.g., compressor frequency, motor speed, expansion valve opening, etc.), and configurable parameter data (e.g., protection set points, maximum operating frequency and speed, etc.).
The smart device 30 is pre-installed with smart software, which can be used to: the method comprises the steps of calling a Bluetooth interface on the intelligent device 30, obtaining device data transmitted by the Bluetooth device 20, analyzing the device data to a display interface of the intelligent device 30, visually displaying various data of the device 10 to be debugged on the display interface, and providing control and parameter setting functions of the device 10 to be debugged, so that various debugging and diagnosis operations of the device 10 to be debugged are completed.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a bluetooth device 20 provided in the present invention, where the bluetooth device 20 includes a communication module 21, a control module 22, a BLE module 23, and a power module 24.
The communication module 21 is connected to the main board of the device to be debugged 10 through a communication bus, and is configured to obtain device data transmitted by the device to be debugged 10 and transmit the device data to the control module 22.
The control module 22 is electrically connected to both the communication module 21 and the BLE module 23, and is configured to process device data, and control an operation mode and a data transmission mode of the BLE module 23.
The BLE module 23 is wirelessly connected to the bluetooth interface of the smart device 30, and is configured to transmit the device data to the smart device 30.
The BLE module 23 is further configured to receive the debugging instruction transmitted by the smart device 30 and send the debugging instruction to the control module 22. The communication module 21 is also used for transmitting the debugging instruction to the device to be debugged 10, thereby completing the device debugging.
The control module 22 may be an integrated circuit chip having signal processing capabilities. The control module 22 may be a general-purpose processor including a Central Processing Unit (CPU), a Micro Controller Unit (MCU), a Complex Programmable Logic Device (CPLD), a Field Programmable Gate Array (FPGA), and an embedded ARM.
The control module 22 stores executable instructions inside, for example, the device debugging apparatus 100 shown in fig. 5, the device debugging apparatus 100 includes at least one software function module that can be stored inside the control module 22 in a form of software or firmware (firmware), and when the control module 22 executes the internally stored executable instructions, the device debugging method disclosed in the following embodiments is implemented. In implementation, the steps of the device debugging method may be performed by integrated logic circuits of hardware in the control module 22 or by instructions in the form of software.
The BLE module 23 supports a low-power Bluetooth protocol, can realize wireless and high-speed data transmission under low power consumption, and has the advantage of quick connection to relatively classic Bluetooth.
The BLE module 23 is connected to a smart device 30 (e.g., a smart phone, a tablet, a personal computer, etc.) via bluetooth, and implements bluetooth signal transmission and reception for the bluetooth device 20. Meanwhile, the BLE module 23 is electrically connected to the control module 22, and is configured to send device data of the device 10 to be debugged to the smart device 30 in a bluetooth manner under the action of the control module 22, and receive a debugging instruction sent by the smart device 30 in the bluetooth manner.
The power module 24 is electrically connected to the communication module 21, the control module 22, and the BLE module 23, and is configured to provide operating power for the communication module 21, the control module 22, and the BLE module 23. The power module 24 may supply power independently or may take power from the device 10 to be debugged.
Referring to fig. 3 on the basis of fig. 2, fig. 3 is a schematic flow chart of a device debugging method provided by the present invention, where the device debugging method may include the following steps:
s101, receiving current device data transmitted by a device to be debugged in real time.
During the commissioning process, the device to be commissioned 10 continuously acquires its own device data and transmits it to the bluetooth device 20 in real time. That is, the communication module 21 of the bluetooth device 20 receives device data transmitted in real time by the main board of the device to be debugged 10.
The device data to be debugged 10 is transmitted one packet at a time. The current device data refers to a data packet transmitted by the device 10 to be debugged at the current time.
S102, detecting whether the current equipment data is repeated data.
Assume that the data transfer rate of the device to be debugged 10 is a bps and the data transfer rate of the bluetooth device 20 is B bps. The data transfer rate is the amount of data transferred per unit time, e.g., the unit bps represents the number of bits of data transferred per second.
The inventor finds that, in the work, the practical situation is a > B, that is, the device to be debugged 10 transmits the device data to the bluetooth device 20 faster than the bluetooth device 20 transmits the device data to the smart device 30 in the bluetooth manner, so that the device data cannot be uploaded through the bluetooth device 20 without loss, which may cause data loss.
Meanwhile, the inventor finds that the device to be debugged 10 always transmits the device data according to the rule because the requirement on the real-time performance of the communication of the device to be debugged 10 is high, but the transmitted device data contains a large amount of repeated data, for example, the temperature of the air conditioner is not changed all the time, but the temperature data is still transmitted all the time. While duplicate data is meaningless for device commissioning, it is not necessary for the bluetooth device 20 to transmit duplicate data to the smart device 30.
Therefore, after the device data is transmitted to the bluetooth device 20 in real time by the device 10 to be debugged, the bluetooth device 20 may screen the device data, detect whether the device data is duplicated data, and transmit the device data to the intelligent device 30 only when it is determined that the device data is not duplicated data, so that the bluetooth device 20 may be prevented from transmitting a large amount of duplicated data, the data transmission rate of the bluetooth device 20 is increased, efficient transmission is realized, and data loss may be effectively prevented.
And S103, when the current equipment data is not the repeated data, transmitting the current equipment data to the intelligent equipment so that the intelligent equipment debugs the equipment to be debugged based on the equipment data transmitted by the Bluetooth equipment.
The bluetooth device 20 transmits device data that is not duplicated data to the smart device 30 after detection. The intelligent device 30 is pre-installed with intelligent software (e.g., a mobile phone APP, computer software, etc.), and the intelligent software analyzes the device data to the display interface of the intelligent device 30, visually displays various data of the device 10 to be debugged on the display interface, and provides control and parameter setting functions of the device 10 to be debugged, thereby completing various debugging and diagnosis operations of the device 10 to be debugged.
For the debugging operation of the device 10 to be debugged, the functions provided by the intelligent software are as follows: visually displaying the acquired equipment data in a list or curve form and the like; and providing a control function of the device to be debugged 10, which can rapidly control the device to be debugged 10 to debug the device to be debugged 10 in different operating states (e.g., maximum cooling, minimum heating, etc.); setting parameters of the device 10 to be debugged, for example, adjusting a protection value; finally, the device to be debugged 10 is debugged to the best state.
For the diagnostic work of the device 10 to be debugged, the intelligent software provides the following functions: acquiring unique identifiers of the equipment 10 to be debugged, such as the machine model, the production serial number and the like; according to the unique identifier such as the machine model and the production serial number, various factory test parameters of the device 10 to be debugged, such as a current value, a voltage value, an exhaust temperature and the like of factory test, are matched from the production database; performing parameter diagnosis on the device 10 to be debugged, and acquiring various parameters of actual operation, such as an actual operation current value, a voltage value, an exhaust temperature and the like; comparing each parameter of the actual operation of the device 10 to be debugged with each factory test parameter one by one, judging whether the actual operation parameter is matched with the corresponding factory test parameter, if not, diagnosing that the device 10 to be debugged has a problem, and acquiring a general solution or optimization scheme for reference of a diagnostician.
When the unique identification such as the machine model and the production serial number of the device 10 to be debugged is obtained, the mobile phone APP can support a camera code scanning function, and the unique identification such as the machine model and the production serial number of the device 10 to be debugged is obtained by scanning the bar code or the two-dimensional code of the device 10 to be debugged; the computer software can support the function of manually inputting the bar code data, and the unique identification such as the machine model, the production serial number and the like of the equipment 10 to be debugged is obtained by reading the bar code data of the equipment 10 to be debugged, which is manually input by a diagnostician.
Referring to fig. 4, after step S103, the device debugging method further includes step S104 based on fig. 3.
And S104, when the current equipment data is the repeated data, not transmitting the current equipment data.
Step S102 will be described in detail below.
The bluetooth device 20 is configured with a check data table in advance, a plurality of check information are stored in the check data table, and one check information corresponds to one device data transmitted to the intelligent device 30. Thus, step S102 may comprise:
generating verification information of current equipment data;
judging whether the check data table has the check information of the current equipment data;
if so, judging that the current equipment data is repeated data;
if not, judging that the current equipment data is not the repeated data, and adding the verification information of the current equipment data into the verification data table.
Optionally, the verification information of the current device data may be generated by acquiring the content (e.g., temperature) of the current device data and performing verification in a set verification manner; the setting Check method may be, but is not limited to, CRC (Cyclic Redundancy Check), xor, and sum; each piece of verification information in the verification data table is obtained according to the same set verification method.
Then, judging whether check information consistent with the check information of the current equipment data exists in the check data table, if so, indicating that the equipment data is unchanged, and if so, indicating that the current equipment data is repeated data, and at the moment, not transmitting the current equipment data; if the current device data does not exist, the device data is changed, and the current device data is not the repeated data, at this time, the current device data is transmitted to the intelligent device 30, and the verification information of the current device data is added into the verification data table.
Step S103 will be described in detail below.
After determining that the current device data is not the duplicate data, the bluetooth device 20 needs to transmit the current device data to the smart device 30, and although the duplicate data is not transmitted, a situation that a large amount of device data changes in a short time may also occur. Therefore, in order to avoid the situation that a large amount of device data changes in a short time and the bluetooth device 20 has no time to transmit the device data to the smart device 30, which results in data loss, the embodiment of the present invention uses a first-in first-out buffer mechanism to buffer the device data first and then transmit the device data to the smart device 30.
Therefore, when the current device data is not duplicated, the process of transmitting the current device data to the smart device 30 may include:
storing the current equipment data to a pre-established cache space;
and according to a first-in first-out cache mechanism, obtaining the current device data from the cache space and transmitting the current device data to the intelligent device 30.
Optionally, the size of the cache space satisfies the following formula:
X>M*(A-B);
wherein, X represents the size of the buffer space, M represents the set duration, a represents the data transmission rate of the device to be debugged 10, and B represents the data transmission rate of the bluetooth device. The set duration may be a round of communication time of the device 10 to be commissioned, typically 3 s.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
firstly, after the device 10 to be debugged transmits the device data to the bluetooth device 20 in real time, the bluetooth device 20 detects whether the device data is the repeated data, and transmits the device data to the intelligent device 30 only when it is determined that the device data is not the repeated data, so that a large amount of repeated data can be prevented from being transmitted, the data transmission rate of the bluetooth device 20 is improved, efficient transmission is realized, and data loss can be effectively prevented.
Secondly, after determining that the device data is not duplicated data, the bluetooth device 20 transmits the device data by using a first-in first-out cache mechanism, so that the situation that a large amount of device data changes in a short time and the bluetooth device 20 loses data due to untimely transmission can be avoided.
In order to execute the corresponding steps in the above-described embodiments and various possible embodiments, an implementation of the device commissioning apparatus applied to the bluetooth device 20 is given below. It should be noted that the basic principle and the generated technical effect of the device debugging apparatus described in this embodiment are the same as those of the foregoing method embodiment, and for brief description, reference may be made to corresponding contents of the foregoing method embodiment for a part not mentioned in this embodiment.
Referring to fig. 5, fig. 5 is a functional block diagram of the device debugging apparatus 100 according to the present invention. The device commissioning apparatus 100 is applied to the bluetooth device 20, and the device commissioning apparatus 100 is described below with reference to fig. 5, where the device commissioning apparatus 100 includes: a receiving module 110, a detecting module 120 and a first executing module 130.
The receiving module 110 is configured to receive current device data transmitted by a device to be debugged in real time.
The detecting module 120 is configured to detect whether the current device data is duplicate data.
The first executing module 130 is configured to transmit the current device data to the intelligent device when the current device data is not the duplicate data, so that the intelligent device debugs the device to be debugged based on the device data transmitted by the bluetooth device.
Optionally, the bluetooth device 20 is configured with a verification data table in advance, the verification data table stores a plurality of pieces of verification information, and one piece of verification information corresponds to one piece of device data transmitted to the intelligent device;
the detection module 120 is specifically configured to: generating verification information of current equipment data; judging whether the check data table has the check information of the current equipment data; if so, judging that the current equipment data is repeated data; if not, judging that the current equipment data is not the repeated data, and adding the verification information of the current equipment data into the verification data table.
Optionally, the first executing module 130 executes a manner of transmitting the current device data to the smart device, including: storing the current equipment data to a pre-established cache space; and acquiring current equipment data from the buffer space according to a first-in first-out buffer mechanism and transmitting the current equipment data to the intelligent equipment.
Optionally, the device debugging apparatus 100 further includes a second execution module 140.
The second executing module 140 is configured to not transmit the current device data when the current device data is duplicate data.
In summary, according to the device debugging method and apparatus and the bluetooth device provided by the present invention, in the device debugging process, the device to be debugged transmits the device data to the bluetooth device in real time, and after receiving the device data, the bluetooth device first detects whether the device data is the duplicate data, and transmits the device data to the intelligent device only when the device data is not the duplicate data, so that a large amount of duplicate data can be prevented from being transmitted, the data transmission rate of the bluetooth device is increased, and efficient transmission is realized, thereby effectively preventing data loss and ensuring the debugging effect. Meanwhile, after the Bluetooth equipment determines that the equipment data is not the repeated data, the equipment data is transmitted by adopting a first-in first-out cache mechanism, so that the data loss can be further avoided, and the debugging effect is further ensured.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. The device debugging method is applied to a Bluetooth device (20), wherein the Bluetooth device (20) is in wired connection with a device (10) to be debugged and is in Bluetooth connection with an intelligent device (30); the equipment debugging method comprises the following steps:
receiving current equipment data transmitted by the equipment (10) to be debugged in real time;
detecting whether the current equipment data is repeated data;
when the current device data is not repeated data, transmitting the current device data to the intelligent device (30) so that the intelligent device (30) debugs the device (10) to be debugged based on the device data transmitted by the Bluetooth device (20);
the step of transmitting the current device data to the smart device (30) comprises:
storing the current equipment data to a pre-established cache space;
according to a first-in first-out cache mechanism, acquiring the current equipment data from the cache space and transmitting the current equipment data to the intelligent equipment (30);
the size of the cache space satisfies the following formula:
X>M*(A-B);
wherein X represents the size of the cache space, M represents a set duration, A represents the data transmission rate of the device (10) to be debugged, and B represents the data transmission rate of the Bluetooth device (20).
2. The device commissioning method according to claim 1, wherein the bluetooth device (20) is preconfigured with a verification data table, wherein a plurality of verification information is stored in the verification data table, and one of the verification information corresponds to one of the device data transmitted to the smart device (30);
the step of detecting whether the current device data is duplicated data includes:
generating verification information of the current equipment data;
judging whether the verification information of the current equipment data exists in a verification data table or not;
if so, judging that the current equipment data is repeated data;
if not, judging that the current equipment data is not the repeated data, and adding the verification information of the current equipment data into the verification data table.
3. The device commissioning method of claim 1, further comprising:
and when the current equipment data is the repeated data, not transmitting the current equipment data.
4. The device debugging device is applied to a Bluetooth device (20), wherein the Bluetooth device (20) is in wired connection with a device (10) to be debugged and is in Bluetooth connection with an intelligent device (30); the device commissioning apparatus (100) includes:
the receiving module (110) is used for receiving current device data transmitted by the device (10) to be debugged in real time;
a detection module (120) configured to detect whether the current device data is duplicate data;
a first execution module (130) configured to transmit the current device data to the smart device (30) when the current device data is not duplicate data, so that the smart device (30) debugs the device to be debugged (10) based on the device data transmitted by the bluetooth device (20);
the first execution module (130) executes the manner of transmitting the current device data to the smart device (30), including:
storing the current equipment data to a pre-established cache space;
according to a first-in first-out cache mechanism, acquiring the current equipment data from the cache space and transmitting the current equipment data to the intelligent equipment (30);
the size of the cache space satisfies the following formula:
X>M*(A-B);
wherein X represents the size of the cache space, M represents a set duration, A represents the data transmission rate of the device (10) to be debugged, and B represents the data transmission rate of the Bluetooth device (20).
5. The device commissioning apparatus of claim 4, wherein the bluetooth device (20) is preconfigured with a verification data table, and the verification data table stores a plurality of pieces of verification information, and one piece of verification information corresponds to one piece of device data that has been transmitted to the smart device (30);
the detection module (120) is specifically configured to:
generating verification information of the current equipment data;
judging whether the verification information of the current equipment data exists in a verification data table or not;
if so, judging that the current equipment data is repeated data;
if not, judging that the current equipment data is not the repeated data, and adding the verification information of the current equipment data into the verification data table.
6. The device commissioning apparatus of claim 4, wherein the device commissioning apparatus (100) further comprises:
a second execution module (140) configured to not transmit the current device data when the current device data is duplicate data.
7. A bluetooth device, characterized in that the bluetooth device (20) is wired to a device (10) to be commissioned and bluetooth connected to a smart device (30), the bluetooth device (20) comprising:
a control module (22) for implementing the device commissioning method of any one of claims 1 to 3 when executing internally stored executable instructions.
CN202110644415.2A 2021-06-09 2021-06-09 Equipment debugging method and device and Bluetooth equipment Active CN113381785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110644415.2A CN113381785B (en) 2021-06-09 2021-06-09 Equipment debugging method and device and Bluetooth equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110644415.2A CN113381785B (en) 2021-06-09 2021-06-09 Equipment debugging method and device and Bluetooth equipment

Publications (2)

Publication Number Publication Date
CN113381785A CN113381785A (en) 2021-09-10
CN113381785B true CN113381785B (en) 2022-04-19

Family

ID=77573365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110644415.2A Active CN113381785B (en) 2021-06-09 2021-06-09 Equipment debugging method and device and Bluetooth equipment

Country Status (1)

Country Link
CN (1) CN113381785B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206489557U (en) * 2016-12-01 2017-09-12 中车戚墅堰机车有限公司 A kind of locomotive commissioning serial device wireless transparent transmission and data storage device
CN108255692A (en) * 2016-12-28 2018-07-06 新华三技术有限公司 Information processing method and device
CN112733369A (en) * 2021-01-13 2021-04-30 青岛海尔科技有限公司 Intelligent equipment maintenance method, terminal and system and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9384205B1 (en) * 2013-12-18 2016-07-05 Veritas Technologies Llc Auto adaptive deduplication to cloud based storage
CN104848490B (en) * 2015-05-18 2017-12-22 重庆三峡学院 A kind of air-conditioning system based on cloud service remote debugging
CN105631042B (en) * 2016-01-26 2019-02-22 北京京东尚科信息技术有限公司 A kind of method and apparatus that data test weight
CN110213020A (en) * 2019-05-31 2019-09-06 杭州涂鸦信息技术有限公司 Data transmission method, terminal, system and device based on bluetooth peripheral hardware
CN111654523A (en) * 2020-04-28 2020-09-11 珠海格力电器股份有限公司 Data processing method and device, storage medium and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206489557U (en) * 2016-12-01 2017-09-12 中车戚墅堰机车有限公司 A kind of locomotive commissioning serial device wireless transparent transmission and data storage device
CN108255692A (en) * 2016-12-28 2018-07-06 新华三技术有限公司 Information processing method and device
CN112733369A (en) * 2021-01-13 2021-04-30 青岛海尔科技有限公司 Intelligent equipment maintenance method, terminal and system and electronic equipment

Also Published As

Publication number Publication date
CN113381785A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
US20150379771A1 (en) Image data generating device, portable terminal device, and portable control device
US9984244B2 (en) Controller, information processing apparatus, and recording medium
WO2018129893A1 (en) Hardware-in-the-loop equipment based testing system
CN204086979U (en) A kind of electric vehicle motor controller hardware-in―the-loop test system
JP2014157505A (en) Controller, information processing device, and program
CN104331063A (en) Industrial field equipment remote diagnosis maintenance system and method
US9292395B2 (en) Debug stub server, debug method, and program
CN103926901A (en) Industrial control field debugging method based on Modbus communication protocol
CN110888836A (en) Method for realizing interrupt response by using BMC on Feiteng platform
CN113381785B (en) Equipment debugging method and device and Bluetooth equipment
CN202975800U (en) CAN (controller area network) bus diagnosis system based on WIFI (wireless fidelity) and mobile intelligent terminal
CN112822073B (en) Test method, device, system, electronic equipment and readable storage medium
CN103279265A (en) Terminal and system for displaying network information interface and interface generating method
TW201626337A (en) Monitoring system and method
CN109582571B (en) Online debugging method and device, debugging slave computer, debugging host computer and system
EP2942714B1 (en) Monitoring method, monitoring apparatus, and electronic device
CN111025916B (en) Household appliance detection control method and system
CN103576019B (en) Testing tool, system and method of electrical equipment
CN203754167U (en) Handheld terminal for elevator debugging and maintenance
CN203950006U (en) A kind of aircraft wire fault automatic detector based on microprocessor
KR20100125722A (en) Hmi system
CN104579435B (en) It is a kind of to check more masters of integrated box mostly from Bluetooth communication method for portable health
CN106650006B (en) Debugging method and system of programmable logic device and electronic design automation terminal
JP6163735B2 (en) SAFE SLAVE UNIT, ITS CONTROL METHOD, CONTROL PROGRAM, AND SAFETY CONTROL SYSTEM
CN107066360B (en) Information transmission method and server

Legal Events

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