Information collection method and terminal equipment

By providing multiple interfaces in the information collection device and determining the corresponding interface and sensor connection according to the type of information uploaded by the sensor, the problem of a single form of information collection in the prior art is solved, and efficient and low-cost data is achieved Collecting lowers the threshold for use of the Internet of Things.

CN107807891BActive Publication Date: 2025-02-07HEBEI ZHUOZHI ELECTRONICS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201710923405.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2017-09-30
Publication Date
2025-02-07
Estimated Expiration
2037-09-30

AI Technical Summary

Technical Problem

The existing information collection equipment has a single form of information collection. The data obtained by the sensor needs to be converted through the conversion and transmission equipment, resulting in increased costs and increased threshold for use of the Internet of Things, which cannot meet the existing data collection needs.

Method used

Provide an information collection method and terminal device, by receiving the information upload request of the sensor, determine the target interface according to the pre-stored information type and the corresponding relationship of the interface, and connect the interface to the sensor, receive and verify the information uploaded by the sensor, and store the information Correspondence with identity identification.

Benefits of technology

It solves the problem of a single form of information collection for information collection by information collection equipment, improves data collection efficiency, saves costs, lowers the threshold for use of the Internet of Things, and meets the existing data collection needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN107807891B_ABST
    Figure CN107807891B_ABST
Patent Text Reader

Abstract

The present invention is applicable to the technical field of Internet of Things, and provides an information collection method and terminal equipment, the method comprising: receiving an information upload request, the information upload request carrying an identity mark of a target sensor and the type of information uploaded by the target sensor; determining a target interface corresponding to the type of information uploaded by the target sensor according to a pre-stored correspondence between the information type and the interface; connecting the target interface to the target sensor according to the identity mark; after completing the connection, receiving the information uploaded by the target sensor; verifying whether the information is complete; if the information is verified to be complete, storing the correspondence between the information and the identity mark, so as to solve the problem that the information collection device in the prior art collects information in a single form, and the data acquired by the sensor needs to be converted through a conversion transmission device, thereby improving data collection efficiency, saving costs, lowering the threshold for using the Internet of Things, and meeting existing data collection needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of Internet of Things, and in particular relates to an information collection method and terminal equipment. Background Art

[0002] With the rapid development of the Internet of Things, the types of data that information collection devices need to collect are increasing. Traditional information collection devices collect information in a single form. When the sensor uploads the acquired data to the information collection device, it is necessary to first convert the data through the conversion transmission device to convert the type of data acquired by the sensor into a data type that the information collection device can collect. Each additional sensor requires the addition of corresponding conversion transmission equipment, which increases costs and raises the threshold for using the Internet of Things, and cannot meet existing data collection needs. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides an information collection method and a terminal device to solve the problem in the prior art that the information collection device collects information in a single form and the data acquired by the sensor needs to be converted through a conversion transmission device.

[0004] A first aspect of an embodiment of the present invention provides an information collection method, including:

[0005] receiving an information upload request, the information upload request carrying an identity of a target sensor and a type of information uploaded by the target sensor;

[0006] Determine the target interface corresponding to the type of information uploaded by the target sensor according to the pre-stored correspondence between the information type and the interface;

[0007] connecting the target interface to the target sensor according to the identity identifier;

[0008] After the connection is completed, receiving the information uploaded by the target sensor;

[0009] Verify that the information is complete;

[0010] If the information is verified to be complete, the corresponding relationship between the information and the identity identifier is stored.

[0011] A second aspect of an embodiment of the present invention provides an information collection device, including:

[0012] An upload request receiving unit, configured to receive an information upload request, wherein the information upload request carries an identity of a target sensor and a type of information uploaded by the target sensor;

[0013] An interface determination unit, configured to determine a target interface corresponding to the type of information uploaded by the target sensor according to a pre-stored correspondence between information types and interfaces;

[0014] An interface connection unit, configured to connect the target interface to the target sensor according to the identity identifier;

[0015] An information receiving unit, used to receive information uploaded by the target sensor after the connection is completed;

[0016] A complete verification unit, used to verify whether the information is complete;

