CN116437240A - Data information transmission method, device and equipment - Google Patents

Data information transmission method, device and equipment Download PDF

Info

Publication number
CN116437240A
CN116437240A CN202210003171.4A CN202210003171A CN116437240A CN 116437240 A CN116437240 A CN 116437240A CN 202210003171 A CN202210003171 A CN 202210003171A CN 116437240 A CN116437240 A CN 116437240A
Authority
CN
China
Prior art keywords
data information
reporting
target data
identification
task
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.)
Pending
Application number
CN202210003171.4A
Other languages
Chinese (zh)
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.)
TANCY INSTRUMENT GROUP CO Ltd
Goldcard Smart Group Co Ltd
Original Assignee
TANCY INSTRUMENT GROUP CO Ltd
Goldcard Smart Group 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 TANCY INSTRUMENT GROUP CO Ltd, Goldcard Smart Group Co Ltd filed Critical TANCY INSTRUMENT GROUP CO Ltd
Priority to CN202210003171.4A priority Critical patent/CN116437240A/en
Publication of CN116437240A publication Critical patent/CN116437240A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/80Arrangements in the sub-station, i.e. sensing device
    • H04Q2209/82Arrangements in the sub-station, i.e. sensing device where the sensing device takes the initiative of sending data
    • H04Q2209/826Arrangements in the sub-station, i.e. sensing device where the sensing device takes the initiative of sending data where the data is sent periodically

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The application provides a data information transmission method, a device and equipment, and relates to a data processing technology, wherein the method comprises the following steps: receiving a task to be reported sent by electronic equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to project label data information; determining target data information corresponding to a task to be reported according to the identification ID; transmitting the target data information to the electronic equipment according to the reporting time parameter; the reporting time parameter characterizes the reporting time of the target data information. According to the method, the reporting time parameter and the identification ID corresponding to the target data information are flexibly configured according to the actual data requirement of the user, and then the target data information is acquired according to the data interaction process, so that the mode of acquiring the target data information is very convenient and quick, the response speed is high, the time for acquiring the operation data of the instrument equipment is greatly shortened, and the technical problem that the operation data acquisition period of the instrument equipment is long is solved.

Description

