CN113553281A - Data acquisition method and device and 5G intelligent data acquisition workstation - Google Patents

Data acquisition method and device and 5G intelligent data acquisition workstation Download PDF

Info

Publication number
CN113553281A
CN113553281A CN202110838377.4A CN202110838377A CN113553281A CN 113553281 A CN113553281 A CN 113553281A CN 202110838377 A CN202110838377 A CN 202110838377A CN 113553281 A CN113553281 A CN 113553281A
Authority
CN
China
Prior art keywords
data
law enforcement
segmented
uploading
enforcement recorder
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110838377.4A
Other languages
Chinese (zh)
Inventor
郭金宇
温顺君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jingwei Police Equipment Co ltd
Original Assignee
Shenzhen Jingwei Police Equipment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jingwei Police Equipment Co ltd filed Critical Shenzhen Jingwei Police Equipment Co ltd
Priority to CN202110838377.4A priority Critical patent/CN113553281A/en
Publication of CN113553281A publication Critical patent/CN113553281A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0745Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in an input/output transactions management context
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • G06F12/0868Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • G06F12/0871Allocation or management of cache space
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/409Mechanical coupling
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/62Means for facilitating engagement or disengagement of coupling parts or for holding them in engagement
    • H01R13/639Additional means for holding or locking coupling parts together, after engagement, e.g. separate keylock, retainer strap

Abstract

The application discloses a data acquisition method, a data acquisition device and a 5G intelligent data acquisition workstation, wherein the acquisition method comprises the following steps: receiving an uploading request; controlling a locking piece to lock the law enforcement recorder; acquiring law enforcement data of a law enforcement recorder; judging whether the law enforcement data is segmented or not; if not, the law enforcement data is segmented to obtain segmented data, and the segmented data is uploaded; and if so, identifying the interruption confirmation packet, and uploading the segmented data according to the interruption confirmation packet and the preset sequence. The data transmission method and device have the effect of improving data transmission efficiency.

Description