[0017] The information storage unit is used to store the corresponding relationship between the information and the identity identifier if the information is verified to be complete.

[0018] A third aspect of an embodiment of the present invention provides an information collection terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned information collection method when executing the computer program.

[0019] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned information collection method are implemented.

[0020] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: the information collection method and terminal device of the embodiments of the present invention provide multiple interfaces, different sensors correspond to different interfaces, and the corresponding interface is determined according to the type of information uploaded by the sensor. After the interface is connected to the sensor, the information uploaded by the sensor is received, which solves the problem that the information collection device in the prior art collects information in a single form and the data acquired by the sensor needs to be converted through a conversion transmission device, thereby improving data collection efficiency, saving costs, lowering the threshold for using the Internet of Things, and meeting existing data collection needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0022] Figure 1 is a flow chart of the information collection method provided by Embodiment 1 of the present invention;

[0023] Figure 2 The second embodiment of the present invention provides Figure 1 A flow chart of the information collection method in a specific example of the method shown;

[0024] Figure 3 is a schematic diagram of an information collection device provided in Embodiment 3 of the present invention;

[0025] Figure 4 It is a schematic diagram of an information collection terminal device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0026] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0027] In order to illustrate the technical solution of the present invention, a specific embodiment is provided below for illustration.

[0028] Embodiment 1

[0029] Figure 1 The implementation process of the information collection method provided in the first embodiment of the present invention is shown in FIG. 1 . In this embodiment, the processing process of the server is taken as an example for explanation.

[0030] like Figure 1 As shown, in this embodiment, the processing process of the server is described in detail as follows:

[0031] Step S101: receiving an information upload request, wherein the information upload request carries an identity of a target sensor and the type of information uploaded by the target sensor.

[0032] Here, the target sensor is any sensor. The identity of the target sensor can be a number, a name, etc. of the target sensor.

[0033] Specifically, the method of receiving the information upload request may be: receiving the information upload request in real time, or receiving the information upload request in a preset time period, where the preset time period is set according to actual needs, such as from 8 am to 5 pm in a day.

[0034] Step S102: determining a target interface corresponding to the type of information uploaded by the target sensor according to a pre-stored correspondence between information types and interfaces.

[0035] Here, the server pre-stores the correspondence between multiple information types and interfaces, including RS485 interface, RS232 interface, USB interface, I / O interface, RS422 interface, infrared interface, Bluetooth interface, WiFi interface and zigbee interface, etc. After receiving the type of information uploaded by the target sensor, the target interface corresponding to the type of information uploaded by the target sensor is found according to the above correspondence. If the target interface is not found in the pre-stored correspondence between the information type and the interface, the processing is stopped and a failure message is generated, which carries the type of information uploaded by the target sensor.

[0036] Step S103: connecting the target interface to the target sensor according to the identity identifier.

[0037] Specifically, the target interface is connected to the target sensor according to the identity identifier of the target sensor, and after the connection is completed, connection completion information is displayed.

[0038] Step S104, after the connection is completed, receiving the information uploaded by the target sensor.

[0039] Here, after the connection is completed, the information uploaded by the target sensor is received and displayed.

[0040] Step S105, verifying whether the information is complete.

[0041] Specifically, after receiving the information uploaded by the target sensor, verify whether the information is complete. If the information is verified to be complete, execute step S106. If the information is verified to be complete, stop processing, generate an information incomplete prompt, and re-execute the above step of receiving the information uploaded by the target sensor.

[0042] Step S106: If the information is verified to be complete, the corresponding relationship between the information and the identity identifier is stored.

[0043] Here, if the information is verified to be complete, the correspondence between the information and the identity identifier of the target sensor is stored to facilitate the user to view the required information later.

[0044] From the above description, it can be seen that in the information collection method of the embodiment of the present invention, different sensors correspond to different interfaces, and the corresponding interface is determined according to the type of information uploaded by the sensor. After the interface is connected to the sensor, the information uploaded by the sensor is received, which solves the problem that the information collection device in the prior art collects information in a single form and the data obtained by the sensor needs to be converted through a conversion transmission device. This improves data collection efficiency, saves costs, lowers the threshold for using the Internet of Things, and meets existing data collection needs.