Data information transmission method, device and equipment
Technical Field
The present disclosure relates to data processing technologies, and in particular, to a data information transmission method, apparatus, and device.
Background
Currently, when an instrument device is put into use, a user needs to acquire operation data of the instrument device in order to be able to learn the operation condition of the instrument device.
In the prior art, when obtaining operation data of an instrument device, a corresponding program is generally determined and developed according to the operation data, and then the operation data of the instrument device is obtained according to the program.
However, in the prior art, since the operation data of the instrument device is obtained according to the program, the development process of the program is complex and takes a long time, so that the operation data of the instrument device cannot be obtained in time.
Disclosure of Invention
The application provides a data information transmission method, a data information transmission device and data information transmission equipment, which are used for solving the technical problem that the operation data acquisition period of instrument equipment is longer.
In a first aspect, the present application provides a data information transmission method, applied to an instrument device, including:
receiving a task to be reported sent by electronic equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to project label data information;
determining target data information corresponding to the task to be reported according to the identification ID;
according to the reporting time parameter, the target data information is sent to the electronic equipment; wherein the reporting time parameter characterizes the reporting time of the target data information.
Further, determining, according to the identifier ID, target data information corresponding to the task to be reported, including:
and determining target data information corresponding to the identification ID in the task to be reported according to the mapping relation between the identification ID and the data information in the preset data dictionary.
Further, sending the target data information to the electronic device according to the reporting time parameter includes:
and determining a reporting type corresponding to the reporting time parameter, and sending the target data information to the electronic equipment according to the reporting type.
Further, when the reporting type of the reporting time parameter is a preset time point, the target data information is sent to the electronic device according to the reporting type, including:
acquiring a first current time point through a timer, and comparing the first current time point with a preset time point;
if the first current time point is the same as the preset time point, the target data information is sent to the electronic equipment at the first current time point;
and/or when the reporting type of the reporting time parameter is a reporting period within a preset time period, sending the target data information to the electronic device according to the reporting type, including:
Acquiring a second current time point through a timer, and comparing the second current time point with a preset time period;
and if the second current time point is determined to be in the range of the preset time period, the target data information is sent to the electronic equipment according to the reporting period in the time period.
Further, the electronic device stores a data dictionary including a mapping relationship between data information and identification IDs.
Further, the electronic device includes an operation interface, where the operation interface is configured to process the reporting time parameter, the sequence of the plurality of ID identifiers, and the number of ID identifiers in the task to be reported.
In a second aspect, the present application provides a data information transmission method, applied to an electronic device, including:
determining and generating a task to be reported of the instrument equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to project label data information;
sending the task to be reported to the instrument equipment; the identification ID in the task to be reported is used for determining target data information, and the reporting time parameter characterizes the reporting time of the target data information;
And receiving target data information sent by the instrument equipment according to the reporting time parameter.
Further, the target data information is obtained according to the identification ID in the task to be reported based on the mapping relation between the identification ID and the data information in the preset data dictionary.
Further, the reporting type of the reporting time parameter includes: a preset reporting time point and/or a reporting period in a preset time period;
receiving target data information sent by the instrument equipment according to the reporting time parameter, wherein the target data information comprises the following steps:
and receiving target data information sent by the instrument equipment at a preset time point, and/or receiving target data information sent by the instrument equipment in a preset time period according to a reporting period in the time period.
Further, the method further comprises:
acquiring an identification ID and data information;
and establishing a mapping relation between the data information and the identification ID, establishing a data dictionary according to the mapping relation, and synchronizing the data dictionary to the instrument equipment.
Further, the electronic device is used for displaying an operation interface; the method further comprises the steps of:
and responding to the triggering operation of the user on the operation interface, and carrying out configuration processing on the reporting time parameter, the sequence of a plurality of identification IDs and the number of the identification IDs in the task to be reported.
In a third aspect, the present application provides a data information transmission device, applied to an instrument apparatus, including:
the receiving unit is used for receiving a task to be reported sent by the electronic equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to project label data information;
the determining unit is used for determining target data information corresponding to the task to be reported according to the identification ID;
the sending unit is used for sending the target data information to the electronic equipment according to the reporting time parameter; wherein the reporting time parameter characterizes the reporting time of the target data information.
Further, the determining unit is specifically configured to:
and determining target data information corresponding to the identification ID in the task to be reported according to the mapping relation between the identification ID and the data information in the preset data dictionary.
Further, the transmitting unit includes:
the determining module is used for determining the reporting type corresponding to the reporting time parameter;
and the sending module is used for sending the target data information to the electronic equipment according to the reporting type.
Further, when the reporting type of the reporting time parameter is a preset time point, the sending module includes:
The first comparison sub-module is used for acquiring a first current time point through a timer and comparing the first current time point with a preset time point;
and the first sending sub-module is used for sending the target data information to the electronic equipment at the first current time point if the first current time point is the same as the preset time point.
Further, when the reporting type of the reporting time parameter is a reporting period within a preset time period, the sending module includes:
the second comparison sub-module is used for acquiring a second current time point through a timer and comparing the second current time point with a preset time period;
and the second sending sub-module is used for sending the target data information to the electronic equipment according to the reporting period in the time period if the second current time point is determined to be in the range of the preset time period.
Further, the electronic device stores a data dictionary including a mapping relationship between data information and identification IDs.
Further, the electronic device includes an operation interface, where the operation interface is configured to process the reporting time parameter, the sequence of the plurality of ID identifiers, and the number of ID identifiers in the task to be reported.
In a fourth aspect, the present application provides a data information transmission apparatus, applied to an electronic device, including:
the generating unit is used for determining and generating a task to be reported of the instrument equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to project label data information;
the sending unit is used for sending the task to be reported to the instrument equipment; the identification ID in the task to be reported is used for determining target data information, and the reporting time parameter characterizes the reporting time of the target data information;
and the receiving unit is used for receiving the target data information sent by the instrument equipment according to the reporting time parameter.
Further, the target data information is obtained according to the identification ID in the task to be reported based on the mapping relation between the identification ID and the data information in the preset data dictionary.
Further, the reporting type of the reporting time parameter includes: a preset reporting time point and/or a reporting period in a preset time period;
the receiving unit is specifically configured to:
and receiving target data information sent by the instrument equipment at a preset time point, and/or receiving target data information sent by the instrument equipment in a preset time period according to a reporting period in the time period.
Further, the apparatus further comprises:
an acquisition unit configured to acquire an identification ID and data information;
and the establishing unit is used for establishing a mapping relation between the data information and the identification ID, establishing a data dictionary according to the mapping relation and synchronizing the data dictionary to the instrument equipment.
Further, the electronic device is used for displaying an operation interface; the device further comprises:
and the configuration unit is used for responding to the triggering operation of the user on the operation interface and carrying out configuration processing on the reporting time parameter, the sequence of a plurality of identification IDs and the number of the identification IDs in the task to be reported.
In a fifth aspect, the present application provides a meter device comprising a memory, a processor, the memory having stored therein a computer program executable on the processor, the processor implementing the method of the first aspect when executing the computer program.
In a sixth aspect, the present application provides an electronic device, including a memory, and a processor, where the memory stores a computer program executable on the processor, and where the processor implements the method of the second aspect when the processor executes the computer program.
In a seventh aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for performing the method of the first aspect when executed by a processor.
In an eighth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of the first aspect.
The data information transmission method, the data information transmission device and the data information transmission equipment are used for receiving tasks to be reported sent by electronic equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to project label data information; determining target data information corresponding to a task to be reported according to the identification ID; transmitting the target data information to the electronic equipment according to the reporting time parameter; the reporting time parameter characterizes the reporting time of the target data information. In the scheme, the electronic equipment generates a task to be reported and sends the task to be reported to the instrument equipment, wherein the task to be reported comprises a reporting time parameter and an identification ID, a mapping relation exists between the identification ID and data information, after the instrument equipment receives the task to be reported, the target data information corresponding to the identification ID in the task to be reported is determined according to the mapping relation between the identification ID and the data information, and then the target data information is sent to the electronic equipment according to the reporting time parameter in the task to be reported, so that the electronic equipment can acquire the target data information.
Therefore, in order to acquire the target data information, the electronic device can flexibly configure the reporting time parameter and the identifier ID corresponding to the target data information, then the configured reporting time parameter and the identifier ID corresponding to the target data information are sent to the instrument device, the instrument device sends the determined target data information corresponding to the identifier ID to the electronic device according to the reporting time parameter, and finally the electronic device acquires the target data information, so that data interaction between the instrument device and the electronic device is realized. Therefore, according to the actual data requirement of the user, the reporting time parameter and the identification ID corresponding to the target data information are flexibly configured, and further the target data information is acquired according to the data interaction process, so that the mode of acquiring the target data information is very convenient and quick, the response speed is high, the time for acquiring the operation data of the instrument equipment is greatly shortened, and the technical problem of long operation data acquisition period of the instrument equipment is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart of a data information transmission method according to an embodiment of the present application;
fig. 2 is a flow chart of another data information transmission method according to an embodiment of the present application;
fig. 3 is a flow chart of another data information transmission method according to an embodiment of the present application;
fig. 4 is a flow chart of another data information transmission method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data information transmission device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another data information transmission device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another data information transmission device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another data information transmission device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an instrument device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 11 is a block diagram of an electronic device according to an embodiment of the present application.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure.
In one example, a user needs to obtain operational data of a meter device when the meter device is put into use in order to be able to learn the operational condition of the meter device. In the prior art, when obtaining operation data of an instrument device, a corresponding program is generally determined and developed according to the operation data, and then the operation data of the instrument device is obtained according to the program. However, in the prior art, since the operation data of the instrument device is obtained according to the program, the development process of the program is complex and takes a long time, so that the operation data of the instrument device cannot be obtained in time.
The application provides a data information transmission method, device and equipment, which aim to solve the technical problems in the prior art.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flow chart of a data information transmission method provided in an embodiment of the present application, which is applied to an instrument device, as shown in fig. 1, and the method includes:
101. receiving a task to be reported sent by electronic equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to one item of label data information.
An execution body of the embodiment is an instrument device, and first, a task to be reported sent by an electronic device needs to be received. When the electronic device receives an instruction for editing the task to be reported sent by the user, the electronic device can generate the task to be reported, wherein the instruction for editing the task to be reported comprises: editing the reporting time parameter and the identification ID, then sending a task to be reported to the instrument equipment by the electronic equipment, receiving the task to be reported sent by the electronic equipment by the instrument equipment, wherein the task to be reported comprises the set reporting time parameter and the identification ID, and the task to be reported also comprises the task ID to be reported. The reporting time parameter is a time parameter for specifying that the instrument device reports data information to the electronic device, and the reporting time parameter includes: the reporting time parameter may be seconds, minutes, hours, days, months, or years, and/or the like, which is not limited thereto. The identification ID identifies unique data information, the identification ID can contain information such as identification names, units and the like, and the data information can contain various information such as data names, data value lengths, data value types and the like, so that each identification ID corresponds to one item of target data information, and each task to be reported ID represents a corresponding task to be reported.
For example, the reporting time parameter is a preset reporting time point, the reporting time parameter in the task to be reported received by the meter device includes N reporting time points, where N is a positive integer greater than or equal to 1, and the N reporting time points include 9:00 am on day 2021, 12 months 15, and 10:00 am on day 2021, 12 months 15. And/or the reporting time parameter is a reporting period in a preset time period, the reporting time parameter in the task to be reported received by the instrument equipment comprises a plurality of reporting periods in the preset time period, wherein the preset time period comprises 11:00 of 15 am of 12 months of 2021 to 13:00 of 15 pm of 12 months of 2021, and the plurality of reporting periods in the preset time period are 1 hour apart.
102. And determining target data information corresponding to the task to be reported according to the identification ID.
Illustratively, according to the corresponding relation between the pre-stored identification ID and the data information, the target data information corresponding to the identification ID can be determined. For example, the task to be reported received by the meter device includes a plurality of ID, the ID is arranged according to a preset sequence, the meter device may sequentially read each ID according to the sequence of ID, sequentially determine the target data information corresponding to each ID, then store each determined target data information into the temporary buffer according to the remote protocol format, after determining the target data information corresponding to each ID, form the target task data by using the task to be reported ID, the reporting time parameter, and the temporary buffer of the target data information corresponding to the task to be reported, and form the effective target task data according to the remote protocol format. Wherein, the remote protocol format comprises a preset TCV protocol and the like.
103. Transmitting the target data information to the electronic equipment according to the reporting time parameter; the reporting time parameter characterizes the reporting time of the target data information.
The reporting time parameter is a preset reporting time point, the meter device obtains a first current time point, then compares the first current time point with the preset time point, and when the first current time point is equal to the preset reporting time point, sends the target data information to the electronic device at the first current time point. And/or the reporting time parameter is a reporting period in a preset time period, the instrument equipment acquires a second current time point, compares the second current time point with the preset time period, judges whether the second time point meets the reporting period in the preset time period when the second current time point is in the range of the preset time period, and sends the target data information to the electronic equipment at the second current time point if the second time point meets the reporting period in the preset time period. When the electronic equipment receives the target data information, the ID and the reporting time parameter of the task to be reported can be obtained through analysis according to a remote protocol format, and then the target data information corresponding to each identification ID in the task to be reported is analyzed one by one.
For example, the reporting time parameter is a preset reporting time point, the reporting time point includes 2021, 12, 15, 9:00, and 2021, 12, 15, 10:00, the meter device obtains the first current time point 2021, 12, 15, 9:00, and then compares the first current time point 2021, 12, 15, 9:00 with the reporting time point 2021, 12, 15, 9:00, and the reporting time point 2021, 12, 15, 10:00, and when the first current time point 2021, 12, 15, 9:00 is equal to the reporting time point 2021, 12, 15, 9:00, the target data information is transmitted to the electronic device at the first current time point 2021, 12, 15, 9:00.
And/or the reporting time parameter is a reporting period within a preset time period, the reporting time parameter comprises a plurality of reporting periods within the preset time period, the preset time period comprises 11:00 of day 2021, 12:00 of day 15 of day 12, 13:00 of day 13 of day 2021, the plurality of reporting periods within the preset time period are 1 hour apart, i.e. the reporting time points of the plurality of periodic periods within the preset time period are 11:00 of day 2021, 12:00 of day 15 of day 2021, and 13:00 of day 15 of day 2021, the meter device acquires a second current time point 2021, 12:00 of day 15 of day 12, then comparing the second current time point 2021, 12, 15, 12, 00, to 2021, 12, 15, 11, 00, 2021, 15, 13, 00, pm, it can be determined that the second current time point is within a time range of 2021, 12, 15, 11, 00, 15, 13, 00, PM, then, whether the second time point accords with the reporting period in the preset time period is judged, and it can be determined that the second time point 2021, 12 months, 15 days, 12:00 am accords with the reporting period in the preset time period, so that the target data information is sent to the electronic device at the second current time point 2021, 12 months, 15 days, 12:00 am.
In the embodiment of the application, a task to be reported sent by electronic equipment is received; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to one item of label data information. And determining target data information corresponding to the task to be reported according to the identification ID. Transmitting the target data information to the electronic equipment according to the reporting time parameter; the reporting time parameter characterizes the reporting time of the target data information. In the scheme, the electronic equipment generates a task to be reported and sends the task to be reported to the instrument equipment, wherein the task to be reported comprises a reporting time parameter and an identification ID, a mapping relation exists between the identification ID and data information, after the instrument equipment receives the task to be reported, the target data information corresponding to the identification ID in the task to be reported is determined according to the mapping relation between the identification ID and the data information, and then the target data information is sent to the electronic equipment according to the reporting time parameter in the task to be reported, so that the electronic equipment can acquire the target data information.
Therefore, in order to acquire the target data information, the electronic device can flexibly configure the reporting time parameter and the identifier ID corresponding to the target data information, then the configured reporting time parameter and the identifier ID corresponding to the target data information are sent to the instrument device, the instrument device sends the determined target data information corresponding to the identifier ID to the electronic device according to the reporting time parameter, and finally the electronic device acquires the target data information, so that data interaction between the instrument device and the electronic device is realized. Therefore, according to the actual data requirement of the user, the reporting time parameter and the identification ID corresponding to the target data information are flexibly configured, and further the target data information is acquired according to the data interaction process, so that the mode of acquiring the target data information is very convenient and quick, the response speed is high, the time for acquiring the operation data of the instrument equipment is greatly shortened, and the technical problem of long operation data acquisition period of the instrument equipment is solved.
Fig. 2 is a flow chart of another data information transmission method provided in the embodiment of the present application, which is applied to an instrument device, as shown in fig. 2, and the method includes:
201. receiving a task to be reported sent by electronic equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to one item of label data information.
Illustratively, this step may refer to step 101 in fig. 1, and will not be described in detail.
202. And determining target data information corresponding to the identification ID in the task to be reported according to the mapping relation between the identification ID and the data information in the preset data dictionary.
In one example, the electronic device stores a data dictionary that includes a mapping between data information and identification IDs.
For example, the electronic device may acquire at least one identification ID and data information, then establish a mapping relationship between the data information and the identification ID, establish a data dictionary according to the mapping relationship, and synchronize the data dictionary into the meter device so that the meter device may call the data dictionary. Therefore, the meter device can compare the identification ID in the task to be reported with the identification ID in the data dictionary according to the mapping relation between the identification ID and the data information in the preset data dictionary, and if the first identification identical to the identification ID in the task to be reported is determined in the identification ID of the data dictionary, the target data information corresponding to the first identification is determined in the data dictionary according to the mapping relation between the data information and the identification ID, and further, the target data information corresponding to the first identification is determined to be the target data information corresponding to the identification ID in the task to be reported.
203. Determining a reporting type corresponding to the reporting time parameter, and sending target data information to the electronic equipment according to the reporting type; the reporting time parameter characterizes the reporting time of the target data information.
In one example, when the reporting type of the reporting time parameter is a preset time point, sending the target data information to the electronic device according to the reporting type includes: acquiring a first current time point through a timer, and comparing the first current time point with a preset time point; if the first current time point is the same as the preset time point, the target data information is sent to the electronic equipment at the first current time point.
In one example, when the reporting type of the reporting time parameter is a reporting period within a preset time period, sending the target data information to the electronic device according to the reporting type includes: acquiring a second current time point through a timer, and comparing the second current time point with a preset time period; if the second current time point is determined to be in the range of the preset time period, the target data information is sent to the electronic equipment according to the reporting period in the time period.
In one example, the electronic device includes an operation interface configured to perform configuration processing on a reporting time parameter, an order of a plurality of identification IDs, and a number of identification IDs in a task to be reported.
For example, the meter device may determine the reporting type corresponding to the reporting time parameter, and then send the target data information to the electronic device according to the reporting type. For example, when the reporting time parameter is a preset reporting time point, the meter device obtains the first current time point through the timer, then compares the first current time point with the preset time point, and when the first current time point is equal to the preset reporting time point, indicates that the first current time point is the reporting time of the target data information, so that the target data information is sent to the electronic device at the first current time point, wherein the manner of obtaining the first current time point is not limited to the manner of obtaining the first current time point through the timer, which is not limited in the application.
When the reporting time parameter is a reporting period in a preset time period, the meter device acquires a second current time point through a timer, compares the second current time point with the preset time period, judges whether the second time point meets the reporting period in the preset time period when the second current time point is in the preset time period, and sends target data information to the electronic device at the second current time point if the second time point meets the reporting period in the preset time period, wherein the mode of acquiring the second current time point is not limited to the mode of acquiring the second current time point through the timer, the application is not limited to the mode, and a remote channel between the meter device and the electronic device comprises general packet radio service (General Packet Radio Service, GPRS)/code division multiple access (Code Division Multiple Access, CDMA)/narrowband internet of things (Narrow Band Internet of Things, ioT-A)/fourth generation mobile communication technology (the 4th generation mobile communication technology,4G) and the like.
For example, the electronic device includes an operation interface, and the user may perform configuration processing on the reporting time parameter, the order of the plurality of identification IDs, and the number of identification IDs in the task to be reported. Or, the operation interface may include a plurality of buttons, for example, a configuration button, and respond to a trigger operation of the user on the configuration button to perform configuration processing on the reporting time parameter, the sequence of the plurality of identification IDs, and the number of the identification IDs in the task to be reported, where the sequence of the plurality of identification IDs is a sequence customized by the user. Therefore, when the triggering operation of the user on the operation interface is received, the reporting time parameter, the sequence of the plurality of identification IDs and the number of the identification IDs in the task to be reported can be edited, so that the edited task to be reported is obtained. The triggering operation includes operations such as clicking and double clicking, and is not limited thereto.
In the embodiment of the application, a task to be reported sent by electronic equipment is received; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to one item of label data information. And determining target data information corresponding to the identification ID in the task to be reported according to the mapping relation between the identification ID and the data information in the preset data dictionary. Determining a reporting type corresponding to the reporting time parameter, and sending target data information to the electronic equipment according to the reporting type; the reporting time parameter characterizes the reporting time of the target data information. Therefore, in order to acquire the target data information, the electronic device can flexibly configure the reporting time parameter and the identifier ID corresponding to the target data information, then the configured reporting time parameter and the identifier ID corresponding to the target data information are sent to the instrument device, the instrument device sends the determined target data information corresponding to the identifier ID to the electronic device according to the reporting time parameter, and finally the electronic device acquires the target data information, so that data interaction between the instrument device and the electronic device is realized. Therefore, according to the actual data requirement of the user, the reporting time parameter and the identification ID corresponding to the target data information are flexibly configured, and then the target data information is acquired according to the data interaction process.
Fig. 3 is a flow chart of another data information transmission method provided in an embodiment of the present application, which is applied to an electronic device, as shown in fig. 1, and the method includes:
301. determining and generating a task to be reported of the instrument equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to one item of label data information.
302. Sending a task to be reported to the instrument equipment; the identification ID in the task to be reported is used for determining target data information, and the reporting time parameter characterizes the reporting time of the target data information.
303. And receiving target data information sent by the instrument equipment according to the reporting time parameter.
For example, the method of this embodiment may refer to the technical solution in the above method, and the specific implementation process and the technical principle are the same, which are not described herein again.
Fig. 4 is a flowchart of another data information transmission method provided in the embodiment of the present application, which is applied to an electronic device, as shown in fig. 4, and the method includes:
401. the identification ID and the data information are acquired.
402. And establishing a mapping relation between the data information and the identification ID, establishing a data dictionary according to the mapping relation, and synchronizing the data dictionary to the instrument equipment.
403. Determining and generating a task to be reported of the instrument equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to one item of label data information.
404. Sending a task to be reported to the instrument equipment; the identification ID in the task to be reported is used for determining target data information, and the reporting time parameter characterizes the reporting time of the target data information.
In one example, the target data information is obtained according to the identification ID in the task to be reported based on a mapping relationship between the identification ID and the data information in a preset data dictionary.
In one example, the reporting type of the reporting time parameter includes: and (3) a preset reporting time point and/or a reporting period in a preset time period.
405. And receiving target data information sent by the instrument equipment at a preset time point, and/or receiving the target data information sent by the instrument equipment in a preset time period according to a reporting period in the time period.
406. The electronic equipment is used for displaying an operation interface; and responding to the triggering operation of the user on the operation interface, and carrying out configuration processing on the reporting time parameter, the sequence of a plurality of identification IDs and the number of the identification IDs in the task to be reported.
For example, the method of this embodiment may refer to the technical solution in the above method, and the specific implementation process and the technical principle are the same, which are not described herein again.
Fig. 5 is a schematic structural diagram of a data information transmission device provided in an embodiment of the present application, which is applied to an instrument device, as shown in fig. 5, and the device includes:
a receiving unit 51, configured to receive a task to be reported sent by an electronic device; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to one item of label data information.
The determining unit 52 is configured to determine, according to the identifier ID, target data information corresponding to the task to be reported.
A transmitting unit 53, configured to transmit the target data information to the electronic device according to the reporting time parameter; the reporting time parameter characterizes the reporting time of the target data information.
The device of the embodiment may execute the technical scheme in the above method, and the specific implementation process and the technical principle are the same and are not described herein again.
Fig. 6 is a schematic structural diagram of another data information transmission device according to an embodiment of the present application, and, based on the embodiment shown in fig. 5, as shown in fig. 6, the determining unit 52 is specifically configured to:
And determining target data information corresponding to the identification ID in the task to be reported according to the mapping relation between the identification ID and the data information in the preset data dictionary.
In one example, the transmitting unit 53 includes:
the determining module 531 is configured to determine a reporting type corresponding to the reporting time parameter.
And the sending module 532 is configured to send the target data information to the electronic device according to the reporting type.
In one example, when the reporting type of the reporting time parameter is a preset time point, the sending module 532 includes:
the first comparing sub-module 5321 is configured to obtain a first current time point through a timer, and compare the first current time point with a preset time point.
The first sending sub-module 5322 is configured to send the target data information to the electronic device at the first current time point if it is determined that the first current time point is the same as the preset time point.
In one example, when the reporting type of the reporting time parameter is a reporting period within a preset period of time, the sending module 532 includes:
the second comparing submodule 5323 is configured to obtain a second current time point through a timer, and compare the second current time point with a preset time period.
And the second sending sub-module 5324 is configured to send the target data information to the electronic device according to the reporting period in the time period if it is determined that the second current time point is within the preset time period.
In one example, the electronic device stores a data dictionary that includes a mapping between data information and identification IDs.
In one example, the electronic device includes an operation interface configured to perform configuration processing on a reporting time parameter, an order of a plurality of identification IDs, and a number of identification IDs in a task to be reported.
The device of the embodiment may execute the technical scheme in the above method, and the specific implementation process and the technical principle are the same and are not described herein again.
Fig. 7 is a schematic structural diagram of another data information transmission device according to an embodiment of the present application, which is applied to an electronic device, as shown in fig. 7, and the device includes:
a generating unit 71, configured to determine and generate a task to be reported of the meter device; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to one item of label data information.
A sending unit 72, configured to send a task to be reported to the meter device; the identification ID in the task to be reported is used for determining target data information, and the reporting time parameter characterizes the reporting time of the target data information.
And a receiving unit 73, configured to receive the target data information sent by the meter device according to the reporting time parameter.
The device of the embodiment may execute the technical scheme in the above method, and the specific implementation process and the technical principle are the same and are not described herein again.
Fig. 8 is a schematic structural diagram of another data information transmission device according to an embodiment of the present application, and on the basis of the embodiment shown in fig. 7, as shown in fig. 8, target data information is obtained according to a preset mapping relationship between an ID in a data dictionary and data information, and the ID is obtained according to the ID in a task to be reported.
In one example, the reporting type of the reporting time parameter includes: and (3) a preset reporting time point and/or a reporting period in a preset time period.
The receiving unit 73 is specifically configured to:
and receiving target data information sent by the instrument equipment at a preset time point, and/or receiving the target data information sent by the instrument equipment in a preset time period according to a reporting period in the time period.
In one example, the apparatus further comprises:
an acquisition unit 81 for acquiring the identification ID and the data information.
The establishing unit 82 is configured to establish a mapping relationship between the data information and the identification ID, establish a data dictionary according to the mapping relationship, and synchronize the data dictionary to the meter device.
In one example, an electronic device is used to display an operator interface; the apparatus further comprises:
and the configuration unit 83 is configured to perform configuration processing on the reporting time parameter, the sequence of the plurality of identification IDs, and the number of the identification IDs in the task to be reported in response to a triggering operation of the user on the operation interface.
The device of the embodiment may execute the technical scheme in the above method, and the specific implementation process and the technical principle are the same and are not described herein again.
Fig. 9 is a schematic structural diagram of an instrument device according to an embodiment of the present application, where, as shown in fig. 9, the instrument device includes: a memory 91, and a processor 92.
The memory 91 stores a computer program executable on the processor 92.
The processor 92 is configured to perform the method as provided by the above embodiments.
The meter device further comprises a receiver 93 and a transmitter 94. The receiver 93 is for receiving instructions and data transmitted from an external device, and the transmitter 94 is for transmitting instructions and data to an external device.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 9, where the electronic device includes: memory 1001, processor 1002.
The memory 1001 stores therein a computer program executable on the processor 1002.
The processor 1002 is configured to perform the methods as provided by the embodiments described above.
The electronic device further comprises a receiver 1003 and a transmitter 1004. The receiver 1003 is configured to receive instructions and data transmitted from an external device, and the transmitter 1004 is configured to transmit instructions and data to the external device.
Fig. 11 is a block diagram of an electronic device, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, etc., provided in an embodiment of the present application.
The apparatus 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input/output (I/O) interface 1112, a sensor component 1114, and a communication component 1116.
The processing component 1102 generally controls overall operation of the apparatus 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1102 can include one or more modules that facilitate interactions between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
Memory 1104 is configured to store various types of data to support operations at apparatus 1100. Examples of such data include instructions for any application or method operating on the device 1100, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1104 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 1106 provides power to the various components of the device 1100. The power supply component 1106 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1100.
Multimedia component 1108 includes a screen between device 1100 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, multimedia component 1108 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 1100 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 1110 is configured to output and/or input an audio signal. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the device 1100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio component 1110 further comprises a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 1114 includes one or more sensors for providing status assessment of various aspects of the apparatus 1100. For example, the sensor assembly 1114 may detect the on/off state of the device 1100, the relative positioning of the components, such as the display and keypad of the device 1100, the sensor assembly 1114 may also detect a change in position of the device 1100 or a component of the device 1100, the presence or absence of user contact with the device 1100, the orientation or acceleration/deceleration of the device 1100, and a change in temperature of the device 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate communication between the apparatus 1100 and other devices in a wired or wireless manner. The device 1100 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 1116 further includes a Near Field Communication (NFC) module to facilitate short range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as a memory 1104 including instructions executable by the processor 1120 of the apparatus 1100 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Embodiments of the present application also provide a non-transitory computer-readable storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the method provided by the above embodiments.
The embodiment of the application also provides a computer program product, which comprises: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can read, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any one of the embodiments described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (17)

