Data acquisition method, system and equipment and storage medium
By establishing an encrypted communication connection between the monitoring device and the server and using different communication channels for data transmission, the problems of high network speed requirements and packet loss when collecting internal audio and video data of vehicles in the prior art are solved, and a higher data acquisition success rate and communication security are achieved.
Patent Information
- Application Number
- CN202510235178.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-27
- Publication Date
- 2025-05-13
AI Technical Summary
When collecting audio and video data inside a vehicle, the prior art requires high network speed and is prone to packet loss, resulting in data collection failure.
By establishing an encrypted communication connection between the monitoring device and the server, data transmission is carried out using different communication channels, and distributed storage is performed according to the data category, the requirements for network speed are reduced and packet loss is reduced.
It improves the success rate of data acquisition, reduces the requirements for network speed, and enhances communication security.
Smart Images

Figure CN119996485A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data acquisition method, system, device and storage medium. Background Art
[0002] In order to improve the safety of online car-hailing services and freight services, it is necessary to monitor online car-hailing drivers and freight drivers in real time. Currently, on-board monitoring is usually set up inside the vehicle to collect audio and video data inside the vehicle in real time through the on-board monitoring.
[0003] However, the above-mentioned method of collecting audio and video data inside the vehicle in real time has high requirements on network speed and is prone to packet loss, which in turn leads to data collection failure. Summary of the invention
[0004] The main purpose of this application is to provide a data acquisition method, system, computer equipment and storage medium, aiming to solve the technical problem that the method of collecting audio and video data inside the vehicle has high requirements on network speed and is prone to packet loss, which leads to data acquisition failure.
[0005] To achieve the above object, the present application provides a data acquisition method, which is applied to a data acquisition system, wherein the data acquisition system includes a monitoring device and a server, and the method includes:
[0006] The monitoring device sends a communication request to the server; the communication request carries a first key corresponding to the monitoring device;
[0007] The server establishes a communication connection with the monitoring device when the first key matches a second key corresponding to the server;
[0008] The monitoring device classifies the collected monitoring data and sends the classified monitoring data to the server through different communication channels; the different communication channels correspond to different network transmission speeds;
[0009] The server receives the classified monitoring data and distributes and stores the monitoring data according to data categories.
[0010] Optionally, the monitoring device sends a communication request to the server, including:
[0011] The monitoring device generates a first key name according to a device type mark and a device unique mark of the monitoring device;
[0012] The monitoring device generates a first key password according to a device type mark, a device unique mark, a device unique password, a device serial number, and a random value of the monitoring device;
[0013] The monitoring device generates a first key based on the first key name and the first key password;
[0014] The monitoring device sends a communication request carrying the first key to the server.
[0015] Optionally, before the server establishes a communication connection with the monitoring device when the first key matches a second key corresponding to the server, the method further includes:
[0016] The server parses the first key to obtain a first key name; the first key name includes a device type mark and a device unique mark of the monitoring device;
[0017] The server queries the unique device identifier of the monitoring device in a preset mapping table to obtain the unique device password, device serial number, and random value of the monitoring device; the mapping table stores the mapping relationship between the unique identifier and the unique password, serial number, and random value;
[0018] The server generates a second key name according to the device type mark and the device unique mark of the monitoring device, and generates a second key password according to the device type mark, the device unique mark, the device unique password, the device serial number, and the random value of the monitoring device;
[0019] The server generates a second key based on the second key name and the second key password.
[0020] Optionally, after the server establishes a communication connection with the monitoring device when the first key matches a second key corresponding to the server, the method further includes:
[0021] The monitoring device sends a discovery message to the server at intervals of a first preset time length;
[0022] The server, upon receiving the exploration message sent by the monitoring device, sends feedback information generated based on the exploration message to the monitoring device;
[0023] The server re-establishes the communication connection with the monitoring device after a second preset time interval when the server does not receive the exploration message sent by the monitoring device;
[0024] The second preset duration is shorter than the first preset duration.
[0025] Optionally, after the server establishes a communication connection with the monitoring device when the first key matches a second key corresponding to the server, the method further includes:
[0026] The server sends a control instruction to the monitoring device;
[0027] The monitoring device performs a target operation in response to the manipulation instruction;
[0028] The target operation includes any of the following:
[0029] Start recording surveillance audio;
[0030] Turn off recording surveillance audio;
[0031] Start recording surveillance video;
[0032] Turn off recording surveillance video;
[0033] Turn on photo taking;
[0034] Turn off photo taking.
[0035] Optionally, the monitoring device classifies the collected monitoring data and sends the classified monitoring data to the server through different communication channels, including:
[0036] The monitoring device modifies the prefix field of the monitoring data according to the data type of the collected monitoring data;
[0037] The monitoring device sends the monitoring data of the audio and video data represented by the prefix field to the server through the first channel;
[0038] The monitoring device sends the monitoring data of the text data represented by the prefix field to the server through the second channel;
[0039] The transmission speed of the first channel is higher than the transmission speed of the second channel.
[0040] Optionally, the distributing and storing the monitoring data according to data categories includes:
[0041] The server parses the prefix field of the monitoring data;
[0042] The server stores the monitoring data of the audio and video data represented by the prefix field into a first database;
[0043] The server stores the monitoring data of the text data represented by the prefix field into a second database;
[0044] The first database is an audio and video database, and the second database is a text database.
[0045] In addition, to achieve the above-mentioned purpose, the present application also provides a data acquisition system, including a monitoring device and a server;
[0046] The monitoring device is used to send a communication request to the server; the communication request carries a first key corresponding to the monitoring device;
[0047] The server is used to establish a communication connection with the monitoring device when the first key matches the second key corresponding to the server; the different communication channels correspond to different network transmission speeds;
[0048] The monitoring device is further used to classify the collected monitoring data and send the classified monitoring data to the server through different communication channels;
[0049] The server is also used to receive the classified monitoring data and distribute and store the monitoring data according to data categories.
[0050] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0051] The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the data acquisition methods proposed in the embodiments of the present application are implemented.
[0052] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0053] The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of any one of the data acquisition methods proposed in the embodiments of the present application are implemented.
[0054] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0055] The present application provides a data acquisition method, system, device and storage medium, the method is applied to a data acquisition system, the data acquisition system includes a monitoring device and a server, the method includes: the monitoring device sends a communication request to the server; the communication request carries a first key corresponding to the monitoring device; the server establishes a communication connection with the monitoring device when the first key matches the second key corresponding to the server; different communication channels correspond to different network transmission speeds; the monitoring device classifies the collected monitoring data and sends the classified monitoring data to the server through different communication channels; the server receives the classified monitoring data and distributes and stores the monitoring data according to the data category. In an embodiment of the present application, the monitoring data is classified and sent to the server through different communication channels. The network speeds required for the above different communication channels are different, thereby reducing the requirements for network speed during the transmission of monitoring data, reducing packet loss, and thereby improving the success rate of data acquisition.
[0056] In addition, during the data collection process, the first key sent by the monitoring device and the second key corresponding to the server are compared. Only when the first key matches the second key, a communication connection between the monitoring device and the server is established to ensure communication security. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0058] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0059] Figure 2 is a flow chart of a data collection method provided in an embodiment of the present application;
[0060] Figure 3 It is a structural diagram of an embodiment of a data acquisition system provided in an embodiment of the present application;
[0061] Figure 4 It is a basic structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] The data acquisition method provided in the embodiment of the present application is applied to the data acquisition system. Unless otherwise defined, all technical and scientific terms used in this article have the same meaning as those commonly understood by technicians in the technical field of this application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned drawings and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0063] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0064] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0065] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0066] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social online platform software, etc.
[0067] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0068] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0069] It should be noted that the data collection method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the data collection system is generally set in the server / terminal device.
[0070] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0071] Please refer to Figure 2 , shows a flow chart of an embodiment of the data collection method proposed in the present application. The embodiment of the present application can acquire and process relevant data based on artificial intelligence technology.
[0072] The data acquisition method provided in the embodiment of the present application is used in a data acquisition system, wherein the data acquisition system includes a monitoring device and a server. The data acquisition method provided in the embodiment of the present application includes the following steps:
[0073] S210, the monitoring device sends a communication request to the server.
[0074] In an optional application scenario, the monitoring device may be a vehicle-mounted device, and the vehicle-mounted device may be a vehicle-mounted camera, a vehicle-mounted video recording device, etc., which is not specifically limited here.
[0075] In this step, the monitoring device sends a communication request to the server, wherein the communication request carries a first key corresponding to the monitoring device.
[0076] S220, the server establishes a communication connection with the monitoring device when the first key matches the second key corresponding to the server. It should be noted that the server can generate the second key.
[0077] In this step, the server generates a second key based on the pre-stored information related to the monitoring device, matches the first key with the second key, and establishes a communication connection with the monitoring device when the first key matches the second key. For specific implementation methods of how to generate the second key, please refer to the subsequent embodiments.
[0078] S230, the monitoring device classifies the collected monitoring data, and sends the classified monitoring data to the server through different communication channels.
[0079] In an optional application scenario, the monitoring device is a vehicle-mounted monitoring device, which collects audio and video data in the vehicle and coordinate data of the vehicle in real time to form monitoring data.
[0080] In this step, the monitoring device collects monitoring data in real time, classifies the collected monitoring data, and sends the classified monitoring data to the server through different communication channels. Different communication channels correspond to different network transmission speeds.
[0081] Generally speaking, the network transmission speed supported by the channel for transmitting audio and video data is higher than the network transmission speed supported by the channel for transmitting text data.
[0082] S240, the server receives the classified monitoring data, and distributes and stores the monitoring data according to data categories.
[0083] In this step, after receiving the classified monitoring data, the server distributes and stores the monitoring data according to the data categories of each monitoring data, that is, the monitoring data of different data categories are stored in different databases. For specific implementation methods, please refer to the subsequent embodiments.
[0084] In the embodiment of the present application, the monitoring data is classified and sent to the server through different communication channels. The network speeds required for the above different communication channels are different, thereby reducing the requirements for network speed during the transmission of monitoring data, reducing packet loss, and thus improving the success rate of data collection. In addition, during the data collection process, the first key sent by the monitoring device and the second key corresponding to the server are compared. Only when the first key matches the second key, a communication connection between the monitoring device and the server is established, thereby ensuring communication security.
[0085] Optionally, the monitoring device sends a communication request to the server, including:
[0086] The monitoring device generates a first key name according to a device type mark and a device unique mark of the monitoring device;
[0087] The monitoring device generates a first key password according to a device type mark, a device unique mark, a device unique password, a device serial number, and a random value of the monitoring device;
[0088] The monitoring device generates a first key based on the first key name and the first key password;
[0089] The monitoring device sends a communication request carrying the first key to the server.
[0090] It should be understood that the parameters of the monitoring device include the device type mark (productKey), the device unique mark (deviceName), the device unique password (deviceSecret), the device serial number (clientID) and the random value (timestamp) and the encryption algorithm (hmacsha1).
[0091] Optionally, the device type flag can be represented by the field pK, the device unique flag can be represented by the field device, the device unique password can be represented by the field secret, the device serial number is the device SN number, and the random value is usually the time when the monitoring device requests communication.
[0092] In this embodiment, the monitoring device generates a first key name according to the device type flag and the device unique flag. Optionally, the field representing the device type flag is combined with the field representing the device unique flag to generate the first key name; for example, the generated first key name is: pk-device.
[0093] In this embodiment, the monitoring device calculates the device type mark, the device unique mark, the device unique password, the device serial number, and the random value through an encryption algorithm to generate a first key password.
[0094] For example, the hmacsha1 algorithm is used to calculate the fields representing the device type flag, device unique flag, device unique password, device serial number, and random value. The relevant pseudo code is as follows:
[0095] hmacsha1("secret","clientId12345deviceNamedeviceproductKeypktimestamp789").toHexString()
[0096] Among them, the above timestamp789 is a field representing a random value, and the above clientId12345 is a field representing a device serial number.
[0097] After the first key password and the first key name are generated, the first key password and the first key name are aggregated to obtain the first key, and the first key is carried in the communication request sent to the server. In this embodiment, the monitoring device generates the first key according to its own relevant parameters, so that in the subsequent communication connection with the server, the identity of the monitoring device can be verified by the first key, thereby improving the network security of the communication connection.
[0098] Optionally, before the server establishes a communication connection with the monitoring device when the first key matches a second key corresponding to the server, the method further includes:
[0099] The server parses the first key to obtain a first key name; the first key name includes a device type mark and a device unique mark of the monitoring device;
[0100] The server queries the unique device identifier of the monitoring device in a preset mapping table to obtain the unique device password, device serial number, and random value of the monitoring device; the mapping table stores the mapping relationship between the unique identifier and the unique password, serial number, and random value;
[0101] The server generates a second key name according to the device type mark and the device unique mark of the monitoring device, and generates a second key password according to the device type mark, the device unique mark, the device unique password, the device serial number, and the random value of the monitoring device;
[0102] The server generates a second key based on the second key name and the second key password.
[0103] In this embodiment, after receiving the first key, the server parses the first key to obtain a first key name. As described above, the first key name is obtained by combining the device type mark and the device unique mark.
[0104] The server is pre-set with a mapping table, which stores the mapping relationship between the unique mark and the unique password, serial number, and random value. In this embodiment, the server inputs the device unique mark obtained by parsing the first key into the mapping table for query to obtain the device unique password, device serial number, and random value of the monitoring device.
[0105] Furthermore, the server generates a second key name based on the device type mark and the device unique mark, and generates a second key password based on the device type mark, device unique mark, device unique password, device serial number, and random value of the monitoring device; the specific implementation method is consistent with the way the monitoring device generates the first key name and the first key password, and will not be repeated here.
[0106] After obtaining the second key name and the second key password, the second key name and the second key password are combined to obtain the second key.
[0107] In this embodiment, the server generates a second key based on the received first key and related information stored in itself, so that in the subsequent process of communicating with the monitoring device, the identity of the monitoring device can be verified by the second key, thereby improving the network security of the communication connection.
[0108] Optionally, after the server establishes a communication connection with the monitoring device when the first key matches a second key corresponding to the server, the method further includes:
[0109] The monitoring device sends a discovery message to the server at intervals of a first preset time length;
[0110] The server, upon receiving the exploration message sent by the monitoring device, sends feedback information generated based on the exploration message to the monitoring device;
[0111] The server re-establishes the communication connection with the monitoring device after a second preset time interval when the server does not receive the exploration message sent by the monitoring device;
[0112] The second preset duration is shorter than the first preset duration.
[0113] In this embodiment, after the monitoring device establishes a communication connection with the server, the monitoring device sends a discovery message to the server at intervals of a first preset time. Optionally, the discovery message is a PING message.
[0114] If the server receives the exploration message sent by the monitoring device, it sends feedback information to the monitoring device. Optionally, the feedback information is a PONG message.
[0115] If the server does not receive the discovery message sent by the monitoring device, the server re-establishes the communication connection with the monitoring device after a second preset time interval.
[0116] The second preset time length is shorter than the first preset time length. Optionally, the first preset time length is 10 seconds and the second preset time length is 5 seconds.
[0117] In this embodiment, when the monitoring device establishes a communication connection with the server, the monitoring device is controlled to periodically send exploration messages to the server to monitor the communication status between the monitoring device and the server and ensure the communication quality between the monitoring device and the server.
[0118] Optionally, after the server establishes a communication connection with the monitoring device when the first key matches a second key corresponding to the server, the method further includes:
[0119] The server sends a control instruction to the monitoring device;
[0120] The monitoring device performs a target operation in response to the manipulation instruction;
[0121] The target operation includes any of the following:
[0122] Start recording surveillance audio;
[0123] Turn off recording surveillance audio;
[0124] Start recording surveillance video;
[0125] Turn off recording surveillance video;
[0126] Turn on photo taking;
[0127] Turn off photo taking.
[0128] After the server establishes a communication connection with the monitoring device, the server sends a manipulation instruction to the monitoring device, so that the monitoring device responds to the manipulation instruction and performs a target operation.
[0129] In an optional implementation, the control instruction is a recording instruction. In this embodiment, after receiving the recording instruction, the monitoring device starts recording monitoring audio, or stops recording monitoring audio, or starts recording monitoring video, or stops recording monitoring video based on the recording instruction.
[0130] Another optional implementation is that the control instruction is a photographing instruction. In this embodiment, after receiving the photographing instruction, the monitoring device turns on or turns off photographing based on the photographing instruction.
[0131] In this embodiment, the user can send control instructions to the monitoring device through the server, thereby controlling the monitoring device to perform the target operation, thereby realizing remote control of the monitoring device.
[0132] Optionally, the monitoring device classifies the collected monitoring data and sends the classified monitoring data to the server through different communication channels, including:
[0133] The monitoring device modifies the prefix field of the monitoring data according to the data type of the collected monitoring data;
[0134] The monitoring device sends the monitoring data of the audio and video data represented by the prefix field to the server through the first channel;
[0135] The monitoring device sends the monitoring data of the text data represented by the prefix field to the server through the second channel;
[0136] The transmission speed of the first channel is higher than the transmission speed of the second channel.
[0137] It should be noted that the data types of monitoring data include but are not limited to audio, video, pictures and coordinates.
[0138] In this embodiment, the monitoring device modifies the prefix field of the monitoring data according to the data type of the collected monitoring data.
[0139] An optional implementation is, for monitoring data whose data type is audio, adding the field audio to the topic field of the monitoring data; for monitoring data whose data type is video, adding the field video to the topic field of the monitoring data; for monitoring data whose data type is picture, adding the field pic to the topic field of the monitoring data; for monitoring data whose data type is coordinates, adding the field gps to the topic field of the monitoring data.
[0140] For monitoring data of audio and video data types, the monitoring device sends the monitoring data to the server through the first channel; for monitoring data of coordinate data types, the monitoring device sends the monitoring data to the server through the second channel; for monitoring data of picture data types, the monitoring device sends the monitoring data to the server through the first channel. The transmission speed of the first channel is higher than the transmission speed of the second channel.
[0141] In an embodiment of the present application, the monitoring device uses different communication channels to send monitoring data of different data types to the server. The network speeds required for the above-mentioned different communication channels are different, thereby reducing the requirements for network speed during the transmission of monitoring data, reducing packet loss, and thereby improving the success rate of data collection.
[0142] Optionally, the distributing and storing the monitoring data according to data categories includes:
[0143] The server parses the prefix field of the monitoring data;
[0144] The server stores the monitoring data of the audio and video data represented by the prefix field into a first database;
[0145] The server stores the monitoring data of the text data represented by the prefix field into a second database;
[0146] The first database is an audio and video database, and the second database is a text database.
[0147] It should be noted that the server is pre-configured with a first database and a second database, wherein the first database is an audio and video database, and the second database is a text database.
[0148] In this embodiment, after receiving the monitoring data, the server parses the prefix field of the monitoring data to determine the data type of the monitoring data.
[0149] The server stores the monitoring data of the prefix field representing audio and video data in the first database; the server stores the monitoring data of the prefix field representing text data in the second database. Optionally, the server stores the monitoring data of the prefix field representing image data in the first database.
[0150] In this embodiment, the server stores the monitoring data in different databases according to the data type of the monitoring data, so as to perform distributed storage of the monitoring data and facilitate subsequent calls to the monitoring data.
[0151] See also Figure 4 , an embodiment of the present application provides a data acquisition system 400, the data acquisition system 400 includes a monitoring device 410 and a server 420;
[0152] The monitoring device 410 is used to send a communication request to the server 420; the communication request carries a first key corresponding to the monitoring device 410;
[0153] The server 420 is used to establish a communication connection with the monitoring device 410 when the first key matches the second key corresponding to the server 420; the different communication channels correspond to different network transmission speeds;
[0154] The monitoring device 410 is further used to classify the collected monitoring data and send the classified monitoring data to the server 420 through different communication channels;
[0155] The server 420 is further configured to receive the classified monitoring data and distribute and store the monitoring data according to data categories.
[0156] Optionally, the monitoring device 410 is further used to generate a first key name according to a device type mark and a device unique mark of the monitoring device 410;
[0157] Generate a first key password according to the device type mark, device unique mark, device unique password, device serial number, and random value of the monitoring device 410;
[0158] Generate a first key based on the first key name and the first key password;
[0159] A communication request carrying the first key is sent to the server 420.
[0160] Optionally, the server 420 is further used to parse the first key to obtain a first key name; the first key name includes a device type mark and a device unique mark of the monitoring device 410;
[0161] The unique device identifier of the monitoring device 410 is queried in a preset mapping table to obtain the unique device password, device serial number, and random value of the monitoring device 410; the mapping table stores the mapping relationship between the unique identifier and the unique password, serial number, and random value;
[0162] Generate a second key name according to the device type mark and device unique mark of the monitoring device 410, and generate a second key password according to the device type mark, device unique mark, device unique password, device serial number, and random value of the monitoring device 410;
[0163] Based on the second key name and the second key password, a second key is generated.
[0164] Optionally, the monitoring device 410 is further configured to send a discovery message to the server 420 at intervals of a first preset time length;
[0165] The server 420 is further configured to, upon receiving the exploration message sent by the monitoring device 410, send feedback information generated based on the exploration message to the monitoring device 410;
[0166] In the case where the exploration message sent by the monitoring device 410 is not received, re-establishing the communication connection with the monitoring device 410 after a second preset time interval;
[0167] The second preset duration is shorter than the first preset duration.
[0168] Optionally, the server 420 is further configured to send a control instruction to the monitoring device 410;
[0169] The monitoring device 410 is further configured to execute a target operation in response to the control instruction;
[0170] The target operation includes any of the following:
[0171] Start recording surveillance audio;
[0172] Turn off recording surveillance audio;
[0173] Start recording surveillance video;
[0174] Turn off recording surveillance video;
[0175] Turn on photo taking;
[0176] Turn off photo taking.
[0177] Optionally, the monitoring device 410 is further configured to modify a prefix field of the monitoring data according to a data type of the collected monitoring data;
[0178] For monitoring data in which the prefix field represents audio and video data, the monitoring data is sent to the server 420 through the first channel;
[0179] For monitoring data in which the prefix field represents text data, the monitoring data is sent to the server 420 through the second channel;
[0180] The transmission speed of the first channel is higher than the transmission speed of the second channel.
[0181] Optionally, the server 420 is further configured to parse a prefix field of the monitoring data;
[0182] For monitoring data whose prefix field represents audio and video data, storing the monitoring data in a first database;
[0183] For monitoring data in which the prefix field represents text data, storing the monitoring data in a second database;
[0184] The first database is an audio and video database, and the second database is a text database.
[0185] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0186] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0187] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0188] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as the program code of the data acquisition method, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.
[0189] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the program code stored in the memory 41 or process data, such as running the program code of the data acquisition method.
[0190] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.
[0191] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores the data acquisition program, and the data acquisition program can be executed by at least one processor so that the at least one processor performs the steps of the data acquisition method as described above.
[0192] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware online platform, and of course, by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0193] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0194] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A data collection method, characterized in that: The method is applied to a data acquisition system, the data acquisition system includes a monitoring device and a server, and the method includes: The monitoring device sends a communication request to the server; the communication request carries a first key corresponding to the monitoring device; The server establishes a communication connection with the monitoring device when the first key matches a second key corresponding to the server; The monitoring device classifies the collected monitoring data and sends the classified monitoring data to the server through different communication channels; the different communication channels correspond to different network transmission speeds; The server receives the classified monitoring data and distributes and stores the monitoring data according to data categories.
2. The method according to claim 1, characterized in that The monitoring device sends a communication request to the server, including: The monitoring device generates a first key name according to a device type mark and a device unique mark of the monitoring device; The monitoring device generates a first key password according to a device type mark, a device unique mark, a device unique password, a device serial number, and a random value of the monitoring device; The monitoring device generates a first key based on the first key name and the first key password; The monitoring device sends a communication request carrying the first key to the server.
3. The method according to claim 1, characterized in that Before the server establishes a communication connection with the monitoring device when the first key matches the second key corresponding to the server, the method further includes: The server parses the first key to obtain a first key name; the first key name includes a device type mark and a device unique mark of the monitoring device; The server queries the unique device identifier of the monitoring device in a preset mapping table to obtain the unique device password, device serial number, and random value of the monitoring device; the mapping table stores the mapping relationship between the unique identifier and the unique password, serial number, and random value; The server generates a second key name according to the device type mark and the device unique mark of the monitoring device, and generates a second key password according to the device type mark, the device unique mark, the device unique password, the device serial number, and the random value of the monitoring device; The server generates a second key based on the second key name and the second key password.
4. The method according to claim 1, characterized in that: After the server establishes a communication connection with the monitoring device when the first key matches the second key corresponding to the server, the method further includes: The monitoring device sends a discovery message to the server at intervals of a first preset time length; The server, upon receiving the exploration message sent by the monitoring device, sends feedback information generated based on the exploration message to the monitoring device; The server re-establishes the communication connection with the monitoring device after a second preset time interval when the server does not receive the exploration message sent by the monitoring device; The second preset duration is shorter than the first preset duration.
5. The method according to claim 1, characterized in that After the server establishes a communication connection with the monitoring device when the first key matches the second key corresponding to the server, the method further includes: The server sends a control instruction to the monitoring device; The monitoring device performs a target operation in response to the manipulation instruction; The target operation includes any of the following: Start recording surveillance audio; Turn off recording surveillance audio; Start recording surveillance video; Turn off recording surveillance video; Turn on photo taking; Turn off photo taking.
6. The method according to claim 1, characterized in that The monitoring device classifies the collected monitoring data and sends the classified monitoring data to the server through different communication channels, including: The monitoring device modifies the prefix field of the monitoring data according to the data type of the collected monitoring data; The monitoring device sends the monitoring data of the audio and video data represented by the prefix field to the server through the first channel; The monitoring device sends the monitoring data of the text data represented by the prefix field to the server through the second channel; The transmission speed of the first channel is higher than the transmission speed of the second channel.
7. The method according to claim 1, characterized in that The distributed storage of the monitoring data according to data categories includes: The server parses the prefix field of the monitoring data; The server stores the monitoring data of the audio and video data represented by the prefix field into a first database; The server stores the monitoring data of the text data represented by the prefix field into a second database; The first database is an audio and video database, and the second database is a text database.
8. A data acquisition system, characterized in that: The system includes a monitoring device and a server; The monitoring device is used to send a communication request to the server; the communication request carries a first key corresponding to the monitoring device; The server is configured to establish a communication connection with the monitoring device when the first key matches a second key corresponding to the server; The monitoring device is further used to classify the collected monitoring data and send the classified monitoring data to the server through different communication channels; the different communication channels correspond to different network transmission speeds; The server is also used to receive the classified monitoring data and distribute and store the monitoring data according to data categories.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the data acquisition method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data acquisition method according to any one of claims 1 to 7 are implemented.