[0045] In addition, in a specific example, the above information collection method further includes:

[0046] Sending the corresponding relationship to cloud storage;

[0047] Receive the storage result returned by the cloud, and determine whether the storage result is successful;

[0048] If it is determined that the storage result is successful, deleting the corresponding relationship of the record;

[0049] If it is determined that the storage result is a storage failure, the process returns to executing the sending of the corresponding relationship to the cloud storage.

[0050] Here, in order to ensure data security and avoid a sudden increase in server data, the data is uploaded to the cloud for storage. Specifically, 3G (third generation mobile communication technology), 4G (fourth generation mobile communication technology) or 5G (fifth generation mobile communication technology) can be used to send the above correspondence to the cloud storage. After the cloud storage is successful, the local storage is deleted. After the cloud storage fails, the above correspondence is sent to the cloud storage again.

[0051] In addition, in a specific example, the above information collection method further includes:

[0052] receiving a query request, wherein the query request carries a query account;

[0053] Determining whether the queried account is legitimate based on the pre-stored account;

[0054] If it is determined whether the query account is legitimate, information is queried according to the query request.

[0055] Specifically, after storing the correspondence between the information uploaded by the sensor and the sensor's identity identifier, a query request can also be received, the request carrying a query account, and the query account is searched in the pre-stored accounts. If found, the query account is determined to be legal, and information is queried according to the query request. If not found, the query account is determined to be illegal, the operation is stopped, the query request is rejected, and a query failure message is generated.

[0056] In addition, in a specific example, the above information collection method further includes:

[0057] Detecting whether the corresponding relationship is stored successfully;

[0058] If the corresponding relationship is detected and stored successfully, a storage success message is sent to the target sensor;

[0059] If the detection and storage of the corresponding relationship fails, a re-upload request is sent to the target sensor, information re-uploaded by the target sensor according to the re-upload request is received, and the verification of whether the information is complete is returned.

[0060] Here, after storing the correspondence between the information uploaded by the target sensor and the identity identifier of the target sensor, it is detected whether the above correspondence is successfully stored. If so, the storage success information is sent to the target sensor, otherwise, a re-upload request is sent to the target sensor, requiring the target sensor to re-upload the information, and the information re-uploaded by the target sensor is used as new information, and the above-mentioned step of verifying whether the information is complete is re-executed to avoid unsuccessful information storage and subsequent information query failure, which is suitable for application.

[0061] In addition, in a specific example, the verifying whether the information is complete includes:

[0062] Verify whether the information contains a preset key field, and verify whether the format of each field in the information meets the preset format requirements.

[0063] Specifically, if it is verified that the information carries preset key fields, and it is verified that the formats of each field in the information meet the preset format requirements, the information is determined to be complete, and the correspondence between the information and the identity identifier is stored; otherwise, the information is determined to be incomplete, a request to re-upload the information is sent to the target sensor, the information re-uploaded by the target sensor is received, and the step of verifying whether the information is complete is returned.

[0064] Here, the key field can be preset according to actual needs to verify whether the information uploaded by the target sensor carries the key field. For example, the key field can be set to include: identity identification, data name, etc. Different types of fields have different preset formats. For example, the name field can be set to a combination of letters and numbers, and the identification field can be set to a combination of letters, numbers and special characters.

[0065] Embodiment 2

[0066] In order to better understand the above method, an application example of the information collection method of the present invention is described in detail below.

[0067] Combined with the above Figure 1 In the scheme in this embodiment, the interaction process between the server, the target sensor and the cloud is taken as an example for explanation, and this explanation is not intended to limit the scheme of the present invention.

[0068] like Figure 2 As shown, this application example may include:

[0069] Step S201: The server receives an information upload request, which carries the identity of the target sensor and the type of information uploaded by the target sensor.

[0070] Step S202: The server determines the target interface corresponding to the type of information uploaded by the target sensor according to the pre-stored correspondence between the information type and the interface.