1. A data information transmission method, characterized by being applied to a meter device, comprising:
receiving a task to be reported sent by electronic equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to project label data information;
determining target data information corresponding to the task to be reported according to the identification ID;
according to the reporting time parameter, the target data information is sent to the electronic equipment; wherein the reporting time parameter characterizes the reporting time of the target data information.
2. The method of claim 1, wherein determining, according to the identification ID, target data information corresponding to the task to be reported, includes:
and determining target data information corresponding to the identification ID in the task to be reported according to the mapping relation between the identification ID and the data information in the preset data dictionary.
3. The method of claim 1, wherein transmitting the target data information to an electronic device according to the reporting time parameter comprises:
And determining a reporting type corresponding to the reporting time parameter, and sending the target data information to the electronic equipment according to the reporting type.
4. The method of claim 3, wherein when the reporting type of the reporting time parameter is a preset time point, sending the target data information to the electronic device according to the reporting type includes:
acquiring a first current time point through a timer, and comparing the first current time point with a preset time point;
if the first current time point is the same as the preset time point, the target data information is sent to the electronic equipment at the first current time point;
and/or when the reporting type of the reporting time parameter is a reporting period within a preset time period, sending the target data information to the electronic device according to the reporting type, including:
acquiring a second current time point through a timer, and comparing the second current time point with a preset time period;
and if the second current time point is determined to be in the range of the preset time period, the target data information is sent to the electronic equipment according to the reporting period in the time period.
5. The method of claim 1, wherein the electronic device stores a data dictionary including a mapping between data information and identification IDs.
6. The method of claim 1, wherein the electronic device includes an operation interface, and the operation interface is configured to process a reporting time parameter, an order of a plurality of identification IDs, and a number of identification IDs in the task to be reported.
7. A data information transmission method, applied to an electronic device, comprising:
determining and generating a task to be reported of the instrument equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to project label data information;
sending the task to be reported to the instrument equipment; the identification ID in the task to be reported is used for determining target data information, and the reporting time parameter characterizes the reporting time of the target data information;
and receiving target data information sent by the instrument equipment according to the reporting time parameter.
8. The method of claim 7, wherein the target data information is obtained according to the identification ID in the task to be reported based on a mapping relationship between the identification ID and the data information in a preset data dictionary.
9. The method of claim 7, wherein the reporting type of the reporting time parameter comprises: a preset reporting time point and/or a reporting period in a preset time period;
receiving target data information sent by the instrument equipment according to the reporting time parameter, wherein the target data information comprises the following steps:
and receiving target data information sent by the instrument equipment at a preset time point, and/or receiving target data information sent by the instrument equipment in a preset time period according to a reporting period in the time period.
10. The method of claim 7, wherein the method further comprises:
acquiring an identification ID and data information;
and establishing a mapping relation between the data information and the identification ID, establishing a data dictionary according to the mapping relation, and synchronizing the data dictionary to the instrument equipment.
11. The method of claim 7, wherein the electronic device is configured to display an operator interface; the method further comprises the steps of:
and responding to the triggering operation of the user on the operation interface, and carrying out configuration processing on the reporting time parameter, the sequence of a plurality of identification IDs and the number of the identification IDs in the task to be reported.
12. A data information transmission apparatus, characterized by being applied to a meter device, comprising:
the receiving unit is used for receiving a task to be reported sent by the electronic equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to project label data information;
the determining unit is used for determining target data information corresponding to the task to be reported according to the identification ID;
the sending unit is used for sending the target data information to the electronic equipment according to the reporting time parameter; wherein the reporting time parameter characterizes the reporting time of the target data information.
13. A data information transmission apparatus, characterized by being applied to an electronic device, comprising:
the generating unit is used for determining and generating a task to be reported of the instrument equipment; the task to be reported comprises reporting time parameters and identification IDs, and each identification ID corresponds to project label data information;
the sending unit is used for sending the task to be reported to the instrument equipment; the identification ID in the task to be reported is used for determining target data information, and the reporting time parameter characterizes the reporting time of the target data information;
And the receiving unit is used for receiving the target data information sent by the instrument equipment according to the reporting time parameter.
14. A meter device comprising a memory, a processor, the memory having stored therein a computer program executable on the processor, the processor implementing the method of any of the preceding claims 1-6 when the computer program is executed.
15. An electronic device comprising a memory, a processor, the memory having stored therein a computer program executable on the processor, the processor implementing the method of any of the preceding claims 7-11 when the computer program is executed.
16. A computer readable storage medium having stored therein computer executable instructions for implementing the method of any of claims 1-6 or for implementing the method of any of claims 7-11 when executed by a processor.
17. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-6 or implements the method of any of claims 7-11.
CN202210003171.4A 2022-01-04 2022-01-04 Data information transmission method, device and equipment Pending CN116437240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210003171.4A CN116437240A (en) 2022-01-04 2022-01-04 Data information transmission method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210003171.4A CN116437240A (en) 2022-01-04 2022-01-04 Data information transmission method, device and equipment

