Instrument data acquisition method, device, equipment and acquisition system based on satellite flash technology
Through the instrument data acquisition method of star flash technology, the star flash conversion device collects and transmits water meter data when Bluetooth communication fails, solving the problem of low success rate of groundwater meter reading and realizing data acquisition stability in harsh signal environments .
Patent Information
- Application Number
- CN202410990203.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-12-17
AI Technical Summary
The communication failure rate between the Bluetooth collector and the Bluetooth meter is high, resulting in a low success rate of water meter reading, especially in harsh network signal environments, which is difficult to achieve effective data transmission.
The instrument data acquisition method based on star flash technology is adopted, and the signal is broadcasted through the star flash conversion device, the meter reading instructions from the Bluetooth collector are received, and the Bluetooth instrument data is collected and forwarded to ensure that the data can be successfully obtained and transmitted when communication fails.
It improves the success rate of water meter reading, solves the problem of data being unable to be obtained when Bluetooth communication fails, and does not require large-scale transformation of existing equipment, and is suitable for existing downhole water meter installation solutions.
Smart Images

Figure CN119155571A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of instrumentation technology, and in particular to a method, device, equipment and system for acquiring instrument data based on star flash technology. Background Art
[0002] Due to the poor network signal environment at the water meter installation location (for example, many meters are installed in underground wells 2 to 3 meters deep), it is difficult for network signals (NB or 4G signals) to penetrate the well cover and reach the bottom of the well, resulting in poor signal and low success rate of remote water meter reading or even failure to read the meter.
[0003] Among the short-range wireless technologies in the related art, the most commonly used is Bluetooth, that is, a Bluetooth water meter is matched with a Bluetooth collector. In order to ensure normal communication between the Bluetooth collector and the outside, the Bluetooth collector is usually required to be located at the wellhead, which results in a long distance between the Bluetooth collector and the water meter in the well. Especially under certain environmental conditions that are not conducive to communication, Bluetooth communication failures are prone to occur. When Bluetooth communication fails, the Bluetooth collector cannot collect data from the water meter, resulting in a low success rate in water meter reading.
[0004] The above statements are only used to provide background information related to the present application and do not necessarily constitute prior art. Summary of the invention
[0005] In view of the technical problem in the related art that the failure rate of Bluetooth communication between the Bluetooth collector and the Bluetooth meter is high, resulting in a low success rate of water meter reading, the purpose of this application is to provide a meter data acquisition method, device, equipment and acquisition system based on Star Flash technology, aiming to improve the success rate of meter data acquisition. In order to have a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. This summary section is not a general review, nor is it intended to identify key / important components or describe the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a preface to the detailed description that follows.
[0006] According to a first aspect of an embodiment of the present application, there is provided an instrument data acquisition method based on star flash technology, which is applied to a star flash conversion device, and the method includes:
[0007] Using the star flash module to broadcast a signal including a first identifier of the star flash conversion device;
[0008] Receiving a meter reading function start instruction and at least one meter identification from a Bluetooth collector; the at least one meter identification corresponds to at least one Bluetooth meter in a one-to-one manner;
[0009] Based on the meter reading function start instruction, collecting Bluetooth meter data corresponding to a second identifier; the second identifier is any one of the at least one meter identifier;
[0010] The Star Flash module is used to send the collected Bluetooth instrument data to the Bluetooth collector.
[0011] In some embodiments of the present application, the method further includes:
[0012] In response to receiving a first instrument history data acquisition instruction from the Bluetooth collector, acquiring and storing history data of the first instrument in a first time period, wherein the first instrument history data acquisition instruction includes a start time and an end time of the first time period; the first instrument is any one of the Bluetooth instruments corresponding to the at least one instrument identifier;
[0013] In response to receiving the first instrument historical data compensation instruction from the Bluetooth collector, the historical data is sent to the Bluetooth collector.
[0014] In some embodiments of the present application, the sending the collected Bluetooth instrument data to the Bluetooth collector includes:
[0015] adding a third identifier to the collected Bluetooth instrument data;
[0016] The Bluetooth instrument data with the third identifier added thereto is sent to the Bluetooth collector.
[0017] In some embodiments of the present application, the method further includes:
[0018] In response to receiving an instruction from the Bluetooth collector to stop reporting the data of the third instrument, the reporting of the data of the third instrument is stopped, and the third instrument is any instrument of the at least one Bluetooth instrument.
[0019] In some embodiments of the present application, the method further includes:
[0020] When data of the second meter cannot be collected for a second preset time period, a prompt message indicating that the second meter is abnormal is sent to the Bluetooth collector, and the prompt message includes a meter identifier corresponding to the second meter.
[0021] According to a second aspect of an embodiment of the present application, a method for acquiring instrument data based on star flash technology is provided, which is applied to a Bluetooth collector, and the method includes:
[0022] searching for a broadcast signal from a star flash conversion device when no broadcast data from at least one Bluetooth instrument is received for a first preset time period;
[0023] Based on the first identifier in the searched broadcast signal, a meter reading function start instruction and at least one meter identifier are sent to the star flash conversion device, so that the star flash conversion device collects Bluetooth meter data corresponding to the second identifier; the second identifier is any one of the at least one meter identifier; the at least one meter identifier corresponds to the at least one Bluetooth meter in a one-to-one manner;
[0024] Receive Bluetooth instrument data from the Star Flash conversion device.
[0025] In some embodiments of the present application, the method further includes:
[0026] Sending a first meter historical data acquisition instruction to the star flash conversion device, so that the star flash conversion device acquires and stores the historical data of the first meter in a first time period, the first time period being a time period during which the broadcast data of the first meter is not received for a first preset time period, the first meter historical data acquisition instruction including the start time and the end time of the first time period; the first meter is any one of the Bluetooth meters corresponding to the at least one meter identifier;
[0027] sending a first instrument historical data compensation instruction to the star flash conversion device;
[0028] Receive historical data from the star flash conversion device.
[0029] In some embodiments of the present application, the method further includes:
[0030] When receiving broadcast data of a third instrument, an instruction to stop reporting data of the third instrument is sent to the star flash conversion device according to the first identifier, so that the star flash conversion device stops reporting data of the third instrument, and the third instrument is any instrument of the at least one Bluetooth instrument.
[0031] In some embodiments of the present application, the method further includes:
[0032] In response to receiving the prompt information indicating that the second instrument is abnormal, second instrument abnormality alarm information is sent to the host computer, where the prompt information includes an instrument identifier corresponding to the second instrument.
[0033] According to a third aspect of an embodiment of the present application, there is provided an instrument data acquisition device based on star flash technology, which is applied to a star flash conversion device, and the device includes:
[0034] A star flash broadcast module, used for broadcasting a signal including a first identification of a star flash conversion device using the star flash module;
[0035] A receiving module, used for receiving a meter reading function start instruction and at least one meter identification from a Bluetooth collector; the at least one meter identification corresponds to at least one Bluetooth meter in a one-to-one manner;
[0036] A Bluetooth collection module, used for collecting Bluetooth meter data corresponding to a second identifier based on the meter reading function start instruction; the second identifier is any one of the at least one meter identifier;
[0037] The star flash sending module is used to use the star flash module to send the collected Bluetooth instrument data to the Bluetooth collector.
[0038] According to a fourth aspect of an embodiment of the present application, there is provided an instrument data acquisition device based on the star flash technology, which is applied to a Bluetooth collector, and the device includes:
[0039] A search module, configured to search for a broadcast signal from a star flash conversion device when no broadcast data from at least one Bluetooth instrument is received for a first preset time period;
[0040] A sending module, configured to send a meter reading function start instruction and at least one meter identification to the star flash conversion device based on the first identification in the searched broadcast signal, so that the star flash conversion device collects Bluetooth meter data corresponding to the second identification; the second identification is any one of the at least one meter identification; the at least one meter identification corresponds to the at least one Bluetooth meter in a one-to-one manner;
[0041] The receiving module is used to receive the Bluetooth instrument data from the star flash conversion device.
[0042] According to the fifth aspect of the embodiments of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the method of the first aspect of the embodiments of the present application or the method of the second aspect of the embodiments of the present application.
[0043] According to the sixth aspect of the embodiment of the present application, an instrument data acquisition system based on star flash technology is provided, comprising a star flash conversion device and a Bluetooth collector connected to each other, the star flash conversion device is used to implement the method of the first aspect of the embodiment of the present application, and the Bluetooth collector is used to implement the method of the second aspect of the embodiment of the present application.
[0044] The technical solution provided by one aspect of the embodiments of the present application may have the following beneficial effects:
[0045] The meter data acquisition method based on Star Flash technology provided in the embodiment of the present application broadcasts a signal containing a first identifier of a Star Flash conversion device, receives a meter reading function start instruction and at least one meter identifier from a Bluetooth collector, the at least one meter identifier corresponds to at least one Bluetooth meter, and based on the meter reading function start instruction, collects Bluetooth meter data corresponding to a second identifier, the second identifier is any one of the at least one meter identifier, sends the collected Bluetooth meter data to the Bluetooth collector, and can collect Bluetooth meter data and send it to the Bluetooth collector when communication between the Bluetooth meter and the Bluetooth collector fails, solves the problem that the Bluetooth collector cannot obtain Bluetooth meter data when communication between the Bluetooth collector and the Bluetooth meter fails, and improves the success rate of meter reading. This solution is an improvement based on the existing equipment structure, and there is no need to modify the existing Bluetooth water meter and Bluetooth collector. It can be applicable to the existing underground water meter installation solution without large-scale equipment changes.
[0046] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 A flow chart of a method for acquiring instrument data based on star flash technology according to an embodiment of the present application is shown.
[0049] Figure 2 A flow chart of a method for acquiring instrument data based on star flash technology according to an embodiment of the present application is shown.
[0050] Figure 3 A schematic diagram of the communication process between a Bluetooth collector, a Bluetooth instrument and a star flash conversion device in one embodiment of the present application is shown.
[0051] Figure 4 A schematic diagram of the communication process between a Bluetooth collector, a Bluetooth instrument and a star flash conversion device in one embodiment of the present application is shown.
[0052] Figure 5A structural block diagram of an instrument data acquisition device based on star flash technology according to an embodiment of the present application is shown.
[0053] Figure 6 A structural block diagram of an instrument data acquisition device based on star flash technology according to an embodiment of the present application is shown.
[0054] Figure 7 A structural block diagram of an instrument data acquisition system based on star flash technology according to an embodiment of the present application is shown.
[0055] Figure 8 A structural block diagram of an electronic device according to an embodiment of the present application is shown.
[0056] Fig. 9 A schematic diagram of a computer-readable storage medium according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0058] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0059] In response to the technical problem in the related art that the failure rate of Bluetooth communication between a Bluetooth collector and a Bluetooth meter is high, resulting in a low success rate of water meter reading, an embodiment of the present application provides a meter data acquisition method based on Star Flash technology, broadcasting a signal containing a first identifier of a Star Flash conversion device, receiving a meter reading function start instruction and at least one meter identifier from a Bluetooth collector, wherein the at least one meter identifier corresponds to at least one Bluetooth meter, and based on the meter reading function start instruction, collecting Bluetooth meter data corresponding to a second identifier, wherein the second identifier is any one of the at least one meter identifier, and sending the collected Bluetooth meter data to the Bluetooth collector. When the communication between the Bluetooth meter and the Bluetooth collector fails, the Bluetooth meter data can be collected and sent to the Bluetooth collector, thereby solving the problem that the Bluetooth collector cannot obtain the Bluetooth meter data when the communication between the Bluetooth collector and the Bluetooth meter fails, and improving the success rate of meter reading. This scheme is an improvement based on the existing equipment structure, and there is no need to modify the existing Bluetooth water meter and Bluetooth collector. It can be applicable to the existing underground water meter installation scheme without large-scale equipment changes.
[0060] The following describes an instrument data acquisition method, an instrument data acquisition device, an electronic device and an instrument data acquisition system based on star flash technology according to an embodiment of the present application in conjunction with the accompanying drawings.
[0061] refer to Figure 1 As shown, an embodiment of the present application provides an instrument data acquisition method based on the star flash technology, which is applied to a star flash conversion device, and the star flash conversion device supports the Bluetooth protocol and the star flash protocol. The method may include:
[0062] S101, using a star flash module to broadcast a signal containing a first identifier of a star flash conversion device.
[0063] Specifically, the first identifier may be a serial number of the star flash conversion device, and the first identifier may be a MAC address (Media Access Control Address). The communication address of the star flash conversion device may be determined according to the first identifier, so as to connect to the star flash conversion device.
[0064] The star flash conversion device can be installed at a position close to the Bluetooth instrument to obtain data of the Bluetooth instrument. The star flash conversion device includes a star flash module, and the star flash module is used to broadcast a signal containing a first identifier of the star flash conversion device.
[0065] S102: Receive a meter reading function start instruction and at least one meter identification from a Bluetooth collector.
[0066] The at least one instrument identifier corresponds to the at least one Bluetooth instrument in a one-to-one manner.
[0067] Specifically, when the Bluetooth collector fails to receive broadcast data from n Bluetooth instruments for a first preset time, it searches for broadcast signals from the star flash conversion device, where n is a positive integer. A Bluetooth instrument is an instrument connected to the Bluetooth collector and equipped with Bluetooth, including but not limited to a water meter, a gas meter, etc. The first preset time can be set according to actual application needs and is not limited here.
[0068] After the Bluetooth collector searches for the signal broadcast by the Star Flash conversion device, it connects to the Star Flash conversion device according to the first identifier in the signal, and then sends a meter reading function start instruction and n second identifiers to the Star Flash conversion device. The aforementioned n Bluetooth meters correspond one-to-one to the n second identifiers, that is, each Bluetooth meter uniquely corresponds to one second identifier, and each second identifier uniquely corresponds to one Bluetooth meter.
[0069] S103: Based on the meter reading function start instruction, collect Bluetooth meter data corresponding to the second identifier.
[0070] The second identifier is any one of the at least one meter identifier. The star flash conversion device starts its own meter reading function based on the meter reading function start instruction, and then connects to the corresponding Bluetooth meter according to the second identifier to collect data of the corresponding Bluetooth meter.
[0071] Specifically, the star flash conversion device can periodically turn on the scanning function to collect the broadcast data of the Bluetooth instrument corresponding to the second identifier.
[0072] Exemplarily, when the Bluetooth collector fails to collect data from a certain Bluetooth instrument for a first preset period of time (for example, two days), the Bluetooth instrument is identified as an abnormal instrument with abnormal communication, and the Bluetooth collector sends an instruction to the Star Flash conversion device (the instruction includes the table number of the abnormal instrument, and the table number is the second identifier of the abnormal instrument), controlling the Star Flash conversion device to start the conversion function, that is, the Star Flash conversion device collects the data of the abnormal Bluetooth instrument, and then forwards it to the Bluetooth collector relying on the stronger penetration ability of Star Flash technology, thereby realizing normal collection of Bluetooth instrument data.
[0073] S104: Use the Star Flash module to send the collected Bluetooth instrument data to the Bluetooth collector.
[0074] Specifically, the Star Flash conversion device broadcasts the collected Bluetooth instrument data through the Star Flash physical layer and the Bluetooth protocol once every preset time. The broadcast data includes the second identifier of the Bluetooth instrument and the instrument data. The broadcast is a preset number of times, and then the next Bluetooth instrument data is switched to broadcast. All collected Bluetooth instrument data are polled and broadcast in turn. Since the Star Flash physical layer has a stronger penetration ability, the Bluetooth collector can receive the broadcast data of the Star Flash conversion device at a longer distance.
[0075] In some implementations, the method may further include:
[0076] S105, in response to receiving a first instrument historical data acquisition instruction from the Bluetooth collector, acquiring and storing historical data of the first instrument in a first time period, wherein the first instrument historical data acquisition instruction includes a start time and an end time of the first time period. The first instrument is any one of the Bluetooth instruments corresponding to the at least one instrument identifier.
[0077] S107 . In response to receiving a first meter historical data compensation instruction from the Bluetooth collector, sending the historical data of the first meter in a first time period to the Bluetooth collector.
[0078] Exemplarily, it is assumed that the first time period is from the moment when the Star Flash conversion device starts the meter reading function based on the meter reading function start instruction from the Bluetooth collector to the previous two days, and the duration is 48 hours, that is, the end time of the first time period is the moment when the Star Flash conversion device starts the meter reading function based on the meter reading function start instruction from the Bluetooth collector, and the start time is the moment 48 hours ago. After the Star Flash conversion device receives the historical data acquisition instruction sent by the Bluetooth collector, it obtains the historical data of the abnormal Bluetooth meter within 48 hours from the end time of the first time period, and stores it in the internal temporary storage module of the Star Flash conversion device. The Bluetooth collector actively connects to the Star Flash conversion device again and sends an "abnormal meter data compensation" instruction to obtain the missing data of the abnormal Bluetooth meter. The Star Flash conversion device sends the Bluetooth meter data of the abnormal Bluetooth meter in the first time period stored in the storage module to the Bluetooth collector to complete the missing meter data.
[0079] In this way, the Bluetooth collector can obtain the instrument data that was not collected in the first period, thereby improving the integrity of the collected Bluetooth instrument data.
[0080] In some implementations, the step S107 may include the following steps: S106, sending a message that historical data has been collected to the Bluetooth collector. In this way, the Bluetooth collector may send a historical data compensation instruction to the star flash conversion device after receiving the message that historical data has been collected, so as to improve the success rate of obtaining the historical data collected by the star flash conversion device and avoid sending a historical data compensation instruction when the star flash conversion device has not completed collecting historical data.
[0081] Exemplarily, sending the acquired first Bluetooth instrument data to the Bluetooth collector may include: adding a third identifier to the collected Bluetooth instrument data; and sending the Bluetooth instrument data with the third identifier to the Bluetooth collector. The Bluetooth instrument data with the third identifier added is easy to identify, so that it is easy to distinguish the data sent by the star flash conversion device to the Bluetooth collector and the data directly sent by the Bluetooth instrument to the Bluetooth collector, so as to query the time when the problem occurred and other information based on the data later, and provide reference information for equipment maintenance.
[0082] Exemplarily, the Starflash conversion device processes the collected first Bluetooth instrument data and adds a data identification bit. By determining the data identification bit of the Bluetooth collector at a certain moment, it can be determined whether the data comes from the Starflash conversion device or the Bluetooth instrument, which facilitates subsequent inquiries about the time when the problem occurred and provides a reference for equipment maintenance.
[0083] In some implementations, the method may further include: S108, in response to receiving an instruction from the Bluetooth collector to stop reporting data of a third instrument, stopping reporting data of the third instrument, wherein the third instrument is any one of the at least one Bluetooth instrument.
[0084] Exemplarily, in response to receiving a meter reading function shut-down instruction from the Bluetooth collector, the collection of Bluetooth meter data is stopped.
[0085] After the communication between the Bluetooth collector and each of the at least one Bluetooth meter mentioned above is restored, the Bluetooth collector can send a meter reading function shutdown instruction to the Star Flash conversion device, thereby controlling the Star Flash conversion device to stop collecting and forwarding data from the Bluetooth meter to save energy.
[0086] In some implementations, the method may further include: S109, when data of the second meter cannot be collected for a second preset time period, sending a prompt message indicating an abnormality of the second meter to the Bluetooth collector, wherein the prompt message includes a meter identifier corresponding to the second meter. The second preset time period may be set according to actual application needs and is not limited here.
[0087] Exemplarily, the star flash conversion device has a diagnostic function. When the star flash conversion device fails to collect broadcast data from a certain Bluetooth instrument for a second preset period of time (for example, two days), it indicates that the Bluetooth broadcast function of the Bluetooth instrument is abnormal and the meter-end data cannot be broadcast normally. When broadcasting the relevant content of the abnormal Bluetooth instrument, the star flash conversion device sets the Bluetooth communication position to "abnormal". The Bluetooth collector obtains the "abnormal" state and reports it to the system, prompting the system to repair the Bluetooth instrument. When the Bluetooth collector fails to collect normal data or prompts abnormal data of the Bluetooth instrument, it is determined that the communication function of the Bluetooth collector has failed. Through this setting, it is easy to determine whether the communication function between the Bluetooth instrument and the Bluetooth collector is normal, and it is easy to determine whether the communication is only temporarily interrupted due to special circumstances.
[0088] Exemplarily, the Star Flash conversion device uses a Star Flash module, which supports both Bluetooth and Star Flash protocols. In order to better be compatible with Bluetooth instruments and Bluetooth collectors, the Star Flash conversion device uses the Bluetooth protocol when interacting with Bluetooth collectors and Bluetooth instruments, but the physical layer still uses Star Flash technology, so it still has the advantages of Star Flash technology such as low latency, high anti-interference performance, and stronger penetration ability.
[0089] The Star Flash conversion device can convert the communication data and send it to the Bluetooth collector through the Star Flash module during the communication failure between the Bluetooth collector and the Bluetooth instrument, solving the problem of Bluetooth communication interruption between the Bluetooth collector and the Bluetooth instrument.
[0090] refer to Figure 2 As shown, another embodiment of the present application provides an instrument data acquisition method based on star flash technology, which is applied to a Bluetooth collector. The method may include:
[0091] S201 : searching for a broadcast signal from a star flash conversion device when no broadcast data from at least one Bluetooth instrument is received for a first preset time period.
[0092] The Bluetooth instrument is an instrument connected to the Bluetooth collector and equipped with Bluetooth, including but not limited to a water meter, a gas meter, etc.
[0093] S202: Based on the first identifier in the searched broadcast signal, send a meter reading function start instruction and at least one meter identifier to the star flash conversion device, so that the star flash conversion device collects Bluetooth meter data corresponding to the second identifier.
[0094] The second identifier is any one of the at least one instrument identifier; the at least one instrument identifier corresponds to the at least one Bluetooth instrument in a one-to-one manner.
[0095] S203, receiving Bluetooth instrument data from the star flash conversion device.
[0096] In some embodiments, the method may further include:
[0097] S204: Send a first meter historical data acquisition instruction to the star flash conversion device, so that the star flash conversion device acquires and stores the historical data of the first Bluetooth meter in a first time period.
[0098] The first time period is a time period during which no broadcast data of the first instrument is received for a first preset continuous time period, and the first instrument historical data acquisition instruction includes the start time and end time of the first time period; the first instrument is any one of the Bluetooth instruments corresponding to the at least one instrument identifier.
[0099] S205: Send a first instrument historical data compensation instruction to the star flash conversion device.
[0100] In some implementations, step S205 may be replaced by: S205', in response to receiving a message from the star flash conversion device indicating that historical data has been collected, sending a historical data compensation instruction to the star flash conversion device. Step S205' is performed when the star flash conversion device sends a message to the Bluetooth collector indicating that historical data has been collected after collecting historical data.
[0101] S206: Receive historical data from the star flash conversion device.
[0102] In some implementations, the method may further include:
[0103] S207. When receiving broadcast data from a third instrument, send an instruction to stop reporting data of the third instrument to the star flash conversion device according to the first identifier, so that the star flash conversion device stops reporting data of the third instrument, where the third instrument is any one of the at least one Bluetooth instrument.
[0104] Exemplarily, when broadcast data is received from each of the at least one Bluetooth meter, a meter reading function shutdown instruction is sent to the Star Flash conversion device according to the first identifier, so that the Star Flash conversion device stops reporting the data of the Bluetooth meter.
[0105] In some implementations, the method may further include: when the Bluetooth collector cannot collect the broadcast signal or reported data of the star flash conversion device, determining that the star flash conversion device is damaged, and reporting damage information of the star flash conversion device.
[0106] In some implementations, the method may further include:
[0107] S208. In response to receiving the prompt information indicating that the second instrument is abnormal, sending second instrument abnormality alarm information to the host computer, wherein the prompt information includes an instrument identifier corresponding to the second instrument.
[0108] Sending the abnormal alarm information of the first Bluetooth instrument to the upper computer can prompt the first Bluetooth instrument to be repaired.
[0109] The method of this embodiment can collect Bluetooth meter data and send it to the Bluetooth collector when communication between the Bluetooth meter and the Bluetooth collector fails, solving the problem that the Bluetooth collector cannot obtain Bluetooth meter data when communication between the Bluetooth collector and the Bluetooth meter fails, thereby improving the success rate of meter reading.
[0110] In a specific example, in a water meter data reading application scenario, the meter data acquisition method may include the following steps:
[0111] 1)Reference Figure 3 As shown, the Bluetooth collector scans and receives the broadcast data of all Bluetooth water meters every 4 hours (this example takes a total of 10 Bluetooth water meters that cannot communicate with the Bluetooth collector as an example). When the conversion function is not turned on, the Star Flash conversion device broadcasts its own number through the Star Flash module (Bluetooth protocol) every two seconds with low power consumption. The location where the Bluetooth collector is installed meets the remote communication signal strength and is close enough to the Bluetooth water meter.
[0112] like Figure 3 As shown, the broadcast content of each Bluetooth meter includes the meter number, cumulative amount, battery voltage and meter status, and the Bluetooth collector scans and receives the broadcast data of each Bluetooth meter. The broadcast content of the Star Flash conversion device includes the meter number of the Star Flash conversion device, and the Bluetooth collector obtains the meter number broadcast by the Star Flash conversion device. In this example, there are a total of 10 Bluetooth water meters that cannot communicate with the Bluetooth collector, each of which has a corresponding meter number, which is the identification.
[0113] 2) If the Bluetooth collector fails to normally collect broadcast data of m Bluetooth water meters for two consecutive days, the Bluetooth collector determines that the connection with the m Bluetooth water meters has failed, where m is a positive integer not greater than 10.
[0114] 3) When the Bluetooth collector determines that the connection with the Bluetooth water meter fails, the Bluetooth collector searches for the signal broadcast by the Star Flash conversion device, receives the number broadcast by the Star Flash conversion device, connects to the Star Flash conversion device according to the number, sends an instruction to turn on the meter reading function of the Star Flash conversion device for the abnormal Bluetooth water meter, and records the MAC address of the Star Flash conversion device at the same time.
[0115] Step 4) Reference Figure 4As shown, after receiving the instruction from the Bluetooth collector, the Star Flash conversion device turns on the meter reading scheduled upload function. According to the meter number of the abnormal Bluetooth water meter sent by the Bluetooth collector received by the Star Flash conversion device (the Bluetooth collector can send the meter numbers of up to 20 Bluetooth water meters), the scanning function is turned on every hour to collect the broadcast data of the abnormal Bluetooth water meter. In addition, the Star Flash conversion device connects to the abnormal Bluetooth water meter, obtains the data of the previous two days, and stores it in the internal temporary storage module; the Star Flash conversion device turns on the compensation function, and sends the water meter data of the latest two days stored in the temporary storage module to the Bluetooth collector to complete the meter data not received by the Bluetooth collector.
[0116] like Figure 4 As shown, the broadcast content of each Bluetooth meter includes the meter number, cumulative amount, battery voltage and meter status. The star flash conversion device scans and receives the broadcast data of each Bluetooth meter, and then sends the obtained Bluetooth meter data to the Bluetooth collector.
[0117] Step 5) The Star Flash conversion device will broadcast the collected Bluetooth water meter data through the Star Flash physical layer, still relying on the Bluetooth protocol, every two seconds. The broadcast data is the meter number and data of a Bluetooth water meter. It will be broadcasted 10 times in a row, and then switch to broadcast the next Bluetooth water meter, and then poll and broadcast the data of all Bluetooth water meters in turn. Since the Star Flash physical layer has a stronger penetration ability, the Bluetooth collector can receive the broadcast data of the Star Flash conversion device at a longer distance.
[0118] Step 6) The Bluetooth collector continues to scan and receive the broadcast data of all Bluetooth water meters every 4 hours (currently the data is broadcast by the Star Flash conversion device switching the Bluetooth water meter number in sequence), obtains the data of all Bluetooth water meters, and reports it to the system end.
[0119] Step 7) Due to environmental changes, such as the Bluetooth water meter's well becoming dry, or the well cover being free of foreign matter, the Bluetooth water meter's broadcast transmission range is restored to a level that can be received by the Bluetooth collector. In this case, the following two processing methods can be used:
[0120] Method 1: The Bluetooth collector identifies the MAC address of the Bluetooth water meter broadcast data (each Bluetooth water meter or Star Flash conversion device has a unique MAC address). If the broadcast data of 10 meters can be scanned and read normally, the MAC address of the Star Flash conversion device is connected and the data forwarding function of the Star Flash conversion device is turned off.
[0121] Method 2: When the Xingshan conversion device forwards the Bluetooth water meter data, the Xingshan conversion device number is added to the broadcast data content to prompt that the data is forwarded by the Xingshan conversion device, that is, the broadcast data is: Xingshan conversion device number, Bluetooth water meter number, cumulative amount, battery voltage, meter status. When the Bluetooth collector can normally scan and read the broadcast data of 10 meters, the Bluetooth collector searches for the Xingshan conversion device number, connects to the Xingshan conversion device, and sends a command to turn off the data forwarding function of the Xingshan conversion device.
[0122] After the data forwarding function of the Star Flash conversion device is turned off, it returns to the state where the conversion function is not turned on. The Star Flash conversion device only needs to broadcast its own number and does not need to scan the Bluetooth water meter, so the power consumption is low.
[0123] The Star Flash conversion device is equipped with a Star Flash SLE interface. The application of the Star Flash SLE interface is mainly based on Bluetooth technology, using Polar channel coding to improve transmission reliability, reduce retransmission and save power consumption, while supporting a maximum transmission bandwidth of 4MHz, a maximum of 8PSK modulation, 1-to-many reliable multicast, 4KHz short-delay interaction, secure pairing, privacy protection and other features, while ensuring transmission efficiency as much as possible, fully considering energy-saving factors.
[0124] In the scenario of this example, a solution combining a short-range wireless remote water meter and a collection device is adopted, and the Bluetooth collector is installed at the wellhead (where the network signal is better). In the event of Bluetooth communication failure, the star flash conversion device can be used to collect data from the Bluetooth water meter, and by judging the reported data, it can be identified whether the Bluetooth communication is normal, and whether the communication between the Bluetooth collector and the water meter has returned to normal, thereby effectively improving the success rate of meter reading for water meters in underground wells or other environments with poor signals.
[0125] Compared with Bluetooth, Star Flash technology has the advantages of low latency (Star Flash latency is a few ms, Bluetooth latency is tens of ms), high anti-interference performance (Star Flash adopts the method of integrating scanning channels and shielding interference channels, which has super anti-interference performance and is 10dB better than Bluetooth's adaptive AFH frequency hopping method), and stronger penetration ability (at the same 3Mbps throughput rate, the sensitivity is 7.5dB better than Bluetooth, and can penetrate one more glass window or metal door). The application of Star Flash technology solves the problem of Bluetooth instrument matching Bluetooth collector in related technologies, unstable communication, and inability to report data completely and accurately.
[0126] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0127] refer to Figure 5As shown, an embodiment of the present application provides an instrument data acquisition device based on star flash technology, which is applied to a star flash conversion device, and the device includes:
[0128] A star flash broadcast module, used for broadcasting a signal including a first identification of a star flash conversion device using the star flash module;
[0129] A receiving module, used for receiving a meter reading function start instruction and at least one meter identification from a Bluetooth collector; the at least one meter identification corresponds to at least one Bluetooth meter in a one-to-one manner;
[0130] A Bluetooth collection module, used for collecting Bluetooth meter data corresponding to a second identifier based on the meter reading function start instruction; the second identifier is any one of the at least one meter identifier;
[0131] The star flash sending module is used to use the star flash module to send the collected Bluetooth instrument data to the Bluetooth collector.
[0132] Exemplarily, the Bluetooth acquisition module is further used for: in response to receiving a first instrument historical data acquisition instruction from the Bluetooth collector, acquiring and storing historical data of the first instrument in a first time period, wherein the first instrument historical data acquisition instruction includes a start time and an end time of the first time period; the first instrument is any one of the Bluetooth instruments corresponding to the at least one instrument identifier;
[0133] The star flash sending module is further used for: in response to receiving a first instrument historical data compensation instruction from the Bluetooth collector, sending the historical data to the Bluetooth collector.
[0134] Exemplarily, the star flash sending module is further used to: add a third identifier to the collected Bluetooth instrument data; and send the Bluetooth instrument data with the third identifier added to the Bluetooth collector.
[0135] Exemplarily, the device further includes:
[0136] The stopping module is used to stop reporting the data of the third instrument in response to receiving an instruction to stop reporting the data of the third instrument from the Bluetooth collector, wherein the third instrument is any one of the at least one Bluetooth instrument.
[0137] Exemplarily, the device further includes:
[0138] The prompt module is used to send a prompt message indicating that the second meter is abnormal to the Bluetooth collector when the data of the second meter cannot be collected for a second preset time period, and the prompt message includes a meter identifier corresponding to the second meter.
[0139] refer to Figure 6 As shown, another embodiment of the present application provides an instrument data acquisition device based on star flash technology, which is applied to a Bluetooth collector, and the device includes:
[0140] A search module, configured to search for a broadcast signal from a star flash conversion device when no broadcast data from at least one Bluetooth instrument is received for a first preset time period;
[0141] A sending module, configured to send a meter reading function start instruction and at least one meter identification to the star flash conversion device based on the first identification in the searched broadcast signal, so that the star flash conversion device collects Bluetooth meter data corresponding to the second identification; the second identification is any one of the at least one meter identification; the at least one meter identification corresponds to the at least one Bluetooth meter in a one-to-one manner;
[0142] The receiving module is used to receive the Bluetooth instrument data from the star flash conversion device.
[0143] Exemplarily, the sending module is further used to: send a first instrument history data acquisition instruction to the star flash conversion device, so that the star flash conversion device acquires and stores the history data of the first instrument in a first time period, the first time period is a time period in which the broadcast data of the first instrument is not received for a first preset time period, and the first instrument history data acquisition instruction includes the start time and the end time of the first time period; the first instrument is any one of the Bluetooth instruments corresponding to the at least one instrument identifier;
[0144] The sending module is also used to send a first instrument historical data compensation instruction to the star flash conversion device;
[0145] The receiving module is further used to receive historical data from the star flash conversion device.
[0146] Exemplarily, the sending module is also used to send an instruction to stop reporting the third instrument data to the star flash conversion device according to the first identifier when receiving the broadcast data of the third instrument, so that the star flash conversion device stops reporting the data of the third instrument, and the third instrument is any one of the at least one Bluetooth instrument.
[0147] In some implementations, the sending module is further used to: when the Bluetooth collector cannot collect the broadcast signal or reported data of the star flash conversion device, determine that the star flash conversion device is damaged, and report the damage information of the star flash conversion device.
[0148] Exemplarily, the sending module is further used to send second instrument abnormality alarm information to the host computer in response to receiving prompt information indicating that the second instrument is abnormal, wherein the prompt information includes an instrument identifier corresponding to the second instrument.
[0149] refer to Figure 7 As shown, another embodiment of the present application provides an instrument data acquisition system based on star flash technology, including a star flash conversion device and a Bluetooth collector connected to each other, the star flash conversion device is used to implement the instrument data acquisition method based on star flash technology applied to the star flash conversion device of any embodiment of the present application, and the Bluetooth collector is used to implement the instrument data acquisition method based on star flash technology applied to the Bluetooth collector of any embodiment of the present application.
[0150] In some implementations, the instrument data acquisition system may further include a host computer, which is communicatively connected to the Bluetooth collector.
[0151] Another embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a method of any of the above embodiments.
[0152] refer to Figure 8 As shown, the electronic device 10 may include: a processor 100, a memory 101, a bus 102 and a communication interface 103, and the processor 100, the communication interface 103 and the memory 101 are connected via the bus 102; the memory 101 stores a computer program that can be run on the processor 100, and when the processor 100 runs the computer program, it executes the method provided in any of the aforementioned embodiments of the present application.
[0153] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the device network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0154] The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 101 is used to store a program, and the processor 100 executes the program after receiving an execution instruction. The method disclosed in any implementation of the aforementioned embodiment of the present application may be applied to the processor 100, or implemented by the processor 100.
[0155] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 100 or an instruction in the form of software. The above processor 100 may be a general-purpose processor, which may include a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the above method in combination with its hardware.
[0156] The electronic device provided in the embodiment of the present application and the method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, operated or implemented by them.
[0157] Another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the method of any of the above embodiments. Fig. 9 As shown, the computer-readable storage medium shown is a CD 20 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the method provided by any of the aforementioned embodiments will be executed.
[0158] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0159] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.
[0160] It should be noted that:
[0161] The term "module" is not intended to be limited to a specific physical form. Depending on the specific application, a module can be implemented as hardware, firmware, software, and / or a combination thereof. In addition, different modules can share common components or even be implemented by the same components. There may or may not be clear boundaries between different modules.
[0162] The algorithm and display provided herein are not inherently related to any specific computer, virtual device or other equipment. Various general devices can also be used together with examples based on this. According to the above description, it is obvious to construct the structure required for this type of device. In addition, the application is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the application described herein, and the description made to specific languages above is for the purpose of disclosing the best mode of implementation of the application.
[0163] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0164] The above embodiments only express the implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for acquiring instrument data based on star flash technology, characterized in that: Applied to a star flash conversion device, the method comprises: Using the star flash module to broadcast a signal including a first identifier of the star flash conversion device; Receiving a meter reading function start instruction and at least one meter identification from a Bluetooth collector; the at least one meter identification corresponds to at least one Bluetooth meter in a one-to-one manner; Based on the meter reading function start instruction, collecting Bluetooth meter data corresponding to a second identifier; the second identifier is any one of the at least one meter identifier; The Star Flash module is used to send the collected Bluetooth instrument data to the Bluetooth collector.
2. The method according to claim 1, characterized in that The method further comprises: In response to receiving a first instrument history data acquisition instruction from the Bluetooth collector, acquiring and storing history data of the first instrument in a first time period, wherein the first instrument history data acquisition instruction includes a start time and an end time of the first time period; the first instrument is any one of the Bluetooth instruments corresponding to the at least one instrument identifier; In response to receiving the first instrument historical data compensation instruction from the Bluetooth collector, the historical data is sent to the Bluetooth collector.
3. The method according to claim 1 or 2, characterized in that: The sending the collected Bluetooth instrument data to the Bluetooth collector includes: adding a third identifier to the collected Bluetooth instrument data; The Bluetooth instrument data with the third identifier added thereto is sent to the Bluetooth collector.
4. The method according to claim 1 or 2, characterized in that: The method further comprises: In response to receiving an instruction from the Bluetooth collector to stop reporting the data of the third instrument, the reporting of the data of the third instrument is stopped, and the third instrument is any instrument of the at least one Bluetooth instrument.
5. The method according to claim 1 or 2, characterized in that: The method further comprises: When data of the second meter cannot be collected for a second preset time period, a prompt message indicating that the second meter is abnormal is sent to the Bluetooth collector, and the prompt message includes a meter identifier corresponding to the second meter.
6. A method for acquiring instrument data based on star flash technology, characterized in that: Applied to a Bluetooth collector, the method includes: searching for a broadcast signal from a star flash conversion device when no broadcast data from at least one Bluetooth instrument is received for a first preset time period; Based on the first identifier in the searched broadcast signal, a meter reading function start instruction and at least one meter identifier are sent to the star flash conversion device, so that the star flash conversion device collects Bluetooth meter data corresponding to the second identifier; the second identifier is any one of the at least one meter identifier; the at least one meter identifier corresponds to the at least one Bluetooth meter in a one-to-one manner; Receive Bluetooth instrument data from the Star Flash conversion device.
7. The method according to claim 6, characterized in that The method further comprises: Sending a first meter historical data acquisition instruction to the star flash conversion device, so that the star flash conversion device acquires and stores the historical data of the first meter in a first time period, the first time period being a time period during which the broadcast data of the first meter is not received for a first preset time period, the first meter historical data acquisition instruction including the start time and the end time of the first time period; the first meter is any one of the Bluetooth meters corresponding to the at least one meter identifier; sending a first instrument historical data compensation instruction to the star flash conversion device; Receive historical data from the star flash conversion device.
8. The method according to claim 6 or 7, characterized in that: The method further comprises: When receiving broadcast data of a third instrument, an instruction to stop reporting data of the third instrument is sent to the star flash conversion device according to the first identifier, so that the star flash conversion device stops reporting data of the third instrument, and the third instrument is any instrument of the at least one Bluetooth instrument.
9. The method according to claim 6 or 7, characterized in that: The method further comprises: When the Bluetooth collector cannot collect the broadcast signal or reported data of the star-flash conversion device, it is determined that the star-flash conversion device is damaged, and the damage information of the star-flash conversion device is reported.
10. An instrument data acquisition device based on star flash technology, characterized in that: Applicable to a star flash conversion device, the device comprising: A star flash broadcast module, used for broadcasting a signal including a first identification of the star flash conversion device; A receiving module, used for receiving a meter reading function start instruction and at least one meter identification from a Bluetooth collector; the at least one meter identification corresponds to at least one Bluetooth meter in a one-to-one manner; A Bluetooth collection module, used for collecting Bluetooth meter data corresponding to a second identifier based on the meter reading function start instruction; the second identifier is any one of the at least one meter identifier; The star flash sending module is used to send the collected Bluetooth instrument data to the Bluetooth collector.
11. An instrument data acquisition device based on star flash technology, characterized in that: Applied to a Bluetooth collector, the device comprises: A search module, configured to search for a broadcast signal from a star flash conversion device when no broadcast data from at least one Bluetooth instrument is received for a first preset time period; A sending module, configured to send a meter reading function start instruction and at least one meter identification to the star flash conversion device based on the first identification in the searched broadcast signal, so that the star flash conversion device collects Bluetooth meter data corresponding to the second identification; the second identification is any one of the at least one meter identification; the at least one meter identification corresponds to the at least one Bluetooth meter in a one-to-one manner; The receiving module is used to receive the Bluetooth instrument data from the star flash conversion device.
12. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method according to any one of claims 1 to 5 or the method according to any one of claims 6 to 9.
13. An instrument data acquisition system based on star flash technology, characterized in that: It comprises a star flash conversion device and a Bluetooth collector connected to each other, the star flash conversion device is used to implement the method as claimed in any one of claims 1 to 5, and the Bluetooth collector is used to implement the method as claimed in any one of claims 6 to 9.