[0071] Step S203: the server connects the target interface to the target sensor according to the above-mentioned identity identifier.

[0072] Step S204: After the connection is completed, the target sensor uploads information to the server.

[0073] Step S205: The server verifies whether the above information carries a preset key field, and verifies whether the format of each field in the above information meets the preset format requirement.

[0074] Step S206: If the information is verified to carry preset key fields, and the formats of the fields in the information meet the preset format requirements, the server determines that the information is complete and stores the corresponding relationship between the information and the identity identifier.

[0075] Step S207: After the storage is completed, the server detects whether the storage of the above corresponding relationship is successful.

[0076] Step S208: If the detection and storage of the above correspondence relationship is successful, the server sends a storage success message to the target sensor.

[0077] Step S209: The server sends the above correspondence to cloud storage.

[0078] Step S210: The cloud returns the storage result to the server, and the server determines whether the storage result is successful.

[0079] Step S211: If it is determined that the storage result is successful, the server deletes the corresponding relationship recorded.

[0080] Step S212: The server receives a query request, which carries a query account.

[0081] Step S213: The server determines whether the queried account is legitimate based on the pre-stored accounts.

[0082] Step S214: If it is determined that the query account is legitimate, the server queries information according to the query request.

[0083] From the above description, it can be seen that this embodiment provides multiple interfaces, different sensors correspond to different interfaces, and the corresponding interface is determined according to the type of information uploaded by the sensor. After the interface is connected to the sensor, the information uploaded by the sensor is received, which solves the problem that the information collection device in the prior art collects information in a single form and the data obtained by the sensor needs to be converted through the conversion transmission device. This improves data collection efficiency, saves costs, lowers the threshold for using the Internet of Things, and meets existing data collection needs.

[0084] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0085] Embodiment 3

[0086] Corresponding to the information collection method described in the above embodiment, Figure 3 The structural block diagram of the information collection device provided by the embodiment of the present invention is shown. For the convenience of description, only the parts related to the present embodiment are shown. In this embodiment, the server end is taken as an example for description.

[0087] Reference Figure 3 The device includes an upload request receiving unit 301, an interface determining unit 302, an interface connecting unit 303, an information receiving unit 304, a complete verification unit 305 and an information storage unit 306.

[0088] Among them, the upload request receiving unit 301 is used to receive an information upload request, and the information upload request carries the identity of the target sensor and the type of information uploaded by the target sensor. The interface determination unit 302 is used to determine the target interface corresponding to the type of information uploaded by the target sensor according to the pre-stored correspondence between the information type and the interface. The interface connection unit 303 is used to connect the target interface to the target sensor according to the identity. The information receiving unit 304 is used to receive the information uploaded by the target sensor after the connection is completed. The integrity verification unit 305 is used to verify whether the information is complete. The information storage unit 306 is used to store the correspondence between the information and the identity if the information is verified to be complete.

[0089] like Figure 3 As shown, in a specific example, the above-mentioned information collection device also includes an information sending unit 307, a storage result processing unit 308 and an information deleting unit 309.

[0090] The information sending unit 307 is used to send the corresponding relationship to the cloud storage. The storage result processing unit 308 is used to receive the storage result returned by the cloud and determine whether the storage result is successfully stored. The information deleting unit 309 is used to delete the recorded corresponding relationship if the storage result is determined to be successfully stored. The information sending unit 307 is also used to execute the sending of the corresponding relationship to the cloud storage if the storage result is determined to be a storage failure.

[0091] like Figure 3 As shown, in a specific example, the above-mentioned information collection device also includes a query request receiving unit 310, an account determination unit 311 and an information query unit 312.

[0092] The query request receiving unit 310 is used to receive a query request, wherein the query request carries a query account. The account determination unit 311 is used to determine whether the query account is legal based on a pre-stored account. The information query unit 312 is used to query information based on the query request if it is determined whether the query account is legal.

[0093] like Figure 3 As shown, in a specific example, the above-mentioned information collection device also includes an information detection unit 313, a success information sending unit 314 and a re-upload request sending unit 315.