Data acquisition method and device and 5G intelligent data acquisition workstation
Technical Field
The application relates to the field of data acquisition, in particular to a data acquisition method and device and a 5G intelligent data acquisition workstation.
Background
With the rapid development of economy and the comprehensive implementation of the construction of the Chinese law, the standard law enforcement, civilized law enforcement and official law enforcement of operating personnel become the basic requirements of the police service system.
The data acquisition workstation is used for charging and uploading data to the law enforcement recorder. When an operator inserts the law enforcement recorder into a communication interface of the workstation, the workstation can automatically detect the law enforcement recorder and check data files in the law enforcement recorder, if new files are found, the new files are automatically uploaded, the uploaded files are emptied after the uploading is completed, space is vacated for next use, and the charging and time synchronization service of the law enforcement recorder can be realized while the files are uploaded.
With respect to the related art in the above, the inventors found that: when an operator needs to pull out the law enforcement recorder again to alarm, if the law enforcement recorder is in a state of data transmission again, the data transmission is interrupted, and when the operator inserts the law enforcement recorder into a communication interface of a workstation again, the data is uploaded again, so that the data transmission efficiency is low.
Disclosure of Invention
In order to improve the data transmission efficiency, the application provides a data acquisition method and device and a 5G intelligent data acquisition workstation.
In a first aspect, the present application provides a data acquisition method, which adopts the following technical scheme:
a method of data acquisition comprising the steps of:
receiving an uploading request;
controlling a locking piece to lock the law enforcement recorder;
acquiring law enforcement data of a law enforcement recorder;
judging whether the law enforcement data is segmented or not;
if not, the law enforcement data is segmented to obtain segmented data, and the segmented data is uploaded;
and if so, identifying the interruption confirmation packet, and uploading the segmented data according to the interruption confirmation packet and the preset sequence.
Through adopting above-mentioned technical scheme, law enforcement record appearance is placed on the workstation, and the retaining member locks law enforcement record appearance, and through the data of analysis law enforcement record appearance, there is not segmentation data in the law enforcement record appearance, and when the data that represents law enforcement record appearance were new data entirely, it was new data to cut apart, obtained segmentation data and uploaded. When the segmented data exists in the law enforcement recorder, the uploaded data is identified, the interrupt confirmation packet is identified, the data is uploaded again from the interrupt position, and the data transmission efficiency can be improved without uploading all data again.
Optionally, if so, identifying the interruption acknowledgement packet, and after uploading the segment data according to the predetermined sequence according to the interruption acknowledgement packet, further including:
receiving a fetch request;
judging whether the law enforcement recorder is in a data uploading state or not;
if not, controlling the locking piece to loosen the law enforcement recorder;
if yes, returning a confirmation packet of the previous segmented data to the law enforcement recorder, wherein the confirmation packet is set as an interruption confirmation packet;
creating a second storage area on the law enforcement recorder, wherein the second storage area is used for storing the data newly included and recorded by the law enforcement recorder;
and interrupting data transmission, and controlling the locking piece to loosen the law enforcement recorder.
Through adopting above-mentioned technical scheme, the retaining member loosens the law enforcement record appearance and just can take out the law enforcement record appearance from the workstation, presses the button, and the workstation receives the request of taking out, through the state of discernment law enforcement record appearance, if the data of law enforcement record appearance have uploaded and finish, then control the retaining member and loosen the law enforcement record appearance, can take out the law enforcement record appearance. If the law enforcement recorder is in the state of uploading data, the currently uploaded segmented data is confirmed, a confirmation package corresponding to the previously uploaded segmented data is sent to the law enforcement recorder, an interrupted confirmation package is obtained, then the transmission of the data is interrupted, the locking piece loosens the law enforcement recorder, and the law enforcement recorder can be taken out. When the law enforcement recorder is again connected to the workstation, it is uploaded from the current segment data location by recognizing the interrupt acknowledgement packet.
Optionally, if not, the method includes segmenting the law enforcement data to obtain segment data, and uploading the segment data, including:
establishing a data cache region, and carrying out partition marking on the data cache region;
and uploading the segmented data, and storing the segmented data on a corresponding data cache region.
By adopting the technical scheme, different sections of data can have different data cache regions, so that the data among different law enforcement recorders cannot be confused.
Optionally, the uploading the segment data and storing the segment data in a corresponding data buffer, includes:
adding a queue number to the segmented data, and establishing association between the queue number and a data buffer area;
and generating a confirmation packet according to the queue number, and uploading the segmented data according to the sequence of the queue number.
By adopting the technical scheme, the queue number can distinguish different segmented data, so that the uploading of the segmented data is more orderly.
In a second aspect, the present application provides a data acquisition device, which adopts the following technical scheme:
a data acquisition device comprising:
a first receiving module: for receiving an upload request;
a first control module: the locking piece is used for controlling the locking piece to lock the law enforcement recorder;
a first obtaining module: the system is used for acquiring law enforcement data of a law enforcement recorder;
an identification and judgment module: used for judging whether the law enforcement data is segmented or not;
and (3) partitioning an uploading module: if not, the law enforcement data is segmented to obtain segmented data, and the segmented data is uploaded;
the identification uploading module: and if so, identifying the interruption confirmation packet, and uploading the segmented data according to the interruption confirmation packet and the preset sequence.
By adopting the technical scheme, when the law enforcement recorder does not have the segment data and the data of the law enforcement recorder is all new data, the new data is segmented to obtain the segment data and the segment data is uploaded. When the segment data exists in the law enforcement recorder, the data which is not uploaded is represented, the interruption confirmation packet is identified, the data is uploaded again from the interruption position, and the data transmission efficiency can be improved without uploading all the data again.
Optionally, the method further includes:
a second receiving module: for receiving a fetch request;
a second judging module: the system is used for judging whether the law enforcement recorder is in a data uploading state or not;
a second control module: if not, controlling the locking piece to loosen the law enforcement recorder;
a return module: if yes, returning a confirmation packet of the previous segmented data to the law enforcement recorder, wherein the confirmation packet is set as an interruption confirmation packet;
a creation module: the system is used for creating a second storage area on the law enforcement recorder, and the second storage area is used for storing the data newly included and recorded by the law enforcement recorder;
an interrupt control module: the device is used for interrupting data transmission and controlling the locking piece to loosen the law enforcement recorder.
By adopting the technical scheme, the state of the law enforcement recorder is identified, and if the data of the law enforcement recorder is uploaded, the locking piece is controlled to loosen the law enforcement recorder, so that the law enforcement recorder can be taken out. If the law enforcement recorder is in the state of uploading data, the currently uploaded segmented data is confirmed, a confirmation package corresponding to the previously uploaded segmented data is sent to the law enforcement recorder, an interrupted confirmation package is obtained, then the transmission of the data is interrupted, the locking piece loosens the law enforcement recorder, and the law enforcement recorder can be taken out. When the law enforcement recorder is again connected to the workstation, it is uploaded from the current segment data location by recognizing the interrupt acknowledgement packet.
Optionally, the identification uploading module includes:
a first establishing unit: the system comprises a data cache region, a data cache region and a data cache region, wherein the data cache region is used for establishing the data cache region and marking the data cache region in a partitioning manner;
uploading a storage unit: the data cache is used for uploading the segmented data and storing the segmented data on the corresponding data cache region.
By adopting the technical scheme, different sections of data can have different data cache regions, so that the data among different law enforcement recorders cannot be confused.
Optionally, the upload storage unit includes:
establishing an association subunit: adding a queue number to the segmented data, and establishing association between the queue number and a data buffer area;
generating an uploading subunit: and generating a confirmation packet according to the queue number, and uploading the segmented data according to the sequence of the queue number.
By adopting the technical scheme, the queue number can distinguish different segmented data, so that the uploading of the segmented data is more orderly.
In a third aspect, the present application provides a 5G intelligent data acquisition workstation, which adopts the following technical scheme:
the utility model provides a 5G intelligence data acquisition workstation, is applicable to foretell data acquisition method, includes the fuselage, be equipped with holding tank, MCU and the retaining member that is used for placing law enforcement record appearance on the fuselage, be provided with communication interface in the holding tank, communication interface and MCU electricity are connected, retaining member and MCU electricity are connected, and the retaining member is used for locking law enforcement record appearance in the holding tank.
Through adopting above-mentioned technical scheme, the record appearance of enforcing law is placed in the holding tank, and the retaining member is fixed the record appearance of enforcing law, makes the record appearance of enforcing law connect on communication interface more stably, and MCU is used for controlling the data upload of the record appearance of enforcing law.
Optionally, the locking member is a push-pull electromagnet.
By adopting the technical scheme, the push-pull electromagnet is used, the MCU convenient to control the push-pull electromagnet is simple and practical, and the cost is low.
In summary, the present application includes at least one of the following beneficial technical effects:
1. when the segmented data exists in the method recorder, the data uploaded before is shown, the interruption confirmation packet is identified, the data is uploaded again from the interruption position, and the data transmission efficiency can be improved without uploading all data again.
2. The retaining member is fixed law enforcement record appearance, makes law enforcement record appearance connect more stably on communication interface.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating a data collection method according to an embodiment of the present application;
FIG. 2 is a circuit diagram of a control circuit;
FIG. 3 is a schematic flow chart of a data acquisition method according to another embodiment of the present application;
FIG. 4 is a block diagram of a data acquisition device according to the present application;
fig. 5 is a schematic structural diagram of a 5G intelligent data acquisition workstation.
Reference numerals: 1. a body; 2. a law enforcement recorder; 3. accommodating grooves; 4. a push-pull electromagnet; 5. a communication interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to fig. 1-5 and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application discloses a data acquisition method, including the following steps:
s100: an upload request is received.
Specifically, the law enforcement recorder 2 is inserted into the communication interface 5, the law enforcement recorder 2 establishes communication with the MCU of the workstation, the MCU automatically checks data files on the law enforcement recorder 2, the data files comprise videos, photos and audios, and the data files need to be uploaded if corresponding data files are found.
S101: the locking member is controlled to lock the law enforcement recorder 2.
Specifically, communication is established to law enforcement record appearance 2 and MCU, and MCU makes the retaining member gain of electricity through control circuit, and the retaining member starts and fixes law enforcement record appearance 2 on communication interface 5, makes law enforcement record appearance 2 and communication interface 5's connection more stable.
Wherein, the retaining member adopts plug-type electro-magnet 4, refer to fig. 2, and control circuit includes resistance R and triode Q, and triode Q is the NPN triode, and resistance R's one end and power VCC connect, and resistance R's the other end and the one side of plug-type electro-magnet 4 are connected, and plug-type electro-magnet 4's opposite side and triode Q's collecting electrode are connected, and triode Q's base and MCU connect, triode Q's projecting pole ground connection. The MCU outputs a high level to the base electrode of the triode Q, the triode Q is conducted, the push-pull electromagnet 4 is electrified, the push-pull rod of the push-pull electromagnet 4 is tightly propped against the groove of the law enforcement recorder 2, and the law enforcement recorder 2 is fixed in the holding groove 3; the MCU outputs a low level to the base electrode of the triode Q, the triode Q is cut off, the push-pull electromagnet 4 is powered off, the push-pull rod is reset, and the law enforcement recorder 2 can be taken out from the containing groove 3.
S102: law enforcement data is acquired for law enforcement recorder 2.
Specifically, the law enforcement recorder 2 is plugged into the communication interface 5, the law enforcement recorder 2MCU establishes communication, and the MCU automatically checks and acquires a data file on the law enforcement recorder 2, wherein the data file is law enforcement data.
The status data packet has a plurality of bytes of valid data, wherein the first byte is fixed to 0x03, which indicates that the data packet is status information; the second byte after indicates the status of connection number 1, the third byte indicates the status of connection number 2, the fourth byte indicates the status of connection number 3, and so on.
S103: and judging whether the law enforcement data is segmented or not.
Specifically, the law enforcement data are identified one by one through the MCU.
S104: and if not, segmenting the law enforcement data to obtain segment data, and uploading the segment data.
Specifically, the law enforcement data is segmented into no more than 10 segments, and the segmented data has a plurality of bytes of valid data, where the first byte is in a predetermined form, such as 0x01, 0x02, 0x03, and the like, and indicates that the data is segmented data, the second byte is a sequence number, and the third byte and the following data are data to be uploaded. By identifying the data, law enforcement data is not segmented if the first byte is identified as not being in a predetermined form.
S105: and if so, identifying the interruption confirmation packet, and uploading the segmented data according to the interruption confirmation packet and the preset sequence.
Specifically, the data is identified, and if the first byte is identified to be in a predetermined form, the law enforcement data is segmented. For example, segmentation data a1, a2, A3, and a4 are identified, the first bytes of a1, a2, A3, and a4 are all 0x01, the second byte of a1 is 0001, the sequence number corresponding to a1 is 0001, the second byte of a2 is 0002, the sequence number corresponding to a2 is 0002, the second byte of A3 is 0003, the sequence number corresponding to A3 is 0003, the second byte of a4 is 0004, and the sequence number corresponding to a4 is 0004. Each piece of segmented data corresponds to an acknowledgement packet which is a data segment, wherein the acknowledgement packet corresponding to the A1 is 0x11 and no other data exists after 0x11, the acknowledgement packet corresponding to the A2 is 0x12, the acknowledgement packet corresponding to the A3 is 0x13, the acknowledgement packet corresponding to the A4 is 0x14, the workstation sends the acknowledgement packet to the law enforcement recorder 2, and the acknowledgement packet in the law enforcement recorder 2 is an interrupt acknowledgement packet.
The workstation detects data in the law enforcement recorder 2, identifies an interruption confirmation packet in the law enforcement recorder 2, for example, the law enforcement recorder 2 has segment data A1, A2, A3 and A4, if the interruption confirmation packet is identified to be 0x12, the interruption confirmation packet is uploaded from segment data A3, and the interruption confirmation packet is uploaded to A4 after the interruption confirmation packet is uploaded to A3; if the interrupt acknowledgement packet is identified as 0x3, then the upload is started from segment data A4.
The law enforcement recorder 2 is connected to the workstation, when only new data exist in the law enforcement recorder 2, the new data represent the newly stored data, and the workstation divides the new data into segment data and uploads the segment data without division.
When only old data exists in the law enforcement recorder 2 and the old data represents segmented data, an interruption confirmation packet in the law enforcement recorder 2 is identified, and data is uploaded according to the interruption confirmation packet.
When new data and old data exist in the law enforcement recorder 2, the workstation divides the new data, identifies an interruption confirmation packet in the law enforcement recorder 2, uploads the segmented data corresponding to the old data according to the interruption confirmation packet, and uploads the segmented data corresponding to the new data.
Referring to fig. 3, optionally, after step S105, the method further includes:
s106: a fetch request is received.
Specifically, law enforcement record appearance 2 is placed in holding tank 3, and plug-type electro-magnet 4 is fixed law enforcement record appearance 2, needs plug-type electro-magnet 4 to loosen law enforcement record appearance 2, can take out law enforcement record appearance 2. Through pressing the button in corresponding holding tank 3, the button is connected with the MCU electricity, and MCU receives and takes out the request.
S107: and judging whether the law enforcement recorder 2 is in a data uploading state or not.
Specifically, the MCU judges whether the law enforcement recorder 2 uploads data, and if the corresponding data buffer area receives data, the law enforcement recorder 2 is in a data uploading state.
S108: if not, the locking piece is controlled to loosen the law enforcement recorder 2.
Specifically, the law enforcement recorder 2 has uploaded data, new data are not received on the corresponding data cache region, at the moment, the MCU outputs a low level to the base electrode of the triode Q, the triode Q is cut off, the push-pull electromagnet 4 is powered off, the push-pull rod resets, the push-pull rod is separated from the groove of the law enforcement recorder 2, and the law enforcement recorder 2 can be taken out from the containing groove 3.
S109: if so, an acknowledgement packet of the previous segment data is returned to the law enforcement recorder 2, which is set as an interrupt acknowledgement packet.
Specifically, it is recognized that the law enforcement recorder 2 is uploading data to the data cache area, for example, there are segmented data a1, a2, A3 and a4 in the law enforcement recorder 2, where the acknowledgement packet corresponding to a1 is 0x11, the acknowledgement packet corresponding to a2 is 0x12, the acknowledgement packet corresponding to A3 is 0x13, and the acknowledgement packet corresponding to a4 is 0x 14. At this time, the segment data being uploaded is a4, and an acknowledgement packet 0x13 is transmitted back to law enforcement recorder 2, 0x13 representing an interrupt acknowledgement packet. Fragment data being uploaded is A1, then acknowledgement packet 0x10 is returned.
S110: a second storage area is created on law enforcement recorder 2 for storing data newly included by law enforcement recorder 2.
Specifically, for example, the area where the fragment data a1, a2, A3, and a4 are stored is set as the first storage area, and the interrupt acknowledgement packet is also stored in the first storage area. A second storage area is created on the law enforcement recorder 2 in which the data newly included by the law enforcement recorder 2 is stored, facilitating the separation of new data from old data. And when the data of the first storage area are completely uploaded, deleting the data of the first storage area. And after the data of the second storage area is uploaded, deleting the data of the second storage area and deleting the second storage area.
S111: the data transmission is interrupted and the locking member is controlled to release the law enforcement recorder 2.
Specifically, the data transmission of the law enforcement recorder 2 and the data cache area is interrupted, the MCU outputs a low level to the base electrode of the triode Q, the triode Q is cut off, the push-pull electromagnet 4 is powered off, the push-pull rod resets, the push-pull rod is separated from the groove of the law enforcement recorder 2, and the law enforcement recorder 2 can be taken out.
Optionally, in step S105, the following sub-steps are further included:
s1051: and establishing a data cache region, and marking the data cache region in a partition mode.
S1052: and uploading the segmented data, and storing the segmented data on a corresponding data cache region.
Specifically, data cache regions are established according to the number of the connected law enforcement recorders 2, and different data cache regions are marked, for example, the law enforcement recorder 2 No. 1 corresponds to the data cache region No. 1, and the data cache region No. 1 is marked as 0x 1; law enforcement recorder 2 # 2 corresponds to data cache # 2, which is labeled 0x 2.
The segment data of the law enforcement recorder 2 No. 1 is a1, a2, A3 and a4, the serial number corresponding to a1 is 0001, the confirmation packet corresponding to a1 is 0x11, the confirmation packet corresponding to a2 is 0x12, the confirmation packet corresponding to A3 is 0x13, and the confirmation packet corresponding to a4 is 0x 14. The segment data of law enforcement recorder 2 No. 2 is B1, B2, B3, and B4, the confirmation packet corresponding to B1 is 0x21, the confirmation packet corresponding to B2 is 0x22, the confirmation packet corresponding to B3 is 0x23, and the confirmation packet corresponding to B4 is 0x 24.
Optionally, in step S1052, the following sub-steps are further included:
s10521: and adding a queue number to the segmented data, and associating the queue number with the data buffer area.
S10522: and generating a confirmation packet according to the queue number, and uploading the segmented data according to the sequence of the queue number.
Specifically, for example, the first bytes of the fragment data a1 and a1 are all 0x01, the sequence number is set at the second byte position of a1, the second byte position of a1 is 0001, and the sequence number corresponding to a1 is 0001. Fragment data A2, the second byte of A2 is 0002, the corresponding sequence number of A2 is 0002, and so on.
Sequence number 0001 of a1, acknowledgement packet of a1 set to 0x 11; sequence number 0002 for a2, and acknowledgement packet for a2 set to 0x 12. When uploading, the segmented data is uploaded in the order of the sequence number, namely, the segmented data is uploaded firstly to A1 and then to A2.
Referring to fig. 4, an embodiment of the present application discloses a data acquisition apparatus, including:
a first receiving module: for receiving an upload request.
A first control module: used for controlling the locking piece to lock the law enforcement recorder 2.
A first obtaining module: for obtaining law enforcement data for law enforcement recorder 2.
An identification and judgment module: for determining whether the enforcement data is segmented.
And (3) partitioning an uploading module: and if not, segmenting the law enforcement data to obtain segment data, and uploading the segment data.
The identification uploading module: and if so, identifying the interruption confirmation packet, and uploading the segmented data according to the interruption confirmation packet and the preset sequence.
Optionally, the data acquisition device further includes:
a second receiving module: for receiving a fetch request.
A second judging module: for determining whether law enforcement recorder 2 is in an upload data state.
A second control module: and if not, controlling the locking piece to release the law enforcement recorder 2.
A return module: if yes, returning an acknowledgement packet of the previous segmented data to the law enforcement recorder 2, wherein the acknowledgement packet is set as an interruption acknowledgement packet.
A creation module: for creating a second memory area on law enforcement recorder 2 for storing data newly included by law enforcement recorder 2.
An interrupt control module: for interrupting the data transmission and controlling the locking member to release the law enforcement recorder 2.
Optionally, the identification uploading module includes:
a first establishing unit: the method is used for establishing a data cache region and marking the data cache region in a partition mode.
Uploading a storage unit: the data cache is used for uploading the segmented data and storing the segmented data on the corresponding data cache region.
Optionally, the uploading storage unit includes:
establishing an association subunit: and adding a queue number to the segmented data, and associating the queue number with the data buffer area.
Generating an uploading subunit: and generating a confirmation packet according to the queue number, and uploading the segmented data according to the sequence of the queue number.
Referring to fig. 5, the embodiment of the application discloses a 5G intelligent data acquisition workstation, including fuselage 1, be equipped with holding tank 3, MCU and the retaining member that is used for placing law enforcement record appearance 2 on the fuselage 1, holding tank 3 has a plurality ofly, is provided with communication interface 5 in the holding tank 3, and communication interface 5 is connected with the MCU electricity, and retaining member and MCU electricity are connected, and the retaining member is used for locking law enforcement record appearance 2 in holding tank 3. In this embodiment, the locking member is a push-pull electromagnet 4.
When uploading data, the MCU is used for:
s100: an upload request is received.
S101: the locking member is controlled to lock the law enforcement recorder 2.
S102: law enforcement data is acquired for law enforcement recorder 2.
S103: and judging whether the law enforcement data is segmented or not.
S104: and if not, segmenting the law enforcement data to obtain segment data, and uploading the segment data.
S105: and if so, identifying the interruption confirmation packet, and uploading the segmented data according to the interruption confirmation packet and the preset sequence.
Optionally, after step S105, the method further includes:
s106: a fetch request is received.
S107: and judging whether the law enforcement recorder 2 is in a data uploading state or not.
S108: if not, the locking piece is controlled to loosen the law enforcement recorder 2.
S109: if so, an acknowledgement packet of the previous segment data is returned to the law enforcement recorder 2, which is set as an interrupt acknowledgement packet.
S110: a second storage area is created on law enforcement recorder 2 for storing data newly included by law enforcement recorder 2.
S111: the data transmission is interrupted and the locking member is controlled to release the law enforcement recorder 2.
Optionally, in step S105, the following sub-steps are further included:
s1051: and establishing a data cache region, and marking the data cache region in a partition mode.
S1052: and uploading the segmented data, and storing the segmented data on a corresponding data cache region.
Optionally, in step S1052, the following sub-steps are further included:
s10521: and adding a queue number to the segmented data, and associating the queue number with the data buffer area.
S10522: and generating a confirmation packet according to the queue number, and uploading the segmented data according to the sequence of the queue number.
The foregoing is a preferred embodiment of the present application and is not intended to limit the scope of the application in any way, and any features disclosed in this specification (including the abstract and drawings) may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.

