Disclosure of Invention
In order to overcome the defects of the related art, the invention aims to provide a method, a system, an electronic device and a medium for building a group based on a law enforcement recorder so as to improve the building efficiency.
One of the purposes of the invention is realized by adopting the following technical scheme:
a group building method based on a law enforcement recorder comprises the steps that the law enforcement recorder which starts wireless induction is recorded as terminal equipment, and terminal equipment which requests group building is recorded as an initiating terminal, and the method comprises the following steps:
the initiating terminal identifies the terminal equipment in the induction range of the initiating terminal and generates a first list;
the initiating terminal sends a group establishment request carrying the first list to server equipment;
and the server equipment receives the group establishment request, responds to the group establishment request to establish a group and pulls the terminal equipment information of the first list into the group.
In some embodiments, a terminal device requesting to enter a group is denoted as a participant, and the method further includes:
the participating end identifies the terminal equipment in the sensing range and generates a second list;
the participating end sends a group entering request carrying the second list to the server equipment;
and the server equipment receives the group entering request, judges whether the second list comprises the information of the initiating terminal, and responds to the group entering request to pull the information of the participating terminal into the group if the second list comprises the information of the initiating terminal.
In some embodiments, after the server device determines that the information of the initiator is not included in the second list, the method further includes:
the server equipment inquires a member list of the group;
the server device calculates the association degree of the second list and the member list;
and the server equipment judges whether the association degree accords with a first preset range, and if so, responds to the group entering request to pull the information of the participating end into the group.
In some embodiments, any terminal device is marked as a current end, and after the information of the current end is pulled into the group, the method further includes:
the server equipment generates a successful group entering signal and feeds the successful group entering signal back to the current end, wherein the successful group entering signal carries the information of the initiating end and/or the information of the group.
In some of these embodiments, after the current end receives the group entry success signal, the method further comprises:
the current end counts the number of applications based on the wireless induction;
and the current end judges whether the application number is less than two, and if so, the wireless induction is closed.
In some embodiments, any terminal device is marked as a current end, and after the information of the current end is pulled into the group, the method further includes:
the server equipment inquires the time for starting the wireless induction of the initiating terminal and the current terminal and respectively records the time as a first starting time and a second starting time;
the server device calculates a time difference between the first opening time and the second opening time;
and the server judges whether the time difference accords with a second preset range, if so, a closing signal is output to the current end, and the current end closes the wireless induction according to the closing signal.
In some embodiments, the wireless induction is any one or more of NFC, bluetooth, RFID, WiFi, ZigBee.
The second purpose of the invention is realized by adopting the following technical scheme:
a group building system based on a law enforcement recorder comprises a server device and the law enforcement recorder; recording a law enforcement recorder which starts wireless induction as terminal equipment, and recording terminal equipment which requests for building as an initiating end;
the initiating terminal is used for identifying the terminal equipment in the sensing range and generating a first list;
the initiating terminal is further used for sending a group establishment request carrying the first list to server equipment;
the server device is used for receiving the group establishment request, establishing a group in response to the group establishment request and pulling the terminal device information of the first list into the group.
It is a further object of the invention to provide an electronic device performing one of the objects of the invention, comprising a memory in which a computer program is stored and a processor arranged to carry out the method described above when executing the computer program.
It is a fourth object of the present invention to provide a computer readable storage medium storing one of the objects of the invention, having stored thereon a computer program which, when executed by a processor, implements the method described above.
Compared with the related technology, the invention has the beneficial effects that: when the group building is needed, each user opens the wireless induction of the respective law enforcement recorder and approaches the initiating end, and the initiating end induces and identifies the terminal equipment so as to generate the first list, namely the time spent for generating the first list is short, so that the efficiency of the whole group building process is high; because the user needs to turn on the wireless induction and is close to the initiating terminal, the user actively enters the group, and the participation of the user can be improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and 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. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It will be appreciated that such a development effort might be complex and tedious, but would nevertheless be a routine undertaking of design, fabrication, and manufacture for those of ordinary skill having the benefit of this disclosure, and is not intended to limit the scope of this disclosure.
Example one
The embodiment provides a clustering method based on a law enforcement recorder, and aims to solve the problem of low clustering efficiency caused by long time consumption of a process of searching group members one by a group owner in the related art. Fig. 1 is a flow chart of a method according to an embodiment of the present application.
As shown in fig. 1, the method includes steps S101 to S104.
Step S101, the initiating terminal identifies the terminal equipment in the sensing range and generates a first list. It should be noted here that the terminal device is a law enforcement recorder that starts wireless sensing, and the initiating end is a terminal device that requests for group establishment and is held by the initiator.
It is understood that the first list includes information of the corresponding terminal device, and the information may be any one or combination of name, account number, and device number. However, law enforcement recorders are typically user bound and therefore the information is not limited herein and preferably is a name.
Step S102, the initiating terminal sends a group establishment request carrying the first list to the server equipment. It can be understood that the group request is sent by the originating terminal, and the group request also carries the relevant information of the originating terminal. The execution device may be a server, a cloud server, a client, a processor, or the like, but the execution device is not limited to the above type.
Step S103, the server device receives the group building request and responds to the group building request to build a group. It will be appreciated that the group request is sent by the originator and the originator is automatically set as the group owner for the group. It is worth noting here that the group here has only the originator.
And step S104, the server equipment pulls the terminal equipment information of the first list into the group.
In summary, each user turns on the wireless sensing of the respective law enforcement recorder and approaches the initiating terminal, so that the participation of the user can be improved, and the initiating terminal senses and identifies the terminal device to generate the first list, that is, the time taken for generating the first list is short, so that the efficiency of the whole group building process is high.
As an optional technical solution, the step S101 may further include: the initiating terminal induces the terminal equipment in the induction range and generates an induction list according to the id number of the terminal equipment; an initiator queries an id mapping table, wherein the id mapping table can be id number-name/account number/equipment number; the initiating terminal converts the related id numbers in the induction list into name/account/equipment numbers according to the id mapping table and displays the name/account/equipment numbers so as to be selected by the initiating person for group members; the initiator generates a first list according to the selection result of the initiator.
It will be appreciated that wireless sensing is typically applied not only to law enforcement recorders, but also to mobile devices such as cell phones, laptops and tablets, and therefore the sensed list may have an id number not associated with a law enforcement recorder, but the id number associated with a law enforcement recorder may be identified by the id mapping table and selected by the originator to obtain a first list meeting the requirements of the group.
It should be noted that, when the terminal device turns on the wireless sensing, the generated id number may be fixed or random. Specifically, when the id number is fixed, the id mapping table is also fixed, and can be prestored in each law enforcement recorder or prestored in server equipment and issued according to the request of an initiator; and when the id number is random, the id mapping table is not fixed, each law enforcement recorder uploads the generated id number to the server equipment after starting wireless induction, the server receives and stores the id number, and the server equipment can integrate the stored id number according to the request of the initiator to generate the id mapping table and then sends the id mapping table to the initiator.
The wireless induction can adopt any one or more combination of NFC, Bluetooth, RFID, ZigBee and WiFi. It is worth mentioning here that the wireless sensing of the respective terminal devices takes place in the same way. The wireless sensing is preferably NFC, and the id number generated by the law enforcement recorder after NFC is turned on is preferably random.
It will be appreciated that the steps illustrated in the flowcharts described above or in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than here.
Example two
The second embodiment provides a clustering method based on a law enforcement recorder, and is performed on the basis of the first embodiment. The method may further include a group entry requesting step, and fig. 2 is a flowchart of the group entry requesting step in the second embodiment of the present application.
Referring to fig. 1 and 2, the grouping request step includes steps S201 to S203.
Step S201, the participating end identifies the terminal equipment in the sensing range and generates a second list. And recording the terminal equipment requesting to enter the group as a participant. In step S201, reference may be made to the related description of step S101 in the first embodiment, which is not described herein again.
Step S202, the participating end sends a group entering request carrying a second list to the server equipment. The group entering request is sent by the participating end, and the group entering request also carries the related information of the participating end. In the step S201, reference may be made to the related description of the step S102 in the first embodiment, which is not described herein again.
Step S203, the server device receives the group entering request, and determines whether the second list includes the information of the initiating terminal, if so, step S204 is executed. The second list is selected and generated on the basis of the participant terminal on the sensing list.
Step S204, the server device responds to the group entering request to pull the information of the participating end into the group. It is worth mentioning here that steps S101 and S202 may be performed before or after step S103, but step S204 is performed after step S103. It should be noted here that, if steps S101 and S202 can be executed before step S103, the server device may save the group entry request in the to-be-processed set when receiving the group entry request, and may execute the group entry request after step S103 is completed.
Further, the server device may set a group entering time period according to the group establishing time, where the group establishing time period corresponds to the group, specifically, the group entering time period is included in the group entering time period, and the group entering time period may be adjusted according to actual situations, for example, the group establishing time is 10:00, and the corresponding group entering time period may be 9:55-10: 05. When the server device can receive the group entry request and allow the group entry within the group entry period, correspondingly, the server device prohibits receiving the group entry request or permits receiving the group entry request but prohibits the group entry outside the group entry period, at this time, people in the group can actively pull people to enter the group, and the people pulling the people to enter the group can adopt the prior art, and details are not described herein.
Since the time points of opening the wireless induction of each law enforcement recorder are different, some are earlier and some are later, if the initiating end waits until all the group members open the wireless induction of the corresponding law enforcement recorder, the time of the initiator is greatly consumed. Through the technical scheme, when a group is established, if the number of the execution devices for starting the wireless induction is small, the initiating terminal can upload the first list obtained after identification to the server device for group establishment, and then the law enforcement device for starting the wireless induction can enter the group by adopting the steps S201 to S204, so that the time consumed by the initiator is reduced, and the omission of the first list or the entering of corresponding subsequent supplementary personnel due to the omission of the first list can be avoided.
As an optional technical solution, the group entering requesting step may further include step S205 to step S208.
Step S205, the server device queries a member list of the group. This step is performed after the server apparatus determines in step S203 that the second list does not include the information of the initiator.
Step S206, the server device calculates the association degree of the second list and the member list. Specifically, the information of several matched group member lists in the second list is firstly queried, the number is denoted as N, and the association degree is obtained based on the number N, the association degree and the number N are set in positive feedback or negative feedback, and preferably, the association degree is equal to the number N.
Step S207, the server device determines whether the association degree meets a first preset range, and if so, executes step S204. The first preset range may be adjusted by a user, and it should be noted herein that the number of information in the second list should satisfy the first preset range. For example, if the association degree is equal to the number N and the first preset range is ≧ 2, the number of information in the second list shall be ≧ 2, and if N is 5, the execution of step S208 is allowed.
Step S208, the server device pulls the information of the participating end into the group in response to the group entering request. It will be appreciated that when information for any terminal device is pulled into a group, the list of members of the group is updated.
For example: if equipment terminals a, b, c and d are provided, wherein a is an initiating terminal, b is within the identification range of a, information of b is in a first list uploaded by a, the server establishes a group with information a and pulls the information of b into the group, then c enters the sensing range of a, c uploads a second list with information a, a server pulls the information of c into the group, then d enters the sensing range of c/b but is not within the sensing range of a, d uploads the information with c/b, and the server pulls the information of d into the group.
When the people needing to enter the group are scattered, the people needing to enter the group can only carry out the steps S201 to S204 by holding the device terminal and approaching the initiator, that is, by being limited by the sensing range of the initiator. However, according to the technical scheme, after the initiator establishes the group, corresponding personnel are only mainly near other group members, then the second list related to the other group members is uploaded, and the group can be entered through verification, so that the method is not limited to the induction range of the initiator, and the initiator can leave after the group is established, so that the work of the initiator is prevented from being influenced.
Further, when the server device determines that the association degree does not meet the first preset range, the corresponding group entering request may be marked as a pending request and stored in the pending set. The pending requests in the pending set are queued. After the group member list is updated, the pending requests are sequentially traversed to execute step S205 to step S208. For example: and after the group member list is updated, the terminal device corresponding to the head of the queue is marked as e, the server device executes the steps S205 to S207 based on the second list of e, when the association degree of the second list of e and the group member list accords with a first preset range, the server device executes the step S208 in a matching manner, otherwise, the server device puts the request to be processed of e at the tail of the queue and continues to circularly execute the steps when the association degree of the second list of e and the group member list does not accord with the first preset range.
It should be noted that the server device is provided with a group entry period, and in particular, with reference to the above description, when the current time exceeds the group entry period, the queue formed by the pending requests is disassembled.
Since the association degree between the second list and the member list is changed after the member list is updated, the corresponding group entering request is saved and the related steps are re-executed after the member list is updated, so that the group establishment is more accurate.
EXAMPLE III
The third embodiment provides a clustering method based on a law enforcement recorder, and is performed on the basis of the first embodiment or the second embodiment.
The method further comprises a feedback step. Any terminal device is marked as a current end, and the feedback step is executed after the information of the current end is pulled into the group, wherein the feedback step specifically comprises the following steps: the server equipment generates a successful group entering signal, and feeds the successful group entering signal back to the current end, wherein the successful group entering signal carries the information of the initiating end and/or the information of the group.
The feedback step can be correspondingly executed after step S104, step S204, and step S208 to notify the corresponding current end that it has entered a group, and the group entering success signal carries relevant information so that the holder of the participating end can manually check whether the entered group has an error.
As an optional technical solution, the feedback step may further include: counting the number of applications based on wireless sensing at the front end, which is not described herein in detail for the prior art; and the front end judges whether the application number is less than two, and if so, the wireless induction is closed. It can be understood that if the wireless sensing is only used for clustering, the corresponding number of applications is 1, and if the wireless sensing is not only used for clustering, the corresponding number of applications is greater than 1. Therefore, the front end can be turned off in a wireless sensing mode according to the application number, on the basis of not influencing other applications, on one hand, the front end is prevented from participating in the establishment of other groups, and on the other hand, the front end has the advantage of saving electricity.
As an optional technical solution, the wireless sensing shutdown mode in the feedback step can also be implemented by the following steps. Specifically, the feedback step may further include: the server equipment inquires the time for starting the wireless induction of the initiating terminal and records the time as first starting time; the server equipment inquires the time for starting the wireless induction at the current end and records the time as second starting time; the server device calculates the time difference between the first opening time and the second opening time, wherein the time difference can be the first opening time minus the second opening time, or the second opening time minus the first opening time, as long as the time difference is positive; the server judges whether the time difference accords with a second preset range, the second preset range can be adjusted according to actual conditions, the time length of the second preset range is preferably the same as the time length of the group entering time period, if yes, a closing signal is output to the current end, the current end closes wireless induction according to the closing signal, and if not, no processing is carried out.
Through the technical scheme, on the basis of not influencing other applications, on one hand, the participation in the establishment of other groups is avoided, and on the other hand, the power saving effect is achieved. However, the wireless sensing closing judgment is executed by the server device, so that the operating resource overhead of each terminal device can be reduced.
It should be noted that the wireless sensing in the feedback step is not limited to the above type, and may also be implemented by turning off the terminal device based on the turn-on time of the wireless sensing, which is not limited herein, and mainly satisfies that the wireless sensing is turned off after the group establishment.
Example four
The fourth embodiment provides a clustering system based on a law enforcement recorder, and fig. 3 is a block diagram of the clustering system according to the fourth embodiment of the present application.
Referring to fig. 3, the clustering system includes: server equipment and law enforcement recorders. And recording the law enforcement recorder which starts the wireless induction as terminal equipment, and recording the terminal equipment which requests for building as an initiating terminal.
The initiating terminal is used for identifying the terminal equipment in the sensing range and generating a first list.
The initiating terminal is further configured to send a group establishment request carrying the first list to the server device.
The server device is used for receiving the group establishment request, responding to the group establishment request to establish a group and pulling the terminal device information of the first list into the group.
Preferably, the group building system may further include a display screen connected to the server device, and the display screen is used for displaying the situation of each group. It is worth mentioning here that the display screen is independent of the server device, which may be a console large screen of the control center.
The system is used for implementing the above embodiments and preferred embodiments, and the description of the system already made is omitted. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
EXAMPLE five
In a fifth embodiment, an electronic device is provided, and fig. 4 is a block diagram of the electronic device in the fifth embodiment of the present application, and referring to fig. 4, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any one of the method embodiments described above.
Optionally, the electronic device may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in the fifth embodiment, the processor may be configured to execute the following steps by a computer program:
the initiating terminal identifies the terminal equipment in the induction range of the initiating terminal and generates a first list;
an initiating terminal sends a group establishment request carrying a first list to server equipment;
the server equipment receives the group building request, responds to the group building request to create a group and pulls the terminal equipment information of the first list into the group.
It should be noted that, for specific examples in this embodiment, reference may be made to examples described in the foregoing embodiments and optional implementations, and details of this embodiment are not described herein again.
In addition, in combination with the law enforcement recorder-based clustering method in the above embodiments, the embodiments of the present application may be implemented by providing a storage medium. The storage medium having stored thereon a computer program; the computer program, when executed by a processor, implements any of the above-described embodiments of a law enforcement recorder-based clustering method.
In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a law enforcement recorder based clustering method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
In an embodiment, fig. 4 is a schematic internal structural diagram of an electronic device according to a fifth embodiment of the present application, and as shown in fig. 4, there is provided an electronic device, which may be a server, and its internal structural diagram may be as shown in fig. 4. The electronic device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the electronic device is used for storing data. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a method of network user role identification.
Those skilled in the art will appreciate that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink), DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
It should be understood by those skilled in the art that various features of the above embodiments can be combined arbitrarily, and for the sake of brevity, all possible combinations of the features in the above embodiments are not described, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.