[0094] The information detection unit 313 is used to detect whether the corresponding relationship is successfully stored. The success information sending unit 314 is used to send the storage success information to the target sensor if the corresponding relationship is successfully stored. The re-upload request sending unit 315 is used to send the re-upload request to the target sensor if the corresponding relationship is failed to be stored, receive the information re-uploaded by the target sensor according to the re-upload request, and return to the integrity verification unit 305 to execute the verification of whether the information is complete.

[0095] In addition, in a specific example, the complete verification unit 305 is also used to verify whether the information carries a preset key field, and to verify whether the format of each field in the information meets the preset format requirement.

[0096] From the above description, it can be seen that the information collection device of the embodiment of the present invention provides multiple interfaces. Different sensors correspond to different interfaces. The corresponding interface is determined according to the type of information uploaded by the sensor. After the interface is connected to the sensor, the information uploaded by the sensor is received, which solves the problem that the information collection device in the prior art collects information in a single form and the data obtained by the sensor needs to be converted through a conversion transmission device. This improves data collection efficiency, saves costs, lowers the threshold for using the Internet of Things, and meets existing data collection needs.

[0097] Figure 4 Schematic diagram of the information collection terminal device provided by the fourth embodiment of the present invention. Figure 4 As shown, the information collection terminal device 4 of this embodiment includes: a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, the steps in the above-mentioned various information collection method embodiments are implemented, for example Figure 1 Alternatively, when the processor 401 executes the computer program 403, the functions of each module in the above-mentioned device embodiments are realized, for example, Figure 3 Functions of modules 301 to 315 are shown.

[0098] Exemplarily, the computer program 403 may be divided into one or more modules / units, which are stored in the memory 402 and executed by the processor 401 to complete the present invention. The one or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 403 in the information collection terminal device 4. For example, the computer program 403 may be divided into a synchronization module, a summary module, an acquisition module, and a return module (module in a virtual device), and the specific functions of each module are as follows:

[0099] receiving an information upload request, the information upload request carrying an identity of a target sensor and a type of information uploaded by the target sensor;

[0100] Determine the target interface corresponding to the type of information uploaded by the target sensor according to the pre-stored correspondence between the information type and the interface;

[0101] connecting the target interface to the target sensor according to the identity identifier;

[0102] After the connection is completed, receiving the information uploaded by the target sensor;

[0103] Verify that the information is complete;

[0104] If the information is verified to be complete, the corresponding relationship between the information and the identity identifier is stored.

[0105] Optional, the specific functions are as follows:

[0106] Sending the corresponding relationship to cloud storage;

[0107] Receive the storage result returned by the cloud, and determine whether the storage result is successful;

[0108] If it is determined that the storage result is successful, deleting the corresponding relationship of the record;

[0109] If it is determined that the storage result is a storage failure, the process returns to executing the sending of the corresponding relationship to the cloud storage.

[0110] Optional, the specific functions are as follows:

[0111] receiving a query request, wherein the query request carries a query account;

[0112] Determining whether the queried account is legitimate based on the pre-stored account;

[0113] If it is determined whether the query account is legitimate, information is queried according to the query request.

[0114] Optional, the specific functions are as follows:

[0115] Detecting whether the corresponding relationship is stored successfully;

[0116] If the corresponding relationship is detected and stored successfully, a storage success message is sent to the target sensor;

[0117] If the detection and storage of the corresponding relationship fails, a re-upload request is sent to the target sensor, information re-uploaded by the target sensor according to the re-upload request is received, and the verification of whether the information is complete is returned.

[0118] Optionally, the verifying whether the information is complete includes:

[0119] Verify whether the information contains a preset key field, and verify whether the format of each field in the information meets the preset format requirements.

[0120] The information collection terminal device 4 can be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The information collection terminal device can include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art can understand that Figure 4 It is only an example of the information collection terminal device 4 and does not constitute a limitation on the information collection terminal device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the information collection terminal device may also include input and output devices, network access devices, buses, etc.