Claims (10)

1. A data acquisition method is characterized by comprising the following steps:
receiving an uploading request;
the locking piece is controlled to lock the law enforcement recorder (2);
acquiring law enforcement data of a law enforcement recorder (2);
judging whether the law enforcement data is segmented or not;
if not, the law enforcement data is segmented to obtain segmented data, and the segmented data is uploaded;
and if so, identifying the interruption confirmation packet, and uploading the segmented data according to the interruption confirmation packet and the preset sequence.
2. The data collection method of claim 1, wherein if yes, identifying an interruption confirmation packet, and after uploading the segmented data according to a predetermined order according to the interruption confirmation packet, further comprising:
receiving a fetch request;
judging whether the law enforcement recorder (2) is in a data uploading state or not;
if not, controlling the locking piece to loosen the law enforcement recorder (2);
if yes, returning a confirmation packet of the previous segmented data to the law enforcement recorder (2), wherein the confirmation packet is set as an interruption confirmation packet;
a second storage area is created on the law enforcement recorder (2), and the second storage area is used for storing the data newly included by the law enforcement recorder (2);
and interrupting data transmission, and controlling the locking piece to release the law enforcement recorder (2).
3. The data acquisition method according to claim 1, wherein if not, the method for segmenting the law enforcement data to obtain segment data and uploading the segment data comprises:
establishing a data cache region, and carrying out partition marking on the data cache region;
and uploading the segmented data, and storing the segmented data on a corresponding data cache region.
4. The data acquisition method according to claim 3, wherein the uploading the segmented data and storing the segmented data in the corresponding data buffer comprises:
adding a queue number to the segmented data, and establishing association between the queue number and a data buffer area;
and generating a confirmation packet according to the queue number, and uploading the segmented data according to the sequence of the queue number.
5. A data acquisition device, comprising:
a first receiving module: for receiving an upload request;
a first control module: the locking piece is used for controlling the locking piece to lock the law enforcement recorder (2);
a first obtaining module: the law enforcement data acquisition system is used for acquiring law enforcement data of the law enforcement recorder (2);
an identification and judgment module: used for judging whether the law enforcement data is segmented or not;
and (3) partitioning an uploading module: if not, the law enforcement data is segmented to obtain segmented data, and the segmented data is uploaded;
the identification uploading module: and if so, identifying the interruption confirmation packet, and uploading the segmented data according to the interruption confirmation packet and the preset sequence.
6. A data acquisition device according to claim 5, further comprising:
a second receiving module: for receiving a fetch request;
a second judging module: the system is used for judging whether the law enforcement recorder (2) is in a data uploading state or not;
a second control module: if not, controlling the locking piece to loosen the law enforcement recorder (2);
a return module: if yes, returning a confirmation packet of the previous segmented data to the law enforcement recorder (2), wherein the confirmation packet is set as an interruption confirmation packet;
a creation module: the system is used for creating a second storage area on the law enforcement recorder (2), and the second storage area is used for storing the data newly included by the law enforcement recorder (2);
an interrupt control module: for interrupting the data transmission, the locking piece is controlled to release the law enforcement recorder (2).
7. The data acquisition device of claim 5, wherein the identification upload module comprises:
a first establishing unit: the system comprises a data cache region, a data cache region and a data cache region, wherein the data cache region is used for establishing the data cache region and marking the data cache region in a partitioning manner;
uploading a storage unit: the data cache is used for uploading the segmented data and storing the segmented data on the corresponding data cache region.
8. The data acquisition device of claim 7, wherein the upload storage unit comprises:
establishing an association subunit: adding a queue number to the segmented data, and establishing association between the queue number and a data buffer area;
generating an uploading subunit: and generating a confirmation packet according to the queue number, and uploading the segmented data according to the sequence of the queue number.
9. The 5G intelligent data acquisition workstation is characterized by being suitable for the data acquisition method of any one of claims 1 to 4 and comprising a machine body (1), wherein the machine body (1) is provided with a holding tank (3) for placing a law enforcement recorder (2), an MCU and a locking piece, a communication interface (5) is arranged in the holding tank (3), the communication interface (5) is electrically connected with the MCU, the locking piece is electrically connected with the MCU, and the locking piece is used for locking the law enforcement recorder (2) in the holding tank (3).
10. A 5G intelligent data acquisition workstation according to claim 9, wherein the locking piece employs push-pull electromagnets (4).
CN202110838377.4A 2021-07-23 2021-07-23 Data acquisition method and device and 5G intelligent data acquisition workstation Pending CN113553281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110838377.4A CN113553281A (en) 2021-07-23 2021-07-23 Data acquisition method and device and 5G intelligent data acquisition workstation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110838377.4A CN113553281A (en) 2021-07-23 2021-07-23 Data acquisition method and device and 5G intelligent data acquisition workstation

Publications (1)

Publication Number Publication Date
CN113553281A true CN113553281A (en) 2021-10-26

Family

ID=78104303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110838377.4A Pending CN113553281A (en) 2021-07-23 2021-07-23 Data acquisition method and device and 5G intelligent data acquisition workstation

Country Status (1)

Country Link
CN (1) CN113553281A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350839A (en) * 2008-09-22 2009-01-21 北京立通无限科技有限公司 Method, apparatus and system for implementing data synchronization of mobile terminal PIM service
CN103957256A (en) * 2014-04-30 2014-07-30 梁鸿才 Law enforcement meter data reading system, data transmission method and related method thereof
CN104834617A (en) * 2015-04-01 2015-08-12 深圳市金立通信设备有限公司 Data transmission method
CN104900036A (en) * 2015-06-04 2015-09-09 深圳市华德安科技有限公司 Vehicle-mounted law enforcement data acquisition workstation and method for acquiring law enforcement data
CN105282512A (en) * 2015-10-23 2016-01-27 中科动力(福建)新能源汽车有限公司 Safety monitoring method and system for electric automobile
CN105430341A (en) * 2015-11-28 2016-03-23 绵阳少军信息科技有限公司 Real-time wireless communication system for vehicle-mounted camera record
CN106488103A (en) * 2016-12-02 2017-03-08 苏州科达科技股份有限公司 There is the data acquisition unit of latch assembly
CN206339985U (en) * 2016-12-02 2017-07-18 苏州科达科技股份有限公司 Data acquisition device with automatic locking structure
CN109345670A (en) * 2018-09-30 2019-02-15 河南三克镭智能科技有限公司 A kind of shared lock and its sharing method
CN111240713A (en) * 2019-12-28 2020-06-05 杭州拓深科技有限公司 Method for detecting remote breakpoint continuous transmission through power utilization
CN112015870A (en) * 2020-09-14 2020-12-01 支付宝(杭州)信息技术有限公司 Data uploading method and device
CN112953839A (en) * 2021-01-19 2021-06-11 南京南瑞水利水电科技有限公司 Data framing transmission method, telemetering equipment and data center platform

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350839A (en) * 2008-09-22 2009-01-21 北京立通无限科技有限公司 Method, apparatus and system for implementing data synchronization of mobile terminal PIM service
CN103957256A (en) * 2014-04-30 2014-07-30 梁鸿才 Law enforcement meter data reading system, data transmission method and related method thereof
CN104834617A (en) * 2015-04-01 2015-08-12 深圳市金立通信设备有限公司 Data transmission method
CN104900036A (en) * 2015-06-04 2015-09-09 深圳市华德安科技有限公司 Vehicle-mounted law enforcement data acquisition workstation and method for acquiring law enforcement data
CN105282512A (en) * 2015-10-23 2016-01-27 中科动力(福建)新能源汽车有限公司 Safety monitoring method and system for electric automobile
CN105430341A (en) * 2015-11-28 2016-03-23 绵阳少军信息科技有限公司 Real-time wireless communication system for vehicle-mounted camera record
CN106488103A (en) * 2016-12-02 2017-03-08 苏州科达科技股份有限公司 There is the data acquisition unit of latch assembly
CN206339985U (en) * 2016-12-02 2017-07-18 苏州科达科技股份有限公司 Data acquisition device with automatic locking structure
CN109345670A (en) * 2018-09-30 2019-02-15 河南三克镭智能科技有限公司 A kind of shared lock and its sharing method
CN111240713A (en) * 2019-12-28 2020-06-05 杭州拓深科技有限公司 Method for detecting remote breakpoint continuous transmission through power utilization
CN112015870A (en) * 2020-09-14 2020-12-01 支付宝(杭州)信息技术有限公司 Data uploading method and device
CN112953839A (en) * 2021-01-19 2021-06-11 南京南瑞水利水电科技有限公司 Data framing transmission method, telemetering equipment and data center platform