Publications (1)

Publication Number Publication Date
CN116437240A true CN116437240A (en) 2023-07-14

Family

ID=87084214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210003171.4A Pending CN116437240A (en) 2022-01-04 2022-01-04 Data information transmission method, device and equipment

Country Status (1)

Country Link
CN (1) CN116437240A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117641595A (en) * 2024-01-11 2024-03-01 东莞市满佳电子科技有限公司 Charging control method based on Internet of things

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117641595A (en) * 2024-01-11 2024-03-01 东莞市满佳电子科技有限公司 Charging control method based on Internet of things

Similar Documents

Publication Publication Date Title
CN108156026B (en) Interphone configuration method and device
CN109451866B (en) Information configuration method and device, base station and user equipment
CN110502444B (en) Testing method and testing device for image processing algorithm
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN111343481B (en) Data sharing method and device, electronic equipment and storage medium
CN115185717A (en) Interface calling method and device, electronic equipment and storage medium
CN109684112B (en) Program file operation method, device, terminal and storage medium
CN109565650B (en) Method and device for broadcasting and receiving configuration information of synchronous signal block
CN109034747B (en) Task reminding method and device
CN109451799B (en) Time domain information indication method of public control resource set of residual key system information
CN116437240A (en) Data information transmission method, device and equipment
CN105786561B (en) Method and device for calling process
CN110221813B (en) Application data connection establishment method and device, storage medium and electronic equipment
CN109451839B (en) Information indication method and device, base station and user equipment
CN108012258B (en) Data traffic management method and device for virtual SIM card, terminal and server
CN112769677B (en) Data synchronization method, apparatus, electronic device, storage medium, and program product
CN114430370B (en) Method, device, equipment and storage medium for determining network slice
CN110263211B (en) Resource synchronization method and device
US11317394B2 (en) Correspondence indicating and determining method and apparatus, base station, and user equipment
CN113191792B (en) Task processing method, device, electronic equipment, storage medium and program product
CN111104297B (en) Multi-process data dotting method and device, electronic equipment and storage medium
CN112201236B (en) Terminal awakening method and device and computer readable storage medium
CN111601301B (en) Network type display method, storage method, device and storage medium
CN111143184B (en) Data processing method, device and system
CN108733430B (en) Application program management method and device and storage medium

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