[0121] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0122] The memory 402 may be an internal storage unit of the information collection terminal device 4, such as a hard disk or memory of the information collection terminal device 4. The memory 402 may also be an external storage device of the information collection terminal device 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the information collection terminal device 4. Furthermore, the memory 402 may also include both an internal storage unit and an external storage device of the information collection terminal device 4. The memory 402 is used to store the computer program and other programs and data required by the information collection terminal device. The memory 402 may also be used to temporarily store data that has been output or is to be output.

[0123] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0124] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0125] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0126] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0128] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0129] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0130] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. An information collection method, characterized in that: include: receiving an information upload request, the information upload request carrying an identity of a target sensor and a type of information uploaded by the target sensor; According to the pre-stored correspondence between information type and interface, determine the target interface corresponding to the type of information uploaded by the target sensor; wherein the interface is multiple; if the target interface is not found in the pre-stored correspondence between information type and interface, stop processing and generate failure information; the failure information carries the type of information uploaded by the target sensor; connecting the target interface to the target sensor according to the identity identifier; After the connection is completed, receiving the information uploaded by the target sensor; Verify that the information is complete; If the information is verified to be complete, the corresponding relationship between the information and the identity identifier is stored.

2. The information collection method according to claim 1, characterized in that: Also includes: Sending the corresponding relationship to cloud storage; Receive the storage result returned by the cloud, and determine whether the storage result is successful; If it is determined that the storage result is successful, deleting the corresponding relationship of the record; If it is determined that the storage result is a storage failure, the process returns to executing the sending of the corresponding relationship to the cloud storage.

3. The information collection method according to claim 1, characterized in that: Also includes: receiving a query request, wherein the query request carries a query account; Determining whether the queried account is legitimate based on the pre-stored account; If it is determined whether the query account is legitimate, information is queried according to the query request.

4. The information collection method according to claim 1, characterized in that: Also includes: Detecting whether the corresponding relationship is stored successfully; If the corresponding relationship is detected and stored successfully, a storage success message is sent to the target sensor; If the detection and storage of the corresponding relationship fails, a re-upload request is sent to the target sensor, information re-uploaded by the target sensor according to the re-upload request is received, and the verification of whether the information is complete is returned.

5. The information collection method according to claim 1, characterized in that: The checking whether the information is complete includes: Verify whether the information contains a preset key field, and verify whether the format of each field in the information meets the preset format requirements.

6. An information collection device, characterized in that: include: An upload request receiving unit, configured to receive an information upload request, wherein the information upload request carries an identity of a target sensor and a type of information uploaded by the target sensor; An interface determination unit, configured to determine a target interface corresponding to the type of information uploaded by the target sensor according to a pre-stored correspondence between information types and interfaces; wherein the interfaces are multiple; if the target interface is not found in the pre-stored correspondence between information types and interfaces, the processing is stopped and a failure message is generated; the failure message carries the type of information uploaded by the target sensor; An interface connection unit, configured to connect the target interface to the target sensor according to the identity identifier; An information receiving unit, used to receive information uploaded by the target sensor after the connection is completed; A complete verification unit, used to verify whether the information is complete; The information storage unit is used to store the corresponding relationship between the information and the identity identifier if the information is verified to be complete.

7. The information collection device according to claim 6, characterized in that: Also includes: An information sending unit, used for sending the corresponding relationship to a cloud storage; A storage result processing unit, used for receiving the storage result returned by the cloud, and determining whether the storage result is successfully stored; An information deleting unit, configured to delete the corresponding relationship recorded if it is determined that the storage result is successful; The information sending unit is further configured to execute the sending of the corresponding relationship to cloud storage if it is determined that the storage result is a storage failure.

8. The information collection device according to claim 6, characterized in that: Also includes: A query request receiving unit, configured to receive a query request, wherein the query request carries a query account; An account determination unit, used to determine whether the queried account is legitimate based on pre-stored accounts; The information query unit is used to query information according to the query request if it is determined whether the query account is legal.

9. An information collection terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the information collection method according to any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the information collection method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Gateway of Internet of things and automatic adaptation method of communication protocol

    CN101984706A

  • Terminal and method adaptive to different sensors of Internet of Things

    CN115378981A

  • Take intelligent sensor device of security function

    CN205014991U