Similar Documents

Publication Publication Date Title
CN103207870B (en) Photo classification management method, server, device and system
CN206117857U (en) On --spot law enforcement audio video collecting recording system
US9343109B2 (en) Video editing device
CN103940190B (en) There is refrigerator and the food control method of food management system
KR101810578B1 (en) Automatic media sharing via shutter click
EP1126388A3 (en) System and Method for content-based multimedia retrieval
EP1946228A2 (en) Object-based real-time information management method and apparatus
CN104935735A (en) Information deletion method and information deletion system
CN103218599A (en) System and method for authenticating generation II identity card based on face recognition
CN105701698A (en) System and method for automatically checking joining in network car rental
CN113553281A (en) Data acquisition method and device and 5G intelligent data acquisition workstation
CN106484789A (en) The storage management system and method for pictorial information
EP1146453A3 (en) Data storage, management, and delivery method
CN116340055A (en) Data recovery method and system for solid state disk
CN108388672A (en) Lookup method, device and the computer readable storage medium of video
CN111064928A (en) Video monitoring system with face recognition function
CN108512943A (en) Embedded device data store system based on message queue and store method
CN106656763A (en) Method and device for sending offline message
CN207216409U (en) Remote monitoring system based on BDS/GPS
CN105592221A (en) Multimedia-sending method and communication terminal
CN105574157B (en) A kind of photo storage method and equipment
CN107168896A (en) The control system and control method of a kind of USB device
CN106485241A (en) A kind of data analysis system
CN106335431A (en) Mobile phone recorder for observing rear side of automobile
CN104660968B (en) A kind of method using multi-memory card storage warning message

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20211026