Motion event response method, electronic equipment and storage medium
By automatically transmitting motion data through a server-managed terminal, the problem of low flexibility and high cost caused by additional handover items in relay races is solved, achieving high efficiency and accuracy in data transmission.
Patent Information
- Application Number
- CN202310452742.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-17
- Publication Date
- 2024-10-22
AI Technical Summary
Existing relay races require additional equipment such as smartphones or smartwatches to record race data, resulting in low flexibility, high costs, and inaccurate data transmission.
The server sends event information carrying the conditions for triggering the handover to multiple terminals. When the conditions are met, the terminals automatically transmit motion data. No additional handover object is required. Data transmission is achieved by using a near-field communication module or server forwarding.
It reduces the difficulty and cost of implementing relay events, and improves the flexibility of the competition and the accuracy of data transmission.
Smart Images

Figure CN118828403A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and in particular, relates to a motion event response method, electronic device and storage medium. Background Art
[0002] With the popularization of the concept of healthy exercise, people are paying more and more attention to exercise. In order to increase the fun and competitiveness of exercise during daily exercise, people use sports competitions to carry out exercise. Relay races, as one of the common forms of sports competitions, are deeply loved by users because of their strong cooperation. Therefore, how to effectively and conveniently carry out relay races has gradually become the focus of users' attention.
[0003] In the existing sports event management method, when users are participating in a relay sports competition, a team needs to have a handover object, such as a smartphone or an electronic baton for the relay, to record the sports data of this relay sports competition. However, this method requires an additional handover object, which greatly increases the difficulty of implementing the relay sports competition, reduces the flexibility of the relay competition, and is not conducive to the development of the relay competition. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for responding to sports events, which can solve the problems of existing sports event response technologies, such as the need to configure additional handover objects to record sports data when conducting relay-type sports events, and the difficulty and low flexibility of conducting relay sports.
[0005] In a first aspect, an embodiment of the present application provides a method for responding to a motion event, which is applied to a first terminal and includes:
[0006] Acquire event information about a sports event; the event information is determined according to a first sequence number of a first user to which the first terminal belongs in the sports event; the event information includes a contact triggering condition corresponding to the first sequence number;
[0007] If the handover triggering condition is met, executing the handover process of the motion event according to the handover state of the first terminal to transfer the motion data of the motion event, including:
[0008] If the handover state of the first terminal is the first state, a first handover signaling is generated and sent based on the first motion data of the motion event; the first handover signaling carries a handover token; the first handover signaling is used to send the handover token to the second terminal corresponding to the second sequence number; the second sequence number is the next handover sequence number of the first sequence number;
[0009] If the handover state of the first terminal is the second state, a second handover signaling is received; the second handover signaling carries the handover token; the second handover signaling is sent by the third terminal corresponding to the third sequence number; the third sequence number is the previous handover sequence number of the first sequence number;
[0010] If the second handover signaling is legal handover signaling, the first motion data of the motion event is generated based on the second motion data carried by the second handover signaling.
[0011] The implementation of the embodiment of the present application has the following beneficial effects: before the sports event of the relay race, the server can send the event information carrying the handover contact condition to multiple different terminals in the same user queue, such as the first terminal. After the first terminal receives the event information, when the handover contact condition carried by it is met, the corresponding handover process can be executed according to the handover state of the first terminal to pass the motion data corresponding to the sports event to other terminals, so as to achieve the purpose of passing the motion data between multiple terminals, without preparing additional handover objects to record the motion data of the relay race process. Compared with the existing sports event management technology, when recording the relay type sports event, the embodiment of the present application can send the event information carrying the handover contact condition to multiple terminals through the server, and multiple terminals can pass the motion data of the sports event when detecting that the handover contact condition is met, so as to achieve the purpose of recording the motion data of the relay type, without preparing additional handover objects, reducing the difficulty of realizing the relay sports competition and the required realization cost, and also improving the flexibility of carrying out the relay type sports event.
[0012] In a possible implementation manner of the first aspect, if the first terminal includes a near field communication module, if the handover state of the first terminal is the first state, generating and sending a first handover signaling based on the first motion data of the motion time includes:
[0013] Sending at least one first data packet through the near field communication module to generate the first handover signaling through the at least one first data packet; the first data packet is generated based on the wireless communication protocol corresponding to the near field communication module;
[0014] Receiving a first confirmation signaling fed back by the second terminal based on the first handover signaling; the first confirmation signaling carries second authentication data of the second terminal;
[0015] If the second authentication data is legal, stop sending the at least one first data packet.
[0016] In a possible implementation manner of the first aspect, if the first terminal includes a near field communication module, if the handover state of the first terminal is a second state, receiving second handover signaling includes:
[0017] monitoring broadcast data through the near field communication module;
[0018] In the process of monitoring the broadcast data, at least one second data packet sent by the third terminal is received through the near field communication module, and the second handover signaling is generated through the at least one second data packet.
[0019] In a possible implementation manner of the first aspect, the event information further carries a public key of the motion event and first authentication data of the first terminal. In the process of monitoring the broadcast data, after receiving, through the near field communication module, at least one second data packet sent by the third terminal, and generating the second handover signaling through the at least one second data packet, the method further includes:
[0020] The second authentication data in the second handover signaling is decrypted by the public key to obtain decrypted data; the second authentication data is encrypted by the third private key corresponding to the third terminal; the public key is used to decrypt the data encrypted by the third private key;
[0021] If the second handover signaling is a legal handover signaling, generating the first motion data of the motion event based on the second motion data carried by the second handover signaling includes:
[0022] If the decrypted data is legal, a second confirmation signaling is sent to the third terminal; the second confirmation signaling carries the first authentication data; the second confirmation signaling is used to notify the third terminal that the first terminal has received the handover token and stops sending the second handover signaling.
[0023] In a possible implementation manner of the first aspect, the event information further carries a third user identifier of the third terminal; after decrypting the authentication data in the second handover signaling by using the public key to obtain the decrypted data, the method further includes:
[0024] Determining whether the user identifier carried in the decrypted data is consistent with the third user identifier;
[0025] If the user identifier carried in the decrypted data is consistent with the third user identifier, the decrypted data is identified as legal, and the operation of sending the second confirmation signaling to the third terminal is performed;
[0026] If the user identifier carried in the decrypted data is inconsistent with the third user identifier, the process returns to executing the process of monitoring broadcast data through the near field communication module.
[0027] In a possible implementation manner of the first aspect, if the handover state of the first terminal is the first state, generating and sending first handover signaling based on first motion data of the motion time includes:
[0028] The first handover signaling is sent to the server so as to change the status flag of the handover token to a collectible status through the server, and upon receiving the token acquisition request sent by the second terminal, the first handover signaling is sent to the second terminal.
[0029] In a possible implementation manner of the first aspect, if the handover state of the first terminal is the second state, receiving second handover signaling includes:
[0030] If it is detected that the status mark of the handover token is changed to a collectible state, a token acquisition request is sent to the server; the token acquisition request carries the first authentication data of the first terminal; the first authentication data is used by the server to determine whether the token acquisition request is a legal request;
[0031] The second handover signaling fed back by the server based on the token acquisition request is received.
[0032] In a possible implementation of the first aspect, before the token acquisition request is sent to the server if it is detected that the status identifier of the handover token is changed to a receivable state, the method further includes:
[0033] A receiving interface including the status identification of the handover token is displayed; the identification status of the handover token in the receiving interface is an unreceivable status.
[0034] In a possible implementation manner of the first aspect, before acquiring event information about a sports event, the method further includes:
[0035] Receiving an existing event list fed back by a server; the existing event list includes the sports event;
[0036] In response to the participation instruction for the sports event, the first serial number of the first terminal in the user queue is determined; when the actual number of users in the user queue meets the preset number of the sports events, the server configures the handover token for the user queue.
[0037] In a possible implementation manner of the first aspect, after the existing event list fed back by the receiving server includes the sports event, the method further includes:
[0038] In response to a queue creation instruction regarding the sports event, create a user queue for the sports event to add the user queue to a queue list stored in the server;
[0039] A request for adding the user queue is sent to a terminal of an associated user of the first user, so as to add the associated user to the user queue.
[0040] In a possible implementation manner of the first aspect, if the handover trigger condition is met, executing the handover process of the motion event according to the handover state of the first terminal includes:
[0041] If the first position of the first terminal is in the handover area ring corresponding to the first serial number and / or the current time is in the motion time interval corresponding to the motion event, the handover process of the motion event is executed according to the handover status of the first terminal.
[0042] In a possible implementation of the first aspect, the handover area includes: a handover start area and a handover end area;
[0043] If the handover state of the first terminal is the first state, generating and sending a first handover signaling based on the first motion data of the motion event includes:
[0044] If the first position of the first terminal is in the handover end area corresponding to the first sequence number, identifying the handover state of the first terminal as the first state, and generating and sending a first handover signaling based on the first motion data of the motion event;
[0045] If the handover state of the first terminal is the second state, receiving a second handover signaling; the second handover signaling carries the handover token, including:
[0046] If the first position of the first terminal is in the handover start area corresponding to the first sequence number, the handover state of the first terminal is identified as the second state, and a second handover signaling is received.
[0047] In a second aspect, an embodiment of the present application provides a motion event response device, including:
[0048] An event information receiving unit, configured to obtain event information about a sports event; the event information is determined according to a first sequence number of a first user to which the first terminal belongs in the sports event; the event information includes a contact triggering condition corresponding to the first sequence number;
[0049] A motion data transmission unit, configured to execute the handover process of the motion event according to the handover state of the first terminal if the handover triggering condition is met, so as to transmit the motion data of the motion event, comprising:
[0050] A handover unit, configured to generate and send a first handover signaling based on the first motion data of the motion event if the handover state of the first terminal is the first state; the first handover signaling carries a handover token; the first handover signaling is used to send the handover token to the second terminal corresponding to the second sequence number; the second sequence number is the next handover sequence number of the first sequence number;
[0051] The handover unit is configured to receive a second handover signaling if the handover state of the first terminal is the second state; the second handover signaling carries the handover token; the second handover signaling is sent by the third terminal corresponding to the third sequence number; the third sequence number is the previous handover sequence number of the first sequence number;
[0052] A data updating unit is configured to generate the first motion data of the motion event based on the second motion data carried by the second handover signaling if the second handover signaling is a legal handover signaling.
[0053] In a possible implementation manner of the second aspect, if the response device includes a near field communication module, the baton receiving unit includes:
[0054] A data packet sending unit, configured to send at least one first data packet through the near field communication module to generate the first handover signaling through the at least one first data packet; the first data packet is generated based on a wireless communication protocol corresponding to the near field communication module;
[0055] A first confirmation signaling receiving unit is used to receive a first confirmation signaling fed back by the second terminal based on the first handover signaling; the first confirmation signaling carries second authentication data of the second terminal;
[0056] A sending stopping unit is used to stop sending the at least one first data packet if the second authentication data is legal.
[0057] In a possible implementation manner of the second aspect, if the response device includes a near field communication module, the baton receiving unit includes:
[0058] A broadcast monitoring unit, configured to monitor broadcast data via the near field communication module;
[0059] The second data packet receiving unit is used to receive at least one second data packet sent by the third terminal through the near field communication module during the process of monitoring the broadcast data, and generate the second handover signaling through the at least one second data packet.
[0060] In a possible implementation manner of the second aspect, the event information further carries a public key of the sports event and first authentication data of the first terminal;
[0061] The response device also includes:
[0062] an authentication data decryption unit, configured to decrypt the second authentication data in the second handover signaling by using the public key to obtain decrypted data; the second authentication data is obtained by encrypting the third private key corresponding to the third terminal; the public key is used to decrypt the data encrypted based on the third private key;
[0063] If the second handover signaling is a legal handover signaling, generating the first motion data of the motion event based on the second motion data carried by the second handover signaling includes:
[0064] A second confirmation signaling sending unit is used to send a second confirmation signaling to the third terminal if the decrypted data is legal; the second confirmation signaling carries the first authentication data; the second confirmation signaling is used to notify the third terminal that the first terminal has received the handover token and stop sending the second handover signaling.
[0065] In a possible implementation manner of the second aspect, the event information further carries a third user identifier of the third terminal; and the responding device further includes:
[0066] A user identification matching unit, used to determine whether the user identification carried in the decrypted data is consistent with the third user identification;
[0067] an identification consistency response unit, configured to identify that the decrypted data is legal if the user identification carried in the decrypted data is consistent with the third user identification, and execute the operation of sending the second confirmation signaling to the third terminal;
[0068] The identification abnormality response unit is used to return to executing the monitoring of broadcast data through the near field communication module if the user identification carried in the decrypted data is inconsistent with the third user identification.
[0069] In a possible implementation manner of the second aspect, the baton handing unit includes:
[0070] The signaling uploading unit is used to send the first handover signaling to the server so as to change the status flag of the handover token to a collectible state through the server, and send the first handover signaling to the second terminal when receiving the token acquisition request sent by the second terminal.
[0071] In a possible implementation of the second aspect, the baton receiving unit includes:
[0072] A token acquisition sending unit is used to send a token acquisition request to a server if it is detected that the status mark of the handover token is changed to a collectible state; the token acquisition request carries the first authentication data of the first terminal; the first authentication data is used by the server to determine whether the token acquisition request is a legal request;
[0073] A token receiving unit is used to receive the second handover signaling fed back by the server based on the token acquisition request.
[0074] In a possible implementation manner of the second aspect, the responding device further includes:
[0075] The receiving interface display unit is used to display a receiving interface including the status identification of the handover token; the identification status of the handover token in the receiving interface is an unavailable status.
[0076] In a possible implementation manner of the second aspect, the responding device further includes:
[0077] An existing event receiving unit, used for receiving an existing event list fed back by a server; the existing event list includes the sports event;
[0078] An event participation unit is used to determine the first serial number of the first terminal in the user queue in response to a participation instruction about the sports event; when the actual number of users in the user queue meets the preset number of sports events, the server configures the handover token for the user queue.
[0079] In a possible implementation manner of the second aspect, the responding device further includes:
[0080] a team creation unit, configured to create a user queue for the sports event in response to a queue creation instruction regarding the sports event, so as to add the user queue to a queue list stored in the server;
[0081] The team analysis unit is used to send a request to add the user queue to a terminal of an associated user of the first user, so as to add the associated user to the user queue.
[0082] In a possible implementation manner of the second aspect, the motion data transmission unit includes:
[0083] A condition determination unit is used to execute the handover process of the motion event according to the handover status of the first terminal if the first position of the first terminal is in the handover area ring corresponding to the first serial number and / or the current time is in the motion time interval corresponding to the motion event.
[0084] In a possible implementation of the second aspect, the handover area includes: a handover start area and a handover end area;
[0085] The baton-passing unit comprises:
[0086] a handover position identification unit, configured to identify that the handover state of the first terminal is the first state if the first position of the first terminal is in the handover end area corresponding to the first sequence number, and generate and send a first handover signaling based on the first motion data of the motion event;
[0087] The baton receiving unit comprises:
[0088] The handover position identification unit is used to identify that the handover state of the first terminal is the second state if the first position of the first terminal is in the handover start area corresponding to the first sequence number, and receive a second handover signaling.
[0089] In a third aspect, an embodiment of the present application provides a method for responding to a motion event, which is applied to a server and includes:
[0090] In response to an event setting operation on a motion event, a reference handover condition of the motion event is set; the reference handover condition includes a plurality of candidate handover areas of the motion event;
[0091] In response to the check-in signaling sent by any terminal, a handover trigger condition is generated according to the handover sequence number of any terminal and the plurality of candidate handover areas, and event information carrying the handover trigger condition is sent to any terminal; the handover trigger condition is used to execute the handover process of the motion event according to the handover state of any terminal when any terminal detects that the handover trigger condition is met;
[0092] When any of the terminals is in the first state, based on the first motion data of the motion event, a first handover signaling is generated and sent; the first handover signaling carries a handover token; the first handover signaling is used to send the handover token to a second terminal corresponding to a second sequence number; the second sequence number is a handover sequence number next to the first sequence number;
[0093] When any of the terminals is in the second state, a second handover signaling is received, and when the second handover signaling is a legal handover signaling, the first motion data of the motion event is generated based on the second motion data carried by the second handover signaling; the second handover signaling carries the handover token; the second handover signaling is sent by the third terminal corresponding to the third sequence number; the third sequence number is the previous handover sequence number of the first sequence number.
[0094] In a possible implementation manner of the third aspect, in response to the sign-in signaling sent by any terminal, generating a handover triggering condition according to the handover sequence number of any terminal, and sending event information carrying the handover triggering condition to any terminal, including:
[0095] According to the handover sequence number, determining at least one handover area corresponding to the handover sequence number from a plurality of the candidate handover areas;
[0096] The handover trigger condition is generated based on the at least one handover area, and the event information carrying the handover trigger condition is sent to any one of the terminals.
[0097] In a possible implementation manner of the third aspect, the generating the handover contact condition based on the at least one handover area, and sending the event information carrying the handover contact condition to any one of the terminals includes:
[0098] Generate a key pair for any terminal; the key pair includes a private key used by any terminal in the sports event and a public key of the user queue in which any terminal is located; the private key is used to generate authentication data sent to other terminals; the public key is used to decrypt the authentication data sent by the other terminals;
[0099] The event information is generated according to the cross-connection triggering condition and the key pair, and the event information is sent to any one of the terminals.
[0100] In a possible implementation manner of the third aspect, the any terminal includes a first terminal and a second terminal; a handover sequence number of the first terminal is smaller than a handover sequence number of the second terminal;
[0101] After generating a handover triggering condition according to the handover sequence number of any terminal and the plurality of candidate handover areas in response to the sign-in signaling sent by any terminal, and sending event information carrying the handover triggering condition to any terminal, the method further includes:
[0102] In response to the first handover signaling sent by the first terminal, changing the state flag of the handover token of the user queue where the first terminal is located to a receivable state;
[0103] Receiving a token acquisition request sent by a second terminal; the token acquisition carries second authentication data of the second terminal;
[0104] If the second authentication data is legal authentication data, the first handover signaling is sent to the second terminal, and the handover state of the handover token is changed to an unavailable state.
[0105] In a possible implementation manner of the third aspect, after the reference handover condition of the motion event is set in response to the event setting operation on the motion event, the method further includes:
[0106] In response to the event query instruction sent by any terminal, feeding back an existing event list to any terminal; the existing event list includes the sports event;
[0107] In response to a joining instruction sent by any terminal, adding any terminal to a user queue, and determining a handover sequence number of any terminal in the user queue;
[0108] If the actual number of users in the user queue is equal to the rated number of users in the queue, a handover token for the user queue is generated.
[0109] In a possible implementation manner of the third aspect, after, in response to the event query instruction sent by any terminal, feeding back the existing event list to any terminal, the method further includes:
[0110] In response to a queue creation instruction sent by any terminal, adding the user queue to the queue list;
[0111] The adding request sent by any terminal is received, and the adding request of the user queue is sent to a terminal of a user associated with the first user.
[0112] In a fourth aspect, an embodiment of the present application provides a motion event response device, including:
[0113] An event setting unit, configured to set a reference handover condition of the motion event in response to an event setting operation on the motion event; the reference handover condition includes a plurality of candidate handover areas of the motion event;
[0114] A sign-in response unit, configured to generate a handover trigger condition according to a handover sequence number of any terminal and a plurality of candidate handover areas in response to a sign-in signal sent by any terminal, and send event information carrying the handover trigger condition to any terminal; the handover trigger condition is used to execute the handover process of the motion event according to the handover state of any terminal when any terminal detects that the handover trigger condition is met;
[0115] When any of the terminals is in the first state, based on the first motion data of the motion event, a first handover signaling is generated and sent; the first handover signaling carries a handover token; the first handover signaling is used to send the handover token to a second terminal corresponding to a second sequence number; the second sequence number is a handover sequence number next to the first sequence number;
[0116] When any of the terminals is in the second state, a second handover signaling is received, and when the second handover signaling is a legal handover signaling, the first motion data of the motion event is generated based on the second motion data carried by the second handover signaling; the second handover signaling carries the handover token; the second handover signaling is sent by the third terminal corresponding to the third sequence number; the third sequence number is the previous handover sequence number of the first sequence number.
[0117] In a possible implementation manner of the fourth aspect, the check-in response unit includes:
[0118] a handover area determining unit, configured to determine, according to the handover sequence number, at least one handover area corresponding to the handover sequence number from a plurality of the candidate handover areas;
[0119] The handover contact condition determining unit is configured to generate the handover contact condition based on the at least one handover area, and send the event information carrying the handover contact condition to any one of the terminals.
[0120] In a possible implementation manner of the fourth aspect, the intersection triggering condition determining unit includes:
[0121] A key pair generating unit, configured to generate a key pair for any terminal; the key pair includes a private key used by any terminal in the sports event and a public key of a user queue in which any terminal is located; the private key is used to generate authentication data sent to other terminals; the public key is used to decrypt authentication data sent by other terminals;
[0122] The key pair encapsulation unit is used to generate the event information according to the cross-connection triggering condition and the key pair, and send the event information to any one of the terminals.
[0123] In a possible implementation manner of the fourth aspect, the any terminal includes a first terminal and a second terminal; a handover sequence number of the first terminal is smaller than a handover sequence number of the second terminal;
[0124] The response device also includes:
[0125] a state identification changing unit, configured to change the state identification of the handover token of the user queue where the first terminal is located to a collectible state in response to the first handover signaling sent by the first terminal;
[0126] A token acquisition request receiving unit, configured to receive a token acquisition request sent by a second terminal; the token acquisition carries second authentication data of the second terminal;
[0127] The first handover signaling forwarding unit is used to send the first handover signaling to the second terminal if the second authentication data is legal authentication data, and change the handover state of the handover token to an unavailable state.
[0128] In a possible implementation manner of the fourth aspect, the responding device further includes:
[0129] A query response unit, configured to, in response to an event query instruction sent by any terminal, feed back an existing event list to any terminal; the existing event list includes the sports event;
[0130] a queue adding unit, configured to add any terminal to a user queue in response to a joining instruction sent by any terminal, and determine a handover sequence number of any terminal in the user queue;
[0131] The token generating unit is used to generate a handover token for the user queue if the actual number of users in the user queue is equal to the rated number of users in the queue.
[0132] In a possible implementation manner of the fourth aspect, the responding device further includes:
[0133] a member adding unit, configured to add the user queue to the queue list in response to a queue creation instruction sent by any terminal;
[0134] The list forwarding unit is used to receive an adding request sent by any terminal, and send the adding request of the user queue to a terminal of an associated user of the first user.
[0135] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method for responding to a motion event described in any one of the first aspect or the third aspect when executing the computer program.
[0136] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and wherein when the computer program is executed by a processor, the method for responding to a motion event described in any one of the first aspect or the third aspect is implemented.
[0137] In a seventh aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the method for responding to a motion event described in any one of the first aspect or the third aspect.
[0138] In an eighth aspect, an embodiment of the present application provides a chip system, including a processor, the processor being coupled to a memory, the processor executing a computer program stored in the memory to implement a method for responding to a motion event as described in any one of the first aspect or the third aspect.
[0139] It can be understood that the beneficial effects of the second to eighth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0140] Figure 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0141] Figure 2 is a software structure block diagram of the electronic device of the embodiment of the present application;
[0142] Figure 3 It is a schematic diagram of recording movement data during the existing relay movement;
[0143] Figure 4 It is a structural diagram of a system for responding to a motion event provided in an embodiment of the present application;
[0144] Figure 5 is a schematic diagram of the structure of a motion event response system provided by another embodiment of the present application;
[0145] Figure 6 It is an interactive flow chart for implementing the preparation phase in the method for responding to a motion event provided in an embodiment of the present application;
[0146] Figure 7 This is a schematic diagram of the operation of creating a motion event provided by an embodiment of the present application;
[0147] Figure 8 is a schematic diagram of an operation of participating in a sports event provided by an embodiment of the present application;
[0148] Fig. 9 This is a schematic diagram of the operation of queue setting provided by an embodiment of the present application;
[0149] Fig.10 is a schematic diagram of a sign-in operation provided by an embodiment of the present application;
[0150] Fig.11 is a schematic diagram of motion handover provided by an embodiment of the present application;
[0151] Fig.12 It is an interactive flow chart for implementing the motion relay phase in the motion event response method provided in one embodiment of the present application;
[0152] Fig.13This is a schematic diagram of triggering a start motion instruction provided by an embodiment of the present application;
[0153] Fig.14 is a schematic diagram of initiating a movement end instruction provided by an embodiment of the present application;
[0154] Fig.15 is a schematic diagram of the structure of a motion event response system provided by another embodiment of the present application;
[0155] Fig.16 is a schematic diagram of a flow chart of a sports relay based on a near field communication module provided by an embodiment of the present application;
[0156] Fig.17 is a structural diagram of a system for responding to motion events provided by another embodiment of the present application;
[0157] Fig.18 This is a schematic diagram of a flow chart of a sports relay based on server forwarding provided by an embodiment of the present application;
[0158] Fig.19 This is a schematic diagram of the upload operation of the handover token provided in an embodiment of the present application;
[0159] Fig. 20 This is a schematic diagram of the operation of receiving a handover token provided in an embodiment of the present application;
[0160] Fig.21 This is a flowchart of a method for responding to a motion event provided by an embodiment of the present application on a first terminal side;
[0161] Fig. 22 It is a structural block diagram of a motion event response device provided in an embodiment of the present application;
[0162] Fig.23 This is a flow chart of a method for responding to a motion event provided by an embodiment of the present application and implemented by a server;
[0163] Fig.24 It is a structural block diagram of a motion event response device provided in an embodiment of the present application;
[0164] Fig.25 It is a structural block diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0165] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0166] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0167] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0168] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0169] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0170] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0171] The terminals to which the motion event response method provided in the embodiments of the present application can be applied may be mobile phones, tablet computers, wearable devices (such as sports bracelets and smart watches, etc.), augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), and other electronic devices. In particular, the motion event response method can be applied to portable mobile terminals that can record motion data while the user is exercising, such as mobile terminals such as smart phones, smart watches, and sports bracelets. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0172] For example, the above-mentioned terminal can be a station (STAION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a personal digital processing (PDA) device, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system and a next-generation communication system, for example, a mobile terminal in a 5G network or a mobile terminal in a future evolved Public Land Mobile Network (PLMN) network, etc.
[0173] Figure 1 A schematic structural diagram of an electronic device 100 is shown.
[0174] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0175] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0176] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0177] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0178] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0179] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0180] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0181] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0182] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0183] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0184] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0185] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0186] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0187] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0188] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0189] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0190] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0191] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0192] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0193] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0194] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0195] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0196] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a prompt microprocessor that connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information. It should be noted that the GPU can perform abnormal identification on the storage unit associated with the controlled display screen 194 through the response method of the motion event provided in this embodiment. The GPU can transfer the image data to be displayed to the storage unit in the display screen 194 for storage for subsequent display.
[0197] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. The display screen 194 may include a touch panel and other input devices. The display screen 194 may be associated with one or more storage units, which are used to cache image data displayed on the display screen 194.
[0198] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0199] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0200] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0201] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0202] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0203] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0204] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external memory card. Similarly, the response method for motion events in the embodiment of the present application can manage the storage space in the external memory card.
[0205] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor. Similarly, the response method for motion events in the embodiment of the present application can manage the storage space in the internal memory.
[0206] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0207] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0208] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A. In particular, the speaker 170A can be used to output prompt information to notify the user that a baton handover is required or that the relevant baton handover process has been completed.
[0209] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0210] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0211] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0212] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. For example, the electronic device can obtain the user's weight through the pressure sensor 180A. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to a first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0213] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes. In this embodiment, the electronic device can collect the user's motion posture during the movement through the gyro sensor 180B, thereby generating corresponding motion data.
[0214] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0215] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0216] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device, and is applied to applications such as horizontal and vertical screen switching and pedometers. In this embodiment, the electronic device can collect the movement speed of the user during the movement through the gyroscope sensor 180B, thereby generating corresponding movement data.
[0217] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0218] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0219] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0220] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0221] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0222] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0223] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0224] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0225] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0226] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0227] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0228] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.
[0229] Figure 2 It is a software structure block diagram of the electronic device of the embodiment of the present application.
[0230] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the system layer of the Android runtime (Android runtime), and the kernel layer.
[0231] The application layer can include a series of application packages.
[0232] like Figure 2 As shown, the application package may include camera, calendar, map, WLAN, Bluetooth, music, video, short message, mailbox, WeChat, WPS and other applications.
[0233] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0234] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0235] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0236] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0237] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0238] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).
[0239] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0240] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0241] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0242] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0243] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0244] The system layer may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0245] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0246] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0247] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc.
[0248] A 2D graphics engine is a drawing engine for 2D drawings.
[0249] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0250] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.
[0251] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture static images or videos through the camera 193.
[0252] With the popularization of the concept of sports health, more and more users are joining the ranks of sports and fitness. In order to increase the fun and competitiveness of sports, sports competitions can be carried out among users through the development of corresponding sports competitions, and sports goals can be set, and sports results can be recorded to understand whether the current exercise process has reached the preset sports goals. Existing portable electronic devices, such as smart phones, smart watches, and sports bracelets, all contain motion sensors, such as gyroscope sensors and accelerometers. Electronic devices can record the motion data of users during exercise through motion sensors, and then display the current sports results through corresponding sports applications, realizing the visualization of motion data.
[0253] As one of the main forms of daily exercise, relay sports are popular among the public due to their good teamwork and fun. They are not only used in professional sports competitions, but also in team-building activities. Unlike other forms of sports, when recording the sports data of a relay race, since the relay process involves multiple different users, it is often necessary to set up an additional relay device to record the sports data of the entire relay process. For example, Figure 3 FIG. 2 shows a schematic diagram of recording motion data during an existing relay race. Figure 3 As shown, during the relay movement, a relay team may include four users. In order to record the motion data of the relay process, a relay device, such as an electronic baton, an additional smart phone or smart watch, needs to be configured for each relay team. During the user relay process, the relay device can be passed to the next user. For example, after user 1 completes the first section of the movement, the relay device can be handed over to user 2 so that when recording the motion data of user 2, the motion results of user 1 can be inherited, and so on, until the last user (such as user 4) completes the movement. The relay device can record the motion data of all users in the entire relay process, thereby determining the motion results of the user team during the relay race.
[0254] However, the above method requires that each user team prepare an additional relay device for handover. During long-distance sports, since the relay device needs to be in a state of positioning and recording sports data all the time, resource consumption is large, and high requirements are placed on the battery capacity of the relay device, thereby increasing the cost of the relay device. In addition, since the corresponding relay equipment needs to be additionally prepared, the flexibility of the relay race is greatly reduced and the difficulty of carrying out the race is increased, and the relay race cannot be carried out anytime and anywhere.
[0255] In particular, if the relay device is a smart bracelet or a smart watch, the watch needs to be released during the process of transferring the relay device between multiple users, which greatly increases the time of the handover process, thereby reducing the accuracy of the sports data recorded during the relay process and affecting the overall sports performance of the user team.
[0256] It can be seen that in the existing relay sports implementation technology, an additional relay device is required to record the sports data of the relay process, which reduces the flexibility of the relay race and increases the difficulty of carrying out the race. In addition, the handover process may take a long time, affecting the accuracy and authenticity of the sports data.
[0257] Embodiment 1:
[0258] Therefore, in order to solve the problem of the implementation technology of the above-mentioned relay sports, the present application provides a method for responding to sports events, and the execution subject of the method for responding to sports events is specifically applied to an electronic device, and the electronic device is a portable mobile terminal, and the electronic device includes but is not limited to: smart phones, smart watches, sports bracelets, smart glasses and other mobile terminals that can record sports data. It should be noted that the sports event in the method for responding to sports events is specifically a relay sports event, and the relay sports event involves at least two users carrying the above-mentioned electronic devices. Among them, the sports event includes running relay sports, swimming relay sports and other forms of relay sports, which are not limited here.
[0259] For example, Figure 4 FIG. 1 is a schematic diagram showing a structure of a system for responding to a motion event provided by an embodiment of the present application. Figure 4As shown, the response system of the sports event includes at least two terminals, namely terminal 1 and terminal 2, which can be a smart phone or a smart watch. The user can enter the event information about the sports event in terminal 1 or terminal 2, and terminal 1 or terminal 2 can send the event information of other terminal sports events to the corresponding terminal through near field communication connection or other communication connection mode. If the user enters the event information of the sports event in terminal 1, terminal 1 can send the event information corresponding to terminal 2 to terminal 2 through the Bluetooth module. Of course, if there is terminal 3, terminal 1 can also send the event information corresponding to terminal 3 to terminal 3 through the Bluetooth module, so as to realize the transmission of sports data between multiple terminals according to the response method of the sports event provided in the embodiment of the present application, and record the sports data of the user holding the terminal during the relay movement to determine the sports performance of the entire user queue. Among them, the users belonging to the above-mentioned terminal 1 and terminal 2 are in the same user queue. Among them, terminal 1 contains multiple modules, which are respectively a sports event management application 41 for realizing the response method of the sports event of the present embodiment, a near field communication module 42 for transmitting sports data, and a hardware module 43 (including positioning module, clock module, etc.) for recording user data and positioning terminal time and space information. The terminal 1 and the terminal 2 may exchange data via the near field communication module 42 , and the data exchange content may include transmission event information and motion data.
[0260] For example, Figure 5 FIG. 2 shows a schematic diagram of a system for responding to a motion event provided by another embodiment of the present application. Figure 4 Compared with the embodiment shown in the figure, the response system in the embodiment of the present application also includes a server. The user can enter the basic information corresponding to the relay sports event in the server, and then generate event information corresponding to the terminal according to the handover sequence number of the user to which the terminal participating in the relay sports event belongs in the user queue, and send the event information to each terminal in the user queue. The terminal can execute the subsequent handover process according to the event information. The specific handover process is as follows Figure 4 The embodiment shown is consistent and is not limited here. The server includes multiple subsystems, namely a user relationship subsystem 51, a sports event management subsystem 52, and an event information distribution subsystem 53. The functions of the above three subsystems are as follows:
[0261] 1. The user relationship subsystem 51 is used to store registered user information. Registered users can include two types, namely, management users for managing and creating sports events (such as relay races, relay team building activities, etc.) and participating users for participating in sports events. The user relationship subsystem can store the username and user key pair of registered users, and can also be used to store the created user queues and record the users included in each user queue. Among them, the user registration process, user login authentication process and login device authentication process can be implemented by the user relationship subsystem 51. In some implementation scenarios, when transmitting sports data in sports events, it is necessary to determine the transmission method adopted by the user. Therefore, the user relationship subsystem 51 can identify whether the terminal supports near field communication. If it supports, the sports data and handover token are transmitted by near field communication; on the contrary, if the terminal does not support near field communication, the handover token and user data can be transmitted by forwarding through the server.
[0262] 2. The sports event management subsystem 52 is used to manage sports events. When the management user needs to create a sports event, the server responds to the creation operation of the sports event initiated by the management user through the sports event management subsystem 52, and records the basic event information about the sports event input by the user, such as the start time, end time, location, handover area, etc. of the sports event. Among them, the sports event management subsystem 52 can also generate handover tokens for each user queue and the public-private key pair used by each participating user in the sports event.
[0263] 3. The event information distribution subsystem 53 is used to send event information to the terminals of each user participating in the sports event, and receive the sports data uploaded by the terminals during the sports event, and summarize the sports data, so as to calculate the sports performance of each user queue in the handover sports event. It can also record the real-time sports status of each user queue during the sports event (such as determining the current location of the handover token, the number of baton handovers, etc.).
[0264] Taking the example that the response system of a sports event includes a server, the specific implementation process of the response method of the sports event provided by the embodiment of the present application is described. If the response system does not include a server, any terminal can be used as a master control terminal, that is, the action performed by the server can be implemented by the master control terminal. The response method of the sports event can specifically include two stages, namely, the preparation stage before the relay movement, and the sports relay stage during the relay movement. The specific description is as follows:
[0265] Phase 1: Preparation before the relay
[0266] In this embodiment, before the relay race is performed, the setting operation of the sports event and the creation operation of the user queue participating in the relay race can be performed. Therefore, stage 1 can also be divided into four sub-stages, namely, the user registration stage, the sports event creation stage, the user queue creation stage and the user check-in stage.
[0267] Figure 6 The interactive flow chart of the implementation of the preparation phase in the motion event response method provided by an embodiment of the present application is shown. The motion event response method is applied to a motion event response system, and the response system includes: at least two terminals and a server. The specific implementation process is detailed as follows:
[0268] The user registration stage specifically includes two steps S601 and S602:
[0269] In S601, the first terminal sends a registration request to the server, and sends user information to the server.
[0270] In this embodiment, the first terminal may be installed with a client program corresponding to the server, which may be a sports application. In order to record the user's sports data, a corresponding user account needs to be registered. At this time, the user may send a registration request to the server through the sports application in the first terminal.
[0271] In this embodiment, after receiving the user's registration request, the server can create a corresponding user account for the user through the user relationship subsystem. The user can enter relevant user information in the user account, such as setting a user name, user password, age, height, sports preferences, etc. The user relationship subsystem in the server will store the information entered by the user to generate user information for the user account.
[0272] In a possible implementation, if the user has registered a corresponding user account, a login request may be sent to the server, where the login request specifically includes a user name and a user password.
[0273] In S602, the server creates a corresponding user account for the first terminal and configures authentication data for the user account.
[0274] In this embodiment, after receiving the registration request sent by the user and the user information corresponding to the first terminal, the server can create a user account for the user corresponding to the first terminal through the user relationship subsystem and configure an authentication data for the user account. When participating in sports events later, the operation of the first terminal can be legally authenticated through the authentication data. The authentication data can include the unique identity of the user account and the public-private key pair corresponding to the user account.
[0275] In one possible implementation, after generating the user's authentication data, the server can send the authentication data to the first terminal. After receiving the authentication data sent by the server, the first terminal can store the authentication data through a locally installed client program, so that when the first terminal subsequently sends relevant data to the server (such as sending participation instructions or sports data for participating in sports events, etc.), the authentication data can be encrypted to ensure the legitimacy of the relevant data sent.
[0276] It should be noted that the implementation process of the first terminal can be referred to for user creation and user login in other terminals, which will not be described in detail here.
[0277] The motion event creation phase specifically includes two steps: S604 and S605, which are described in detail as follows:
[0278] In S603, the management terminal sends the set reference handover condition to the server in response to the event setting operation initiated by the user.
[0279] In this embodiment, the terminal held by the user who creates the sports competition or relay team-building activity is the management terminal. In some implementation scenarios, the management terminal may also be a terminal participating in the sports event, that is, the first terminal mentioned above, or other terminals except the first terminal.
[0280] In this embodiment, the management user can initiate an event setting operation on the management terminal to create a sports event. When creating the sports event, the management user can input relevant benchmark handover conditions and benchmark information related to the sports event. The benchmark information of the above-mentioned sports event may include the start time of the exercise, the end time of the exercise, the location of the exercise, etc. The above-mentioned benchmark handover conditions may include multiple pre-set handover points, handover times, and the user's current biological sign data. Exemplarily, when performing a relay sports handover, the terminal can obtain the user's biological sign data (such as heart rate, blood oxygen, and blood pressure, etc.), compare the biological sign data with the preset legal sign data, and determine whether the user has the ability to relay the sports to determine whether to perform the sports handover.
[0281] In a possible implementation, the above basic information may also include the number of relay runners required in each user queue, that is, limiting the number of people in each user queue. For example, for a 4*100-meter relay race, the corresponding number of relay runners is 4 people. The above benchmark handover conditions may also include a handover time window, which is used to limit the time range in which user handovers can be carried out, thereby avoiding the occurrence of abnormal handover events.
[0282] For example, Figure 7 FIG. 1 shows a schematic diagram of the operation of creating a motion event provided by an embodiment of the present application. Figure 7 As shown in (a) of FIG. 1 , the management user can enter the sports operation interface by clicking the sports health application installed in the terminal. The sports operation interface includes a sports subpage, and the sports subpage includes a relay race creation control 71 and a relay race participation control 72. If the user needs to create a corresponding relay race, the user can enter the sports event setting interface by clicking the above creation control 71, as shown in FIG. Figure 7 As shown in (b) in the figure. The management user can enter relevant basic information and benchmark handover conditions in the setting interface of the sports event, such as setting multiple candidate handover areas where the sports event can be handed over. Among them, when setting the candidate handover areas, the map application of the third-party application can be called through the API interface to set the candidate handover areas through the map application. After the management user completes the setting, he can click the setting completion control 73, and the sports application of the management terminal can encapsulate the relevant data recorded in the setting interface and feed it back to the server.
[0283] In S604, the server creates a sports event in response to the event setting operation initiated by the management terminal, and stores the reference handover condition input in the event setting operation.
[0284] In this embodiment, the sports event management subsystem in the server can create a corresponding sports event according to the event setting operation of the management terminal, and store the benchmark handover condition set this time in association with the sports event. The benchmark handover condition includes multiple candidate handover areas. When setting, the management user can associate a corresponding handover sequence number with each candidate handover area, so that the corresponding handover area can be determined later according to the handover sequence number of the participating user in the user queue.
[0285] In the embodiment of the present application, the server can create corresponding sports events according to the user's setting operations, which can realize flexible creation of sports events, improve the efficiency of creating sports events, and reduce the difficulty of carrying out sports events.
[0286] The user queue creation phase includes multiple steps from S605 to S614, which are described in detail as follows:
[0287] In S605, the first terminal sends an event query instruction to the server.
[0288] In S606, the server feeds back an existing event list to the first terminal; the existing event list includes the created sports events.
[0289] In this embodiment, when a user needs to participate in a sports event, he can send an event query instruction to the server to determine the existing sports events that have been created, that is, the relay race being held. Figure 7As shown in (a), the sports subpage includes a control 72 for participating in a relay race. When the user clicks the control 72, the first terminal held by the user can send an event query instruction to the server so that the server can feedback the sports events that are currently being carried out.
[0290] In a possible implementation, the event query instruction may carry the user information of the user to whom the first terminal belongs, and the server may determine the sports events that the user can participate in based on the user authority corresponding to the user information, and generate the above-mentioned existing event list based on the sports events that can be participated in, and feed it back to the first terminal. For example, the user information includes the corporate logo of the user, and the server may filter out sports events carrying the corporate logo from all created sports events, and generate a corresponding existing event list and feed it back to the first terminal, so that the user can quickly join the relay race held by his company, thereby improving the efficiency of the user in selecting sports events and avoiding the user from participating in sports events for which he does not have the authority.
[0291] In this embodiment, after receiving the event query instruction sent by the first terminal, the server may send a corresponding existing event list to the first terminal, so that the first terminal can select a relay race to participate in from the existing event list.
[0292] For example, Figure 8 See Figure 8 As shown in (a), after the server sends the existing event list to the first terminal, that is, after the user clicks the above-mentioned control 72, the first terminal can generate a selection interface for the corresponding existing event list in the sports application. Each created sports event includes the name of the sports event, the user identifier of the creator, the start time of the sports event, and the number of team members required. The user can select the sports event to be added from multiple created sports events, and of course, can also create a new sports event by clicking the control 81 for creating a sports event.
[0293] In S607, the first terminal sends a sports event participation instruction to the server.
[0294] In S608, the server feeds back a queue list of motion events to the first terminal.
[0295] In this embodiment, the user can select the desired sports event from the existing event list. Figure 8As shown in (a), each existing sports event in the existing event list displayed by the first terminal may include a participation control. For example, the display area of the sports event "Shenzhen Marathon Relay Race" includes a "Participate" control 81. If the user needs to participate in the sports event, the user can click the above control 81. After receiving the user's click operation, the first terminal will generate a participation instruction carrying the event identifier of the sports event and send it to the server through the sports application installed in the first terminal.
[0296] In this embodiment, when the server receives the participation instruction sent by the first terminal, it can extract the event identifier carried by the first terminal, determine the sports event that the user of the first terminal needs to participate in, and determine the existing queues that have been created in the sports event, and generate a corresponding queue list based on all the existing queues, and feed the queue list back to the first terminal. After receiving the above queue list, the first terminal can display it, such as Figure 8 As shown in (b) in FIG. 1 , the queue list includes existing queues that are full and existing queues that are not full, wherein the display priority of the existing queues that are not full is higher than the display priority of the existing queues that are full.
[0297] In a possible implementation, after S608, it also includes: the user can click on the join control 82 corresponding to any existing queue to apply to join the corresponding existing queue. In this case, the first terminal will send a queue joining request to the server. If joining the user queue does not require the creation user of the user queue to be authenticated, the server can add the user ID of the first terminal to the existing queue and update the number of users in the existing queue; if joining the user queue requires the creation user of the user queue (such as the team leader) to be authenticated, the server can send a joining confirmation request to the terminal of the creation user. If the server receives the consent to join instruction fed back by the terminal of the creation user, the user of the first terminal is added to the above-mentioned existing queue and the number of users in the existing queue is updated; on the contrary, if the rejection to join instruction is received from the terminal of the creation user, a joining failure message is fed back to the first terminal to prompt the first terminal to reselect the user queue to be joined.
[0298] In a possible implementation manner, after S608, the following steps are further included:
[0299] In S609, the first terminal creates a user queue for the sports event in response to the queue creation instruction of the sports event, wherein the first user of the first terminal is synchronously added to the user queue.
[0300] In S610, the server adds the user queue created by the first terminal to the queue list corresponding to the sports event in response to the queue creation instruction of the first terminal.
[0301] In this embodiment, if the user needs to create a user queue by himself, he can send a queue creation instruction to the server through the sports application in the first terminal. Figure 8 As shown in (b), the participation interface includes a creation control 83. If the first terminal detects that the user clicks the above creation control 83, it will send a queue creation instruction to the server. After receiving the above queue creation instruction, the server will create a user queue for the sports event for the user of the first terminal and add the user queue to the above queue list.
[0302] In a possible implementation, after receiving the queue creation instruction from the user, the first terminal may generate a queue setting interface. For example, Fig. 9 FIG. 1 shows a schematic diagram of the operation of queue setting provided by an embodiment of the present application. Fig. 9 As shown in (a) in the figure, the setting interface can configure the corresponding queue name, member joining conditions, etc. for the user queue. The user can make relevant settings for the user queue, and after completing the settings, can click the above completion control 91, and the first terminal will encapsulate the settings of the user queue and upload it to the server. The server will update the queue information of the user queue in the queue list according to the user's settings.
[0303] In S611, the first terminal receives an adding request initiated by the first user, and sends the adding request to the server.
[0304] In S612, in response to the adding request sent by the first terminal, the server sends the adding information of the user queue where the first user is located to the terminal of the associated user of the first user, so as to request the associated user to be added to the above user queue.
[0305] In this embodiment, in order to improve the convenience of adding members to the user queue, the first terminal can add members to the user queue by sharing or pulling related users from the friend list. Fig. 9 In (a), the setting interface also includes a queue sharing control 92. The user can click the control 92, and the first terminal will generate a friend list, such as Fig. 9 As shown in (b) in FIG. 1 . The first user operating the first terminal can select the user to be added, i.e., the associated user, from the friend list, and click the above-mentioned add control 93. The first terminal will generate an add request and send it to the server. The add request carries the user ID of the associated user to be added.
[0306] In this embodiment, after receiving the adding request sent by the first terminal, the server can determine the associated user that the first user needs to add to the user queue according to the user identifier carried by the first terminal, and send the adding request to the terminal of the associated user. If the associated user agrees to be added to the user queue, the server can feedback the instruction of agreeing to join to the server, and the server will add the associated user to the user queue and update the members included in the user queue. It can also feedback the prompt information of agreeing to add to the first terminal to notify the first user; on the contrary, if the associated user refuses to join the user queue, the server can feedback the instruction of refusing to join to the server, and the server can send the prompt information of refusing to join to the first terminal to notify the first user at the same time.
[0307] In an embodiment of the present application, users can independently create user queues, thereby improving the flexibility of queue addition and management.
[0308] In S613, the server determines the handover sequence number of the first user in the user queue, and generates first authentication data corresponding to the first user.
[0309] In this embodiment, the first user can participate in the sports event by joining an existing queue or creating a new queue. After determining the user queue that the first user joins, the server can determine a handover sequence number for the first user in the user queue. The handover sequence number can be selected by the first user when joining, or it can be determined according to the order of joining the user queue. Of course, it can also be adjusted after joining the user queue. The specific method of determining the handover sequence number can be determined according to actual conditions and is not limited here.
[0310] In this embodiment, the server may configure authentication data for the first user during the sports event, and the authentication data may include a public-private key pair used during the sports event and a user identifier of the first user.
[0311] In S614, when the server detects that the actual number of users in the user queue is equal to the rated number of users in the sports event queue, it generates a handover token for the user queue.
[0312] In this embodiment, since the number of users who have joined the user queue has reached the specified queue quota, it means that the user queue has been established. At this time, a handover token used in the sports event relay process can be generated for the user queue.
[0313] The user sign-in specifically includes S615 to S616, which are described as follows:
[0314] In S615, the first terminal sends a sign-in signaling to the server in response to the sign-in operation of the user.
[0315] In S616, in response to the sign-in signaling sent by the first terminal, the server generates a handover trigger condition for the first terminal according to the handover sequence number and the candidate handover area of the first terminal, and sends event information carrying the handover trigger condition to the first terminal.
[0316] In this embodiment, when the game time and the game location of the sports event are reached, the user can sign in for the sports event through the sports application of the first terminal. Fig.10 FIG. 1 is a schematic diagram showing a check-in operation provided by an embodiment of the present application. Fig.10 As shown in (a) of FIG. 1 , after a user participates in a sports event and joins the corresponding user queue, the sports subpage includes an operation control 101 corresponding to the sports event. When the user needs to sign in for the event and perform subsequent operations, the user can click the above control 101 to enter the operation interface of the sports event, such as Fig.10 In the operation interface, if the user has not signed in, a corresponding sign-in control 102 and a control 103 for exiting the activity are included. The user can initiate a sign-in operation by clicking the control 102. Of course, if the user is not participating in the sports event, the user can click the control 103 to exit the relay.
[0317] In this embodiment, after detecting that the user has initiated a sign-in operation, the first terminal can generate a sign-in signal and send it to the server to notify the server that the first user has arrived at the event site and can start the sports relay at any time. The sign-in signal can carry the user ID of the first user, which can be encrypted by the private key of the sports event to generate corresponding authentication data to authenticate the legitimacy of the identity of the first user.
[0318] In this embodiment, after receiving the check-in signaling sent by the user, the server can feedback the corresponding event information to the first terminal, so that the user can perform the handover operation according to the handover triggering condition in the event information during the subsequent competition. Among them, the handover triggering condition is the handover area in which the first user is recorded, and the handover area is determined from multiple candidate handover areas according to the handover sequence number of the first user and the area corresponding to the handover sequence number. It should be noted that if the first user is the first handover user (that is, the handover sequence number is 1) or the first user is the last handover user (that is, the handover sequence number is N, N is the total number of users in the user queue), the number of handover areas determined above is 1; except for the first handover user and the last handover user, the handover areas for users with other sequence numbers are two, namely the baton taking area and the baton handover area.
[0319] It should be noted that the process of other terminals signing in, creating teams, and participating in sports events can also refer to the description of the first terminal above, which will not be repeated here.
[0320] Phase 2: The relay phase of the relay
[0321] In this embodiment, when performing a relay movement, the server will send a handover token to the first handover user in the user queue when the first handover user starts the movement. In the subsequent handover process, users need to transfer not only the movement data but also the handover token of the user queue to ensure the legitimacy of the movement data collected this time. Fig.11 FIG. 1 is a schematic diagram of a motion handover provided by an embodiment of the present application. Fig.11 As shown, a user queue of the relay movement includes four users, namely user 1, user 2, user 3 and user 4. User 1 is the first user to take over, and the terminal he holds is terminal 1. Correspondingly, user 2 holds terminal 2, user 3 holds terminal 3, and user 4 holds terminal 4.
[0322] The first terminal mentioned above can be any terminal from terminal 1 to terminal 4; if the first terminal is terminal 1, the second terminal mentioned above is terminal 2. Since terminal 1 is the first terminal of the handover user, terminal 1 does not need to take over, and there is no corresponding third terminal; if the first terminal is terminal 2, the second terminal mentioned above is terminal 3, and the third terminal is terminal 1; if the first terminal is terminal 4, the third terminal mentioned above is terminal 3, since the first terminal is the terminal of the last handover user, terminal 4 does not need to take over, and there is no corresponding second terminal. The subsequent process is explained by taking the handover process of terminals 1 to 4 as an example.
[0323] Among them, the above-mentioned first state is the baton handover state, that is, the motion data and the handover token need to be passed to the terminal of the next handover sequence number; the above-mentioned second state is the baton receiving state, that is, the motion data and the handover token sent by the terminal of the previous handover sequence number need to be received.
[0324] Fig.12 The following is an interactive flow chart of the implementation of the motion relay phase in the motion event response method provided in an embodiment of the present application. The specific implementation process is described in detail as follows:
[0325] In S1201, terminal 1 responds to the start motion instruction, obtains the handover token, and starts recording motion data through the motion sensor.
[0326] In this embodiment, when user 1 starts the relay, terminal 1 will receive a start movement instruction. The start movement instruction can be initiated by user 1 clicking a related control on the operation interface of terminal 1, or it can be issued by the server, which can be determined according to actual conditions.
[0327] For example, Fig.13FIG. 1 shows a schematic diagram of triggering a start motion instruction provided by an embodiment of the present application. Fig.10 (b) and see Fig.13 As shown, after user 1 completes the sign-in, since the handover sequence number of user 1 is 1, after user 1 clicks the sign-in control 102, terminal 1 will enter the operation interface for starting exercise, such as Fig.13 The operation interface includes a control 131 for starting the movement. When the user 1 starts the relay movement, he can click the control 131 to initiate a start instruction.
[0328] In a possible implementation, the above-mentioned start exercise instruction can also be initiated by the terminal of the administrator of the handover exercise. For example, the first handover users of multiple user queues are at the same starting line. In this case, the administrator can notify all users to start the exercise by clicking the start exercise button of the terminal he holds. In this case, the administrator's terminal will send the start exercise instruction about the exercise event to the server, and the server will uniformly forward the above-mentioned start exercise instruction to the terminals of the first handover users of all user queues, so that each terminal starts recording exercise data at the same time, including the above-mentioned terminal 1.
[0329] In this embodiment, when the terminal 1 starts exercising, it can obtain the corresponding handover token from the server. Of course, the handover token can be sent by the server when the terminal 1 signs in. The terminal 1 is equipped with a motion sensor, which can record the motion data of the user 1 during the relay movement, such as the time of starting the movement and the real-time movement speed.
[0330] In S1202 , when terminal 1 detects that it has reached the handover end area corresponding to handover sequence number 1 (ie, handover area 1 ), it generates handover signaling 1 based on currently recorded motion data 1 and the handover token, and sends the handover signaling 1 to terminal 2 .
[0331] In this embodiment, terminal 1 is equipped with a positioning module. If the current position of terminal 1 reaches the handover area 1 corresponding to the handover sequence number 1, the handover state of terminal 1 is set to the first state (i.e., the baton handover state). Terminal 1 will encapsulate the recorded motion data 1 and the handover token of the user queue to which it belongs, and obtain the handover signaling 1 (if the first terminal is terminal 1, the first handover signaling is the handover signaling 1 mentioned above), and send the handover signaling 1 to the terminal with the next handover sequence number, i.e., terminal 2, to realize the motion relay between users.
[0332] In a possible implementation, the handover signaling can be encrypted by the private key 1 corresponding to the terminal 1, wherein the first terminal is the terminal 1, and the private key 1 is the first private key of the first terminal. Optionally, the public keys stored in the terminals 1 to 4 can be the same. In this case, the public key can decrypt the data encrypted by the private keys of each terminal in the same user queue, thereby ensuring that encrypted communication can be achieved between the terminals in the same user queue. Optionally, the public keys stored in the same user queue can be different, and the public keys stored in each terminal are specifically used to decrypt the data sent by the terminal of the previous handover sequence number. For example, the terminal with handover sequence number 2 can store the public key corresponding to the terminal with handover sequence number 1, so that after the terminal with handover sequence number 1 encrypts the data by the private key, the terminal with handover sequence number 2 can decrypt the data encrypted by the terminal with handover sequence number 1 by its corresponding public key after receiving the encrypted data, and so on.
[0333] In S1203 , when terminal 2 detects that it has arrived at the handover start area corresponding to handover sequence number 2 (ie, handover area 1 ), it receives handover signaling 1 sent by terminal 1 .
[0334] In this embodiment, the process of terminal 2 waiting to receive handover signaling 1 is synchronously executed with the process of terminal 1 sending handover signaling 1. The event information received by terminal 2 contains two handover areas, namely handover area 1 and handover area 2. When terminal 2 is in handover area 1, the handover state of terminal 2 is set to the second state (i.e., the baton taking state). When terminal 2 is in the baton taking state, it monitors whether handover signaling sent by other terminals is received, such as handover signaling 1 sent by terminal 1.
[0335] In one possible implementation, when determining whether the terminal 2 is in the second state, in addition to determining whether the location of the terminal 2 is within the handover area 1, it is also possible to determine whether the current time is within the handover time window corresponding to the handover area 1. If the terminal 2 is in the handover area 1 and the current time is within the handover time window corresponding to the handover area 1, then the terminal 2 is identified as being in the second state.
[0336] In this embodiment, after receiving the handover signaling 1, terminal 2 will perform a legal check on the handover signaling 1. If it passes the legal check, it means that the handover signaling 1 is a legal handover signaling sent by the user queue where terminal 2 is located. In this case, terminal 2 will execute the S1204 operation; on the contrary, if the handover signaling 1 does not pass the legal check, the handover signaling is discarded and the terminal 1 continues to wait for sending a legal handover signaling.
[0337] In a possible implementation, the event information sent by the server to the terminal 2 includes the user identifier of the last handover sequence number, and the handover signaling 1 sent by the terminal 1 may also carry the user identifier of the terminal 1. In this case, the above-mentioned process of legal verification may be: judging whether the user identifier carried by the handover signaling 1 is consistent with the user identifier of the last handover sequence number sent by the server, if the two are consistent, then the handover signaling 1 is identified as a legal handover signaling; otherwise, if the two are inconsistent, then the handover signaling 1 is identified as an illegal handover signaling, the handover signaling 1 is discarded, and the handover signaling sent by other terminals is continued to wait for.
[0338] In a possible implementation, when generating handover signaling 1, terminal 1 may encrypt data using private key 1 of terminal 1. In this case, terminal 2 may decrypt the handover signaling 1 using the public key sent by the server. If the public key can decrypt the handover signaling 1 and obtain the corresponding handover token, the handover signaling 1 is identified as legal; otherwise, if the public key cannot decrypt the handover signaling 1, the handover signaling 1 is identified as illegal.
[0339] In S1204 , when terminal 2 identifies handover signaling 1 as a legitimate handover signaling, based on motion data 1 carried in handover signaling 1 , motion data 2 of terminal 2 during the relay process is recorded.
[0340] In this embodiment, when terminal 2 recognizes that handover signaling 1 is legal, it can obtain the handover token of the user queue where terminal 2 is located. After obtaining the handover token, terminal 2 has the authority to record motion data. Since the motion event is a relay motion, it is necessary to record the motion data of the handover sequence number based on the motion data of the previous handover sequence number. For example, handover signaling 1 carries the running distance and running time of terminal 1. When terminal 2 records the running distance and running time, it continues to record the distance and time based on the running distance and running time fed back by terminal 1 to determine the motion data of the entire user queue during the handover motion.
[0341] In S1205 , when terminal 2 detects that it has reached the handover end area corresponding to handover sequence number 2 (ie, handover area 2 ), it generates handover signaling 2 based on currently recorded motion data 2 and the handover token, and sends handover signaling 1 to terminal 3 .
[0342] Since the process of terminal 2 handing over the baton is completely consistent with that of terminal 1, the specific description can be found in the relevant description of S1202, which will not be repeated here.
[0343] In S1206 , when terminal 3 detects that it has arrived at the handover start area corresponding to handover sequence number 3 (ie, handover area 2 ), it receives handover signaling 2 sent by terminal 2 .
[0344] Since the process of terminal 3 taking over the baton is completely consistent with the process of terminal 2 taking over the baton, the specific description can refer to the relevant description of S1203, which will not be repeated here.
[0345] In S1207 , when terminal 3 identifies handover signaling 2 as a legitimate handover signaling, based on motion data 2 carried in handover signaling 2 , motion data 3 of terminal 3 during the relay process is recorded.
[0346] Since the process of recording the motion data of terminal 3 is completely consistent with the process of recording the motion data of terminal 2, the specific description can refer to the relevant description of S1204, which will not be repeated here.
[0347] In S1208 , when terminal 3 detects that it has reached the handover end area corresponding to handover sequence number 3 (ie, handover area 3 ), it generates handover signaling 3 based on currently recorded motion data 3 and the handover token, and sends handover signaling 3 to terminal 4 .
[0348] Since the process of terminal 3 handing over the baton is completely consistent with that of terminal 1 , the specific description can refer to the relevant description of S1202 , which will not be repeated here.
[0349] In S1209 , when terminal 4 detects that it has arrived at the handover start area corresponding to handover sequence number 4 (ie, handover area 3 ), it receives handover signaling 3 sent by terminal 3 .
[0350] Since the process of terminal 4 taking over the baton is completely consistent with the process of terminal 2 taking over the baton, the specific description can refer to the relevant description of S1203, which will not be repeated here.
[0351] In S1210 , when terminal 4 identifies that handover signaling 3 is a legitimate handover signaling, based on motion data 3 carried in handover signaling 3 , motion data 4 of terminal 4 during the relay process is recorded.
[0352] Since the process of recording the motion data of terminal 4 is completely consistent with the process of recording the motion data of terminal 2, the specific description can refer to the relevant description of S1204, which will not be repeated here.
[0353] In S1211, when the terminal 4 detects that it has reached the handover end area (ie, the handover area 4), in response to the movement end instruction, it generates movement result information of the movement event and sends the movement result information to the server.
[0354] In this embodiment, when the terminal 4 arrives at the handover area 4, it means that the terminal 4 has reached the end of the movement. In this case, the terminal 4 will receive a movement end instruction. At this time, the recorded movement data 4 will be encapsulated to generate the movement result information of the user queue in the movement event, and the movement result information will be uploaded to the server.
[0355] In a possible implementation, when uploading the sports result information to the server, the terminal 4 can also release the handover token, which means that the user queue has completed the game and there is no need to continue recording the corresponding sports data. The above sports result data can include sports data 1, sports data 2, sports data 3 and sports data 4 to determine the sports conditions of different users during the relay process. When it is necessary to generate a sports data chart for the members of the user queue later, the sports performance of each user can be determined based on the sports data of the above multiple users.
[0356] For example, Fig.14 FIG. 1 is a schematic diagram showing a motion end instruction provided by an embodiment of the present application. Fig.14 As shown, when the terminal of the last handover user reaches the designated handover area 4, i.e., the end point of the relay, an end-of-motion control 141 will be displayed in the operation interface of the terminal. When the user reaches the terminal, he can click the above-mentioned end-of-motion control 141, and the terminal 4 will execute the operation S1211.
[0357] In a possible implementation, the management user of the sports event can also click the sports end control corresponding to the user queue through the local terminal to generate a sports end instruction and send it to the server. After receiving the sports end instruction sent by the management user's terminal, the server will forward the instruction to the terminal 4, and when the terminal 4 receives the sports end instruction, it will perform the above-mentioned S1211 operation.
[0358] As can be seen from the above, a response method for a sports event provided by an embodiment of the present application can be that before the sports event of the relay race is carried out, the server can send the event information carrying the handover contact condition to multiple different terminals in the same user queue, such as the first terminal. After the first terminal receives the event information, when the handover contact condition carried by it is met, the corresponding handover process can be executed according to the handover state of the first terminal, so as to pass the motion data corresponding to the sports event to other terminals, so as to achieve the purpose of passing the motion data between multiple terminals, without preparing additional handover objects to record the motion data of the relay race process. Compared with the existing management technology of sports events, when recording the sports event of the relay type, the embodiment of the present application can send the event information carrying the handover contact condition to multiple terminals through the server, and multiple terminals can pass the motion data of the sports event when detecting that the handover contact condition is met, so as to achieve the purpose of recording the motion data of the relay type, without preparing additional handover objects, reducing the difficulty of realizing the relay sports competition and the required realization cost, and also improving the flexibility of the relay type sports event.
[0359] Embodiment 2:
[0360] Compared with the first embodiment, the terminal in the embodiment of the present application is equipped with a near field communication module, which includes: a near field wireless communication (NFC) module, a Bluetooth module, and a low-power Bluetooth module. During the relay movement stage, the terminal can transmit movement data and handover tokens through the near field communication module.
[0361] For example, Fig.15 FIG. 2 shows a schematic diagram of a system for responding to a motion event provided by another embodiment of the present application. Fig.15 As shown, the sports event response system includes at least two terminals and a server. In this embodiment, the number of terminals is 3, namely terminal 1 to terminal 3. Specifically, the implementation process of the sports preparation stage can refer to the relevant description of embodiment 1, which will not be repeated here.
[0362] During the motion relay phase, terminal 1 to terminal 3 may transmit handover signaling via the near field communication module. Fig.16 FIG. 1 shows a schematic diagram of a process flow of a sports relay based on a near field communication module provided by an embodiment of the present application. Fig.16 As shown, the process of the sports relay is described in detail as follows:
[0363] In S1601, terminal 1 responds to the start motion instruction, obtains the handover token, and starts recording motion data through the motion sensor.
[0364] Since the implementation process of S1601 is exactly the same as the implementation process of S1201 in the first embodiment, the specific description can refer to the relevant description of S1201, which will not be repeated here.
[0365] In S1602, when terminal 1 detects that it has reached the handover end area corresponding to handover sequence number 1 (i.e., handover area 1), terminal 1 generates handover signaling 1 based on the currently recorded motion data 1 and the handover token; terminal 1 divides the handover signaling 1 into at least one data packet 1, and sends at least one data packet 1 through the near field communication module.
[0366] In this embodiment, the terminal 1 is equipped with a near field communication module. When generating the handover signaling 1, the terminal 1 can determine whether it needs to be split into multiple data packets according to the data volume of the handover signaling 1; if the data volume of the handover signaling 1 is greater than the maximum data volume of the data packet, the handover signaling 1 can be split into two or more data packets 1; otherwise, the handover signaling 1 can be encapsulated in one data packet 1. Optionally, when generating the data packet 1, the terminal 1 can encrypt the data packet 1 using the private key 1 sent by the server.
[0367] In this embodiment, when the terminal 1 arrives at the handover area 1, it can broadcast the at least one data packet 1 generated above through the near field communication module, so that the terminal 2 in the handover area 1 at the same time can receive the data packet 1 through the near field communication module.
[0368] In S1603, when terminal 2 detects that it has arrived at the handover start area corresponding to handover sequence number 2 (ie, handover area 1), terminal 2 monitors broadcast data through the near field communication module.
[0369] In this embodiment, when terminal 2 arrives at the preset handover area 1, for example, the positioning module detects that the current position is in the preset boundary area 1 and the current time is in the handover time window corresponding to the handover area 1. At this time, terminal 2 will start the near field communication module, listen to the broadcast data in the current scene, and detect whether the handover signaling 1 sent by terminal 1 is received.
[0370] In S1604 , during the process of monitoring broadcast data, terminal 2 receives at least one data packet 1 sent by terminal 1 through the near field communication module, and generates handover signaling 1 through the at least one data packet 1 .
[0371] In this embodiment, the terminal 2 can monitor the broadcast data in the location area through the near field communication module, and the terminal 1 can send the above-mentioned at least one data packet 1 to the terminal 2 by touching the terminal 2, and the terminal 2 can receive the at least one data packet 1 sent when touching through the near field communication module. When receiving the at least one data packet 1, the terminal 2 can parse the data packet 1 to restore the above-mentioned handover signaling 1.
[0372] In one possible implementation, if data packet 1 is generated based on handover signaling 1 and encrypted using private key 1 of terminal 1, terminal 2 may also decrypt data packet 1 using a public key when parsing handover signaling 1 to obtain the handover signaling 1 described above.
[0373] In one possible manner, after parsing the handover signaling 1, terminal 2 can extract the handover token it carries, and send notification information carrying the handover token of its user queue to the server to notify the server that terminal 2 starts moving to record movement data.
[0374] In S1605, if terminal 2 detects that the handover signaling 1 is legal, terminal 2 sends a confirmation signaling 1 to terminal 1 through the near field communication module.
[0375] In this embodiment, after obtaining the handover signaling 1 through parsing, the terminal 2 may perform a legal verification on it. The specific legal verification process may refer to the relevant description of S1203 in the first embodiment, which will not be described in detail here.
[0376] In this embodiment, terminal 2 can send confirmation signaling 1 to terminal 1 through the near field communication module to notify terminal 1 that terminal 2 has successfully received motion data 1 and the handover token. The confirmation signaling 1 may carry the authentication data of terminal 2, and the authentication data may include the user identification of terminal 2, so that terminal 1 can determine whether the confirmation signaling 1 is legal by confirming whether the user identification in the confirmation signaling 1 is consistent with the user identification of the next handover sequence number sent by the server to terminal 1. Of course, the authentication data can also be any data encrypted by private key 2. If terminal 1 can decrypt the data by the corresponding public key, the confirmation signaling 1 is considered to be legal.
[0377] In S1606, when receiving the confirmation signaling 1 sent by the terminal 2, the terminal 1 determines whether the authentication data carried in the confirmation signaling 1 is legal.
[0378] In S1607, if the terminal 1 detects that the authentication data in the confirmation signaling 1 is legal, the terminal 1 stops sending at least one data packet 1.
[0379] In this embodiment, the terminal 1 can perform a legal verification on the authentication data in the confirmation signaling 1. For example, when the server sends the event information, it will include the user identifier of the next handover sequence number. If the user identifier in the authentication data is consistent with the user identifier of the next handover sequence number, it means that the authentication data is legal, and stops sending at least one data packet 1, indicating that this sports relay has been completed.
[0380] In S1608 , terminal 2 records motion data 2 of terminal 2 during the relay process based on motion data 1 carried in handover signaling 1 .
[0381] Since the implementation process of S1608 is exactly the same as the implementation process of S1204 in the first embodiment, the specific description can refer to the relevant description of S1204, which will not be repeated here.
[0382] In S1609, when terminal 2 detects that it has reached the handover end area corresponding to handover sequence number 2 (i.e., handover area 2), terminal 2 generates handover signaling 2 based on the currently recorded motion data 2 and the handover token; terminal 2 divides the handover signaling 2 into at least one data packet 2, and sends at least one data packet 2 through the near field communication module.
[0383] In S1610, when terminal 3 detects that it has arrived at the handover start area corresponding to handover sequence number 3 (ie, handover area 2), terminal 3 monitors broadcast data through the near field communication module.
[0384] In S1611 , during the process of monitoring broadcast data, terminal 3 receives at least one data packet 2 sent by terminal 2 through the near field communication module, and generates handover signaling 2 through the at least one data packet 2 .
[0385] In S1612, if terminal 3 detects that handover signaling 2 is legal, terminal 3 sends confirmation signaling 2 to terminal 2 via the near field communication module.
[0386] In S1613, when receiving the confirmation signaling 2 sent by the terminal 3, the terminal 2 determines whether the authentication data carried in the confirmation signaling 2 is legal.
[0387] In S1614, if the terminal 2 detects that the authentication data in the confirmation signaling 2 is legal, it stops sending at least one data packet 2.
[0388] In S1615 , terminal 3 records motion data 3 of terminal 3 during the relay process based on motion data 2 carried in handover signaling 2 .
[0389] Since the implementation process of S1609 to S1615 is exactly the same as the implementation process of S1602 to S1608, the specific description can refer to the relevant description of S1602 to S1608, which will not be repeated here.
[0390] In S1616, when the terminal 3 detects that it has reached the handover end area (ie, the handover area 3), in response to the movement end instruction, it generates movement result information of the movement event and sends the movement result information to the server.
[0391] Since the implementation process of S1616 is exactly the same as that of S1211 in the first embodiment, for a specific description, please refer to the relevant description of S1211, which will not be repeated here.
[0392] In an embodiment of the present application, the terminal transmits motion data and handover tokens through a near-field communication module, which can improve the efficiency of data transmission. The near-field communication module requires that the two terminals be close to each other to implement the data handover process, which is similar to a user's baton handover. While maintaining the user's handover habits, there is no need to prepare other additional handover equipment, thereby improving the smoothness of the handover process and the flexibility of the relay movement.
[0393] Embodiment three:
[0394] Compared with the second embodiment, when the motion data and the handover token are transmitted between the terminals in the embodiment of the present application, there is no need to use a near field communication module, but the motion data and the handover token can be forwarded through the server.
[0395] For example, Fig.17 FIG. 2 shows a schematic diagram of a system for responding to a motion event provided by another embodiment of the present application. Fig.17 As shown, the sports event response system includes at least two terminals and a server. In this embodiment, the number of terminals is 3, namely terminal 1 to terminal 3. Specifically, the implementation process of the sports preparation stage can refer to the relevant description of embodiment 1, which will not be repeated here.
[0396] During the motion relay phase, the handover signaling between terminals 1 to 3 can be forwarded through the server. Fig.18 FIG. 1 shows a schematic diagram of a flow chart of a sports relay based on server forwarding provided by an embodiment of the present application. Fig.18 As shown, the process of the sports relay is described in detail as follows:
[0397] In S1801, terminal 1 responds to the start motion instruction, obtains the handover token, and starts recording motion data through the motion sensor.
[0398] Since the implementation process of S1801 is exactly the same as the implementation process of S1201 in the first embodiment, the specific description can refer to the relevant description of S1201, which will not be repeated here.
[0399] In S1802, when terminal 1 detects that it has reached the handover end area corresponding to handover sequence number 1 (ie, handover area 1), it generates handover signaling 1 based on currently recorded motion data 1 and the handover token.
[0400] In this embodiment, when the terminal 1 arrives at the handover area 1, the handover status of the handover token in the operation interface of the terminal 1 can be changed to a handover-enabled status. Fig.19 FIG. 1 shows a schematic diagram of an upload operation of a handover token provided in an embodiment of the present application. Fig.19 As shown in (a), when the terminal 1 reaches the preset handover area 1, its corresponding handover token can be changed to a handover-enabled state, that is, the control 191 displaying "handover" is in a clickable state. When the user clicks the above-mentioned control 191, the terminal 1 will generate a handover signaling 1 according to the movement number 1 and the handover token.
[0401] In one possible implementation, in addition to the user clicking on the handover control 191, when it is detected that the time when the terminal 1 arrives at the handover end area is greater than the preset stay time, the handover signaling 1 can be automatically generated and sent to the server, that is, the handover signaling 1 can be automatically generated and uploaded without the user manually clicking, thereby reducing the user's operation.
[0402] In S1803, terminal 1 sends handover signaling 1 to the server through the sports application.
[0403] In this embodiment, terminal 1 can establish a communication connection with the server through the mobile communication network and send the handover signaling 1 to the server. After the server receives the handover signaling 1, the handover state of the handover token in the operation interface of terminal 1 will change to the handed over state 192, such as Fig.19 As shown in (b) in .
[0404] In S1804, the server changes the status flag of the handover token of the user queue where terminal 1 is located to a collectible status.
[0405] In this embodiment, since terminal 1 has sent handover signaling 1 to the server, indicating that the local handover token has been released, the server needs the terminal with the next handover sequence number to collect the handover token, so it changes its status to a collectible status.
[0406] In S1805, when the terminal 2 reaches the preset handover start area (ie, the handover area 1) and detects that the status mark of the handover token is changed to the available state, the terminal 2 sends a token acquisition request to the server.
[0407] In this embodiment, Fig. 20 FIG. 1 shows a schematic diagram of the receiving operation of the handover token provided in an embodiment of the present application. Fig. 20 As shown in (a), when terminal 2 reaches the handover start area (i.e., handover area 1) and terminal 1 has uploaded handover signaling 1, the handover status of the handover token in the operation interface will be changed to a receivable state, such as control 201. At this time, when the user clicks the above control 201, terminal 2 will send a token acquisition request to the server. The token acquisition request may carry the authentication data of terminal 2. The authentication data may be any data encrypted by the private key 2 corresponding to terminal 2, and the encrypted data may be the user ID of the user to which terminal 2 belongs.
[0408] In S1806, the server receives a token acquisition request, and when the authentication data in the token acquisition request is legal authentication data, the server sends a handover signaling 1 to the terminal 2, and changes the handover state of the handover token to an unavailable state.
[0409] In this embodiment, after receiving the token acquisition request sent by terminal 2, the server will perform a legal verification on the total authentication data of the token acquisition request. The legal verification process can be: decrypt the token acquisition request through the user queue where terminal 2 is located, and extract the user identifier it carries. If the user identifier of the token acquisition request is consistent with the user identifier corresponding to the next handover sequence number, the authentication data is identified as legal authentication data, that is, after the legal verification, the handover signaling 1 is forwarded to terminal 2 to send the handover token and the corresponding motion data 1 to terminal 2; conversely, if the user identifier of the token acquisition request is inconsistent with the user identifier corresponding to the next handover sequence number, the authentication data is identified as illegal data and the token acquisition request is discarded.
[0410] In a possible implementation, after receiving the handover signaling 1, the terminal 2 may send a receipt confirmation message to the server. After receiving the receipt confirmation message, the server changes the status flag of the handover token to an unavailable status. Fig. 20 As shown in (b), after the server sends the handover signaling 1 to the terminal 2 and the terminal 2 receives the handover signaling 1, the server can change the state of the handover token to an uncollectible state, and the received control 202 is displayed in the terminal 2, and the received control 202 is displayed in an unclickable state, that is, it cannot be received again.
[0411] In S1807 , terminal 2 records motion data 2 of terminal 2 during the relay process based on motion data 1 carried in handover signaling 1 .
[0412] Since the implementation process of S1807 is exactly the same as the implementation process of S1204 in the first embodiment, the specific description can refer to the relevant description of S1204, which will not be repeated here.
[0413] In S1808, when terminal 2 detects that it has reached the handover end area corresponding to handover sequence number 2 (ie, handover area 2), it generates handover signaling 2 based on currently recorded motion data 2 and the handover token.
[0414] Since the implementation process of S1808 is exactly the same as the implementation process of S1802, the specific description can be found in the relevant description of S1802, which will not be repeated here.
[0415] In S1809, terminal 2 sends handover signaling 2 to the server through the sports application.
[0416] Since the implementation process of S1809 is exactly the same as the implementation process of S1803, the specific description can refer to the relevant description of S1803, which will not be repeated here.
[0417] In S1810, the server changes the status flag of the handover token of the user queue where terminal 2 is located to a collectible status.
[0418] Since the implementation process of S1810 is exactly the same as the implementation process of S1804, the specific description can refer to the relevant description of S1804, which will not be repeated here.
[0419] In S1811, when the terminal 3 reaches the preset handover start area (ie, the handover area 2) and detects that the status indicator of the handover token is changed to a receivable state, the terminal 3 sends a token acquisition request to the server.
[0420] Since the implementation process of S1811 is exactly the same as the implementation process of S1805, the specific description can be found in the relevant description of S1805, which will not be repeated here.
[0421] In S1812, the server receives a token acquisition request, and when the authentication data in the token acquisition request is legal authentication data, the server sends a handover signaling 2 to the terminal 3, and changes the handover state of the handover token to an unavailable state.
[0422] Since the implementation process of S1812 is exactly the same as the implementation process of S1806, the specific description can be found in the relevant description of S1806, which will not be repeated here.
[0423] In S1813 , terminal 3 records motion data 3 of terminal 3 during the relay process based on motion data 2 carried in handover signaling 2 .
[0424] Since the implementation process of S1807 is exactly the same as the implementation process of S1204 in the first embodiment, the specific description can refer to the relevant description of S1204, which will not be repeated here.
[0425] In S1814, when the terminal 3 detects that it has reached the handover end area (ie, the handover area 3), in response to the movement end instruction, it generates movement result information of the movement event and sends the movement result information to the server.
[0426] Since the implementation process of S1814 is exactly the same as that of S1211 in the first embodiment, for a specific description, please refer to the relevant description of S1211, which will not be repeated here.
[0427] In the embodiment of the present application, the terminal transmits motion data and handover tokens through the server, which can be applicable to application scenarios that do not have a near-field communication module, thereby achieving the flexibility of relay motion.
[0428] Embodiment 4:
[0429] Compared with the first to third embodiments, the first to third embodiments illustrate the motion event response method provided by the embodiments of the present application from the perspective of the interaction between multiple terminals and the cloud server, while the fourth embodiment illustrates the motion event response method provided by the embodiments of the present application from the perspective of one of the terminals (i.e., the first terminal, which can be any of the terminals 1, 2, 3, or 4). For example, Fig.21 The following is a flowchart of the implementation of the motion event response method provided by an embodiment of the present application on the first terminal side, which is specifically described as follows:
[0430] In S2101, event information about a sports event is obtained; the event information is determined according to a first sequence number of a first user to which the first terminal belongs in the sports event; the event information includes a contact triggering condition corresponding to the first sequence number;
[0431] In S2102, if the handover triggering condition is met, the handover process of the motion event is executed according to the handover state of the first terminal to transfer the motion data of the motion event, including:
[0432] If the handover state of the first terminal is the first state, a first handover signaling is generated and sent based on the first motion data of the motion event; the first handover signaling carries a handover token; the first handover signaling is used to send the handover token to the second terminal corresponding to the second sequence number; the second sequence number is the next handover sequence number of the first sequence number;
[0433] If the handover state of the first terminal is the second state, a second handover signaling is received; the second handover signaling carries the handover token; the second handover signaling is sent by the third terminal corresponding to the third sequence number; the third sequence number is the previous handover sequence number of the first sequence number;
[0434] If the second handover signaling is legal handover signaling, the first motion data of the motion event is generated based on the second motion data carried by the second handover signaling.
[0435] In one possible implementation, the handover triggering condition may be receiving a handover instruction initiated by a user. In this case, the first terminal may send the handover token to the server at any location and at any time. After the handover token is uploaded, that is, the handover status of the handover token is changed to a collectible status, the other terminals may send a request to the server to collect the token. In this case, the server may send the handover token to the other terminals that sent the request to collect the token. After receiving the handover token, the other terminals may continue to record the second motion data based on the first motion data when the first terminal sent the handover token. This may enable the purpose of free token handover anytime and anywhere to be achieved, and may be applied to free relay sports scenarios.
[0436] Further, if the first terminal includes a near field communication module, if the handover state of the first terminal is the first state, generating and sending a first handover signaling based on the first motion data of the motion time includes:
[0437] Sending at least one first data packet through the near field communication module to generate the first handover signaling through the at least one first data packet; the first data packet is generated based on the wireless communication protocol corresponding to the near field communication module;
[0438] Receiving a first confirmation signaling fed back by the second terminal based on the first handover signaling; the first confirmation signaling carries second authentication data of the second terminal;
[0439] If the second authentication data is legal, stop sending the at least one first data packet.
[0440] Further, if the first terminal includes a near field communication module, if the handover state of the first terminal is the second state, receiving the second handover signaling includes:
[0441] monitoring broadcast data through the near field communication module;
[0442] In the process of monitoring the broadcast data, at least one second data packet sent by the third terminal is received through the near field communication module, and the second handover signaling is generated through the at least one second data packet.
[0443] Further, the event information also carries the public key of the motion event and the first authentication data of the first terminal. In the process of monitoring the broadcast data, at least one second data packet sent by the third terminal is received through the near field communication module, and after the second handover signaling is generated through the at least one second data packet, it also includes:
[0444] The second authentication data in the second handover signaling is decrypted by the public key to obtain decrypted data; the second authentication data is encrypted by the third private key corresponding to the third terminal; the public key is used to decrypt the data encrypted by the third private key;
[0445] If the second handover signaling is a legal handover signaling, generating the first motion data of the motion event based on the second motion data carried by the second handover signaling includes:
[0446] If the decrypted data is legal, a second confirmation signaling is sent to the third terminal; the second confirmation signaling carries the first authentication data; the second confirmation signaling is used to notify the third terminal that the first terminal has received the handover token and stops sending the second handover signaling.
[0447] Further, the event information also carries a third user identifier of the third terminal; after decrypting the authentication data in the second handover signaling by using the public key to obtain the decrypted data, it also includes:
[0448] Determining whether the user identifier carried in the decrypted data is consistent with the third user identifier;
[0449] If the user identifier carried in the decrypted data is consistent with the third user identifier, the decrypted data is identified as legal, and the operation of sending the second confirmation signaling to the third terminal is performed;
[0450] If the user identifier carried in the decrypted data is inconsistent with the third user identifier, the process returns to executing the process of monitoring broadcast data through the near field communication module.
[0451] Further, if the handover state of the first terminal is the first state, generating and sending a first handover signaling based on the first motion data of the motion time includes:
[0452] The first handover signaling is sent to the server so as to change the status flag of the handover token to a collectible status through the server, and upon receiving the token acquisition request sent by the second terminal, the first handover signaling is sent to the second terminal.
[0453] Further, if the handover state of the first terminal is the second state, receiving the second handover signaling includes:
[0454] If it is detected that the status mark of the handover token is changed to a collectible state, a token acquisition request is sent to the server; the token acquisition request carries the first authentication data of the first terminal; the first authentication data is used by the server to determine whether the token acquisition request is a legal request;
[0455] The second handover signaling fed back by the server based on the token acquisition request is received.
[0456] Furthermore, before the token acquisition request is sent to the server if the status flag of the handover token is detected to be changed to a collectible state, the method further includes:
[0457] A receiving interface including the status identification of the handover token is displayed; the identification status of the handover token in the receiving interface is an unreceivable status.
[0458] Furthermore, before acquiring the event information about the sports event, the method further includes:
[0459] Receiving an existing event list fed back by a server; the existing event list includes the sports event;
[0460] In response to the participation instruction for the sports event, the first serial number of the first terminal in the user queue is determined; when the actual number of users in the user queue meets the preset number of the sports events, the server configures the handover token for the user queue.
[0461] Furthermore, after the existing event list fed back by the receiving server includes the sports event, the present invention further comprises:
[0462] In response to a queue creation instruction regarding the sports event, create a user queue for the sports event to add the user queue to a queue list stored in the server;
[0463] A request for adding the user queue is sent to a terminal of an associated user of the first user, so as to add the associated user to the user queue.
[0464] Furthermore, if the handover triggering condition is met, executing the handover process of the motion event according to the handover state of the first terminal includes:
[0465] If the first position of the first terminal is in the handover area ring corresponding to the first serial number and / or the current time is in the motion time interval corresponding to the motion event, the handover process of the motion event is executed according to the handover status of the first terminal.
[0466] Further, the handover area includes: a handover start area and a handover end area;
[0467] If the handover state of the first terminal is the first state, generating and sending a first handover signaling based on the first motion data of the motion event includes:
[0468] If the first position of the first terminal is in the handover end area corresponding to the first sequence number, identifying the handover state of the first terminal as the first state, and generating and sending a first handover signaling based on the first motion data of the motion event;
[0469] If the handover state of the first terminal is the second state, receiving a second handover signaling; the second handover signaling carries the handover token, including:
[0470] If the first position of the first terminal is in the handover start area corresponding to the first sequence number, the handover state of the first terminal is identified as the second state, and a second handover signaling is received.
[0471] In an embodiment of the present application, before a sports event of a relay race is conducted, the server can send event information carrying a handover trigger condition to multiple different terminals in the same user queue, such as a first terminal. After the first terminal receives the event information, when the handover trigger condition carried by it is met, the corresponding handover process can be executed according to the handover state of the first terminal to pass the motion data corresponding to the sports event to other terminals, thereby achieving the purpose of passing the motion data between multiple terminals, without the need to prepare additional handover objects to record the motion data of the relay race process. Compared with the existing management technology of sports events, when recording a relay-type sports event, the embodiment of the present application can send event information carrying a handover trigger condition to multiple terminals through the server, and multiple terminals can pass the motion data of the sports event when detecting that the handover trigger condition is met, so as to achieve the purpose of recording the motion data of the relay type, without the need to prepare additional handover objects, thereby reducing the difficulty of realizing the relay sports competition and the required realization cost, and also improving the flexibility of carrying out the relay-type sports event.
[0472] Embodiment five:
[0473] Corresponding to the method for responding to the motion event described in the fourth embodiment above, Fig. 22 A structural block diagram of a motion event response device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0474] Reference Fig. 22 , the motion event response device includes:
[0475] The event information receiving unit 221 is used to obtain event information about a sports event; the event information is determined according to the first sequence number of the first user to which the first terminal belongs in the sports event; the event information includes the contact triggering condition corresponding to the first sequence number;
[0476] The motion data transmission unit 222 is configured to execute the handover process of the motion event according to the handover state of the first terminal if the handover triggering condition is met, so as to transmit the motion data of the motion event, including:
[0477] The handover unit 2221 is used for generating and sending a first handover signaling based on the first motion data of the motion event if the handover state of the first terminal is the first state; the first handover signaling carries a handover token; the first handover signaling is used to send the handover token to the second terminal corresponding to the second sequence number; the second sequence number is the next handover sequence number of the first sequence number;
[0478] The handover unit 2222 is configured to receive a second handover signaling if the handover state of the first terminal is the second state; the second handover signaling carries the handover token; the second handover signaling is sent by the third terminal corresponding to the third sequence number; the third sequence number is the previous handover sequence number of the first sequence number;
[0479] The data updating unit 2223 is configured to generate the first motion data of the motion event based on the second motion data carried in the second handover signaling if the second handover signaling is a legal handover signaling.
[0480] Optionally, if the response device includes a near field communication module, the baton receiving unit 2222 includes:
[0481] A data packet sending unit, configured to send at least one first data packet through the near field communication module to generate the first handover signaling through the at least one first data packet; the first data packet is generated based on a wireless communication protocol corresponding to the near field communication module;
[0482] A first confirmation signaling receiving unit is used to receive a first confirmation signaling fed back by the second terminal based on the first handover signaling; the first confirmation signaling carries second authentication data of the second terminal;
[0483] A sending stopping unit is used to stop sending the at least one first data packet if the second authentication data is legal.
[0484] Optionally, if the response device includes a near field communication module, the baton receiving unit 2222 includes:
[0485] A broadcast monitoring unit, configured to monitor broadcast data via the near field communication module;
[0486] The second data packet receiving unit is used to receive at least one second data packet sent by the third terminal through the near field communication module during the process of monitoring the broadcast data, and generate the second handover signaling through the at least one second data packet.
[0487] Optionally, the event information also carries a public key of the sports event and first authentication data of the first terminal; and the response device further includes:
[0488] an authentication data decryption unit, configured to decrypt the second authentication data in the second handover signaling by using the public key to obtain decrypted data; the second authentication data is obtained by encrypting the third private key corresponding to the third terminal; the public key is used to decrypt the data encrypted based on the third private key;
[0489] If the second handover signaling is a legal handover signaling, generating the first motion data of the motion event based on the second motion data carried by the second handover signaling includes:
[0490] A second confirmation signaling sending unit is used to send a second confirmation signaling to the third terminal if the decrypted data is legal; the second confirmation signaling carries the first authentication data; the second confirmation signaling is used to notify the third terminal that the first terminal has received the handover token and stop sending the second handover signaling.
[0491] Optionally, the event information further carries a third user identifier of the third terminal; and the response device further includes:
[0492] A user identification matching unit, used to determine whether the user identification carried in the decrypted data is consistent with the third user identification;
[0493] an identification consistency response unit, configured to identify that the decrypted data is legal if the user identification carried in the decrypted data is consistent with the third user identification, and execute the operation of sending the second confirmation signaling to the third terminal;
[0494] The identification abnormality response unit is used to return to executing the monitoring of broadcast data through the near field communication module if the user identification carried in the decrypted data is inconsistent with the third user identification.
[0495] Optionally, the stick-passing unit 2221 includes:
[0496] The signaling uploading unit is used to send the first handover signaling to the server so as to change the status flag of the handover token to a collectible state through the server, and send the first handover signaling to the second terminal when receiving the token acquisition request sent by the second terminal.
[0497] Optionally, the baton receiving unit 2222 includes:
[0498] A token acquisition sending unit is used to send a token acquisition request to a server if it is detected that the status mark of the handover token is changed to a collectible state; the token acquisition request carries the first authentication data of the first terminal; the first authentication data is used by the server to determine whether the token acquisition request is a legal request;
[0499] A token receiving unit is used to receive the second handover signaling fed back by the server based on the token acquisition request.
[0500] Optionally, the response device further includes:
[0501] The receiving interface display unit is used to display a receiving interface including the status identification of the handover token; the identification status of the handover token in the receiving interface is an unavailable status.
[0502] Optionally, the response device further includes:
[0503] An existing event receiving unit, used for receiving an existing event list fed back by a server; the existing event list includes the sports event;
[0504] An event participation unit is used to determine the first serial number of the first terminal in the user queue in response to a participation instruction about the sports event; when the actual number of users in the user queue meets the preset number of sports events, the server configures the handover token for the user queue.
[0505] Optionally, the response device further includes:
[0506] a team creation unit, configured to create a user queue for the sports event in response to a queue creation instruction regarding the sports event, so as to add the user queue to a queue list stored in the server;
[0507] The team analysis unit is used to send a request to add the user queue to a terminal of an associated user of the first user, so as to add the associated user to the user queue.
[0508] Optionally, the motion data transmission unit 222 includes:
[0509] A condition determination unit is used to execute the handover process of the motion event according to the handover status of the first terminal if the first position of the first terminal is in the handover area ring corresponding to the first serial number and / or the current time is in the motion time interval corresponding to the motion event.
[0510] Optionally, the handover area includes: a handover start area and a handover end area; the handover unit 2221 includes:
[0511] a handover position identification unit, configured to identify that the handover state of the first terminal is the first state if the first position of the first terminal is in the handover end area corresponding to the first sequence number, and generate and send a first handover signaling based on the first motion data of the motion event;
[0512] The baton receiving unit 2222 comprises:
[0513] The handover position identification unit is used to identify that the handover state of the first terminal is the second state if the first position of the first terminal is in the handover start area corresponding to the first sequence number, and receive a second handover signaling.
[0514] Embodiment six:
[0515] Compared with the first to third embodiments, the first to third embodiments illustrate the motion event response method provided by the present application embodiment from the perspective of the interaction between multiple terminals and the cloud server, while the sixth embodiment illustrates the motion event response method provided by the present application embodiment from the perspective of the server. Fig.23 The following is a flowchart of a method for responding to a motion event provided by an embodiment of the present application and implemented by a server, which is specifically described as follows:
[0516] In S2301, in response to an event setting operation on a motion event, a reference handover condition of the motion event is set; the reference handover condition includes a plurality of candidate handover areas of the motion event;
[0517] In S2302, in response to the check-in signaling sent by any terminal, a handover trigger condition is generated according to the handover sequence number of any terminal and the plurality of candidate handover areas, and event information carrying the handover trigger condition is sent to any terminal; the handover trigger condition is used to execute the handover process of the motion event according to the handover state of any terminal when any terminal detects that the handover trigger condition is met;
[0518] When any of the terminals is in the first state, based on the first motion data of the motion event, a first handover signaling is generated and sent; the first handover signaling carries a handover token; the first handover signaling is used to send the handover token to a second terminal corresponding to a second sequence number; the second sequence number is a handover sequence number next to the first sequence number;
[0519] When any of the terminals is in the second state, a second handover signaling is received, and when the second handover signaling is a legal handover signaling, the first motion data of the motion event is generated based on the second motion data carried by the second handover signaling; the second handover signaling carries the handover token; the second handover signaling is sent by the third terminal corresponding to the third sequence number; the third sequence number is the previous handover sequence number of the first sequence number.
[0520] Further, in response to the sign-in signaling sent by any terminal, generating a handover triggering condition according to the handover sequence number of any terminal, and sending event information carrying the handover triggering condition to any terminal, includes:
[0521] According to the handover sequence number, determining at least one handover area corresponding to the handover sequence number from a plurality of the candidate handover areas;
[0522] The handover trigger condition is generated based on the at least one handover area, and the event information carrying the handover trigger condition is sent to any one of the terminals.
[0523] Further, the generating the handover contact condition based on the at least one handover area, and sending the event information carrying the handover contact condition to any one of the terminals, includes:
[0524] Generate a key pair for any terminal; the key pair includes a private key used by any terminal in the sports event and a public key of the user queue in which any terminal is located; the private key is used to generate authentication data sent to other terminals; the public key is used to decrypt the authentication data sent by the other terminals;
[0525] The event information is generated according to the cross-connection triggering condition and the key pair, and the event information is sent to any one of the terminals.
[0526] Furthermore, the any terminal includes a first terminal and a second terminal; the handover sequence number of the first terminal is smaller than the handover sequence number of the second terminal;
[0527] After generating a handover triggering condition according to the handover sequence number of any terminal and the plurality of candidate handover areas in response to the sign-in signaling sent by any terminal, and sending event information carrying the handover triggering condition to any terminal, the method further includes:
[0528] In response to the first handover signaling sent by the first terminal, changing the state flag of the handover token of the user queue where the first terminal is located to a receivable state;
[0529] Receiving a token acquisition request sent by a second terminal; the token acquisition carries second authentication data of the second terminal;
[0530] If the second authentication data is legal authentication data, the first handover signaling is sent to the second terminal, and the handover state of the handover token is changed to an unavailable state.
[0531] Further, after the reference handover condition of the motion event is set in response to the event setting operation on the motion event, the method further includes:
[0532] In response to the event query instruction sent by any terminal, feeding back an existing event list to any terminal; the existing event list includes the sports event;
[0533] In response to a joining instruction sent by any terminal, adding any terminal to a user queue, and determining a handover sequence number of any terminal in the user queue;
[0534] If the actual number of users in the user queue is equal to the rated number of users in the queue, a handover token for the user queue is generated.
[0535] Further, after feeding back the existing event list to any terminal in response to the event query instruction sent by any terminal, the method further includes:
[0536] In response to a queue creation instruction sent by any terminal, adding the user queue to the queue list;
[0537] The adding request sent by any terminal is received, and the adding request of the user queue is sent to a terminal of a user associated with the first user.
[0538] Embodiment seven:
[0539] Corresponding to the method for responding to the motion event described in the sixth embodiment above, Fig.24 A structural block diagram of a motion event response device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0540] Reference Fig.24 , the motion event response device includes:
[0541] An event setting unit 241 is used to set a reference handover condition of the motion event in response to an event setting operation on the motion event; the reference handover condition includes a plurality of candidate handover areas of the motion event;
[0542] The sign-in response unit 242 is used to generate a handover trigger condition according to the handover sequence number of any terminal and the plurality of candidate handover areas in response to the sign-in signaling sent by any terminal, and send the event information carrying the handover trigger condition to any terminal; the handover trigger condition is used to execute the handover process of the motion event according to the handover state of any terminal when any terminal detects that the handover trigger condition is met;
[0543] When any of the terminals is in the first state, based on the first motion data of the motion event, a first handover signaling is generated and sent; the first handover signaling carries a handover token; the first handover signaling is used to send the handover token to a second terminal corresponding to a second sequence number; the second sequence number is a handover sequence number next to the first sequence number;
[0544] When any of the terminals is in the second state, a second handover signaling is received, and when the second handover signaling is a legal handover signaling, the first motion data of the motion event is generated based on the second motion data carried by the second handover signaling; the second handover signaling carries the handover token; the second handover signaling is sent by the third terminal corresponding to the third sequence number; the third sequence number is the previous handover sequence number of the first sequence number.
[0545] Optionally, the check-in response unit 242 includes:
[0546] a handover area determining unit, configured to determine, according to the handover sequence number, at least one handover area corresponding to the handover sequence number from a plurality of the candidate handover areas;
[0547] The handover contact condition determining unit is configured to generate the handover contact condition based on the at least one handover area, and send the event information carrying the handover contact condition to any one of the terminals.
[0548] Optionally, the intersection triggering condition determining unit includes:
[0549] A key pair generating unit, configured to generate a key pair for any terminal; the key pair includes a private key used by any terminal in the sports event and a public key of a user queue in which any terminal is located; the private key is used to generate authentication data sent to other terminals; the public key is used to decrypt authentication data sent by other terminals;
[0550] The key pair encapsulation unit is used to generate the event information according to the cross-connection triggering condition and the key pair, and send the event information to any one of the terminals.
[0551] Optionally, the any terminal includes a first terminal and a second terminal; the handover sequence number of the first terminal is smaller than the handover sequence number of the second terminal;
[0552] The response device also includes:
[0553] a state identification changing unit, configured to change the state identification of the handover token of the user queue where the first terminal is located to a collectible state in response to the first handover signaling sent by the first terminal;
[0554] A token acquisition request receiving unit, configured to receive a token acquisition request sent by a second terminal; the token acquisition carries second authentication data of the second terminal;
[0555] The first handover signaling forwarding unit is used to send the first handover signaling to the second terminal if the second authentication data is legal authentication data, and change the handover state of the handover token to an unavailable state.
[0556] Optionally, the response device further includes:
[0557] A query response unit, configured to, in response to an event query instruction sent by any terminal, feed back an existing event list to any terminal; the existing event list includes the sports event;
[0558] a queue adding unit, configured to add any terminal to a user queue in response to a joining instruction sent by any terminal, and determine a handover sequence number of any terminal in the user queue;
[0559] The token generating unit is used to generate a handover token for the user queue if the actual number of users in the user queue is equal to the rated number of users in the queue.
[0560] Optionally, the response device further includes:
[0561] a member adding unit, configured to add the user queue to the queue list in response to a queue creation instruction sent by any terminal;
[0562] The list forwarding unit is used to receive an adding request sent by any terminal, and send the adding request of the user queue to a terminal of an associated user of the first user.
[0563] Fig.25 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Fig.25 As shown, the electronic device 25 of this embodiment includes: at least one processor 250 ( Fig.25 Only one processor is shown in the figure), a memory 251, and a computer program 252 stored in the memory 251 and executable on the at least one processor 250, wherein the processor 250 implements the steps in the above-mentioned embodiment of the method for responding to any of the motion events when executing the computer program 252.
[0564] The electronic device 25 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor 250 and a memory 251. Those skilled in the art will appreciate that Fig.25 It is only an example of the electronic device 25 and does not constitute a limitation of the electronic device 25. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0565] The processor 250 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0566] In some embodiments, the memory 251 may be an internal storage unit of the electronic device 25, such as a hard disk or memory of the electronic device 25. In other embodiments, the memory 251 may also be an external storage device of the electronic device 25, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 25. Further, the memory 251 may also include both an internal storage unit of the electronic device 25 and an external storage device. The memory 251 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 251 may also be used to temporarily store data that has been output or is to be output.
[0567] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0568] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0569] An embodiment of the present application also provides an electronic device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the computer program.
[0570] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0571] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0572] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0573] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0574] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0575] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0576] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0577] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for responding to a motion event, applied to a first terminal, characterized in that: include: Get event information about motion events; The event information is determined according to a first sequence number of a first user to which the first terminal belongs in the sports event; The event information includes the handover triggering condition corresponding to the first sequence number; If the handover triggering condition is met, executing the handover process of the motion event according to the handover state of the first terminal to transfer the motion data of the motion event, including: If the handover state of the first terminal is the first state, generating and sending a first handover signaling based on the first motion data of the motion event; The first handover signaling carries a handover token; the first handover signaling is used to send the handover token to the second terminal corresponding to the second sequence number; the second sequence number is the next handover sequence number of the first sequence number; If the handover state of the first terminal is the second state, a second handover signaling is received; the second handover signaling carries the handover token; the second handover signaling is sent by the third terminal corresponding to the third sequence number; the third sequence number is the previous handover sequence number of the first sequence number; If the second handover signaling is legal handover signaling, the first motion data of the motion event is generated based on the second motion data carried by the second handover signaling.
2. The response method according to claim 1, characterized in that: If the first terminal includes a near field communication module, if the handover state of the first terminal is the first state, generating and sending a first handover signaling based on the first motion data of the motion time includes: Sending at least one first data packet through the near field communication module to generate the first handover signaling through the at least one first data packet; the first data packet is generated based on the wireless communication protocol corresponding to the near field communication module; Receiving a first confirmation signaling fed back by the second terminal based on the first handover signaling; the first confirmation signaling carries second authentication data of the second terminal; If the second authentication data is legal, stop sending the at least one first data packet.
3. The response method according to claim 2, characterized in that: If the first terminal includes a near field communication module, if the handover state of the first terminal is a second state, receiving a second handover signaling includes: monitoring broadcast data through the near field communication module; In the process of monitoring the broadcast data, at least one second data packet sent by the third terminal is received through the near field communication module, and the second handover signaling is generated through the at least one second data packet.
4. The response method according to claim 3, characterized in that: The event information also carries the public key of the motion event and the first authentication data of the first terminal. In the process of monitoring the broadcast data, after receiving at least one second data packet sent by the third terminal through the near field communication module and generating the second handover signaling through the at least one second data packet, the method further includes: The second authentication data in the second handover signaling is decrypted by the public key to obtain decrypted data; the second authentication data is encrypted by the third private key corresponding to the third terminal; the public key is used to decrypt the data encrypted by the third private key; If the second handover signaling is a legal handover signaling, generating the first motion data of the motion event based on the second motion data carried by the second handover signaling includes: If the decrypted data is legal, a second confirmation signaling is sent to the third terminal; the second confirmation signaling carries the first authentication data; the second confirmation signaling is used to notify the third terminal that the first terminal has received the handover token and stops sending the second handover signaling.
5. The response method according to claim 4, characterized in that: The event information also carries a third user identifier of the third terminal; after decrypting the authentication data in the second handover signaling by using the public key to obtain the decrypted data, the method further includes: Determining whether the user identifier carried in the decrypted data is consistent with the third user identifier; If the user identifier carried in the decrypted data is consistent with the third user identifier, the decrypted data is identified as legal, and the operation of sending the second confirmation signaling to the third terminal is performed; If the user identifier carried in the decrypted data is inconsistent with the third user identifier, the process returns to executing the process of monitoring broadcast data through the near field communication module.
6. The response method according to claim 1, characterized in that: If the handover state of the first terminal is the first state, generating and sending a first handover signaling based on the first motion data of the motion time includes: The first handover signaling is sent to the server so as to change the status flag of the handover token to a collectible status through the server, and upon receiving the token acquisition request sent by the second terminal, the first handover signaling is sent to the second terminal.
7. The response method according to claim 1, characterized in that: If the handover state of the first terminal is the second state, receiving the second handover signaling includes: If it is detected that the status mark of the handover token is changed to a collectible state, a token acquisition request is sent to the server; the token acquisition request carries the first authentication data of the first terminal; the first authentication data is used by the server to determine whether the token acquisition request is a legal request; The second handover signaling fed back by the server based on the token acquisition request is received.
8. The response method according to claim 7, characterized in that: Before sending a token acquisition request to a server if it is detected that the status mark of the handover token is changed to a receivable state, the method further includes: A receiving interface including the status identification of the handover token is displayed; the identification status of the handover token in the receiving interface is an unreceivable status.
9. The response method according to any one of claims 1 to 8, characterized in that: Before acquiring the event information about the motion event, the method further includes: Receiving an existing event list fed back by a server; the existing event list includes the sports event; In response to the participation instruction for the sports event, the first serial number of the first terminal in the user queue is determined; when the actual number of users in the user queue meets the preset number of the sports events, the server configures the handover token for the user queue.
10. The response method according to claim 9, characterized in that: The receiving server feeds back an existing event list; after the existing event list includes the sports event, the following further includes: In response to a queue creation instruction regarding the sports event, create a user queue for the sports event to add the user queue to a queue list stored in the server; A request for adding the user queue is sent to a terminal of an associated user of the first user, so as to add the associated user to the user queue.
11. The response method according to any one of claims 1 to 8, characterized in that: If the handover triggering condition is met, executing the handover process of the motion event according to the handover state of the first terminal includes: If the first position of the first terminal is in the handover area ring corresponding to the first serial number and / or the current time is in the motion time interval corresponding to the motion event, the handover process of the motion event is executed according to the handover status of the first terminal.
12. The response method according to claim 11, characterized in that: The handover area includes: a handover start area and a handover end area; If the handover state of the first terminal is the first state, generating and sending a first handover signaling based on the first motion data of the motion event includes: If the first position of the first terminal is in the handover end area corresponding to the first sequence number, identifying the handover state of the first terminal as the first state, and generating and sending a first handover signaling based on the first motion data of the motion event; If the handover state of the first terminal is the second state, receiving a second handover signaling; the second handover signaling carries the handover token, including: If the first position of the first terminal is in the handover start area corresponding to the first sequence number, the handover state of the first terminal is identified as the second state, and a second handover signaling is received.
13. A method for responding to a motion event, an application server, characterized in that: include: In response to an event setting operation regarding a motion event, setting a reference handover condition for the motion event; The reference handover condition includes a plurality of candidate handover regions of the motion event; In response to the check-in signaling sent by any terminal, a handover trigger condition is generated according to the handover sequence number of any terminal and the plurality of candidate handover areas, and event information carrying the handover trigger condition is sent to any terminal; the handover trigger condition is used to execute the handover process of the motion event according to the handover state of any terminal when any terminal detects that the handover trigger condition is met; When any of the terminals is in the first state, generating and sending a first handover signaling based on the first motion data of the motion event; The first handover signaling carries a handover token; the first handover signaling is used to send the handover token to the second terminal corresponding to the second sequence number; the second sequence number is the next handover sequence number of the first sequence number of any terminal; When any of the terminals is in the second state, a second handover signaling is received, and when the second handover signaling is a legal handover signaling, the first motion data of the motion event is generated based on the second motion data carried by the second handover signaling; the second handover signaling carries the handover token; The second handover signaling is sent by a third terminal corresponding to a third sequence number; the third sequence number is the previous handover sequence number of the first sequence number.
14. The response method according to claim 13, characterized in that: The step of generating a handover triggering condition according to a handover sequence number of any terminal in response to a sign-in signaling sent by any terminal, and sending event information carrying the handover triggering condition to any terminal includes: According to the handover sequence number, determining at least one handover area corresponding to the handover sequence number from a plurality of the candidate handover areas; The handover trigger condition is generated based on the at least one handover area, and the event information carrying the handover trigger condition is sent to any one of the terminals.
15. The response method according to claim 14, characterized in that: The generating the handover contact condition based on the at least one handover area, and sending the event information carrying the handover contact condition to any one of the terminals, includes: Generate a key pair for any terminal; the key pair includes a private key used by any terminal in the sports event and a public key of the user queue in which any terminal is located; the private key is used to generate authentication data sent to other terminals; the public key is used to decrypt the authentication data sent by the other terminals; The event information is generated according to the cross-connection triggering condition and the key pair, and the event information is sent to any one of the terminals.
16. The response method according to claim 13, characterized in that: The any terminal includes a first terminal and a second terminal; the handover sequence number of the first terminal is smaller than the handover sequence number of the second terminal; After generating a handover triggering condition according to the handover sequence number of any terminal and the plurality of candidate handover areas in response to the sign-in signaling sent by any terminal, and sending event information carrying the handover triggering condition to any terminal, the method further includes: In response to the first handover signaling sent by the first terminal, changing the state flag of the handover token of the user queue where the first terminal is located to a receivable state; Receiving a token acquisition request sent by a second terminal; the token acquisition carries second authentication data of the second terminal; If the second authentication data is legal authentication data, the first handover signaling is sent to the second terminal, and the handover state of the handover token is changed to an unavailable state.
17. The response method according to any one of claims 13 to 16, characterized in that: After the reference handover condition of the motion event is set in response to the event setting operation on the motion event, the method further includes: In response to the event query instruction sent by any terminal, feeding back an existing event list to any terminal; the existing event list includes the sports event; In response to a joining instruction sent by any terminal, adding any terminal to a user queue, and determining a handover sequence number of any terminal in the user queue; If the actual number of users in the user queue is equal to the rated number of users in the queue, a handover token for the user queue is generated.
18. The response method according to claim 17, characterized in that: After feeding back the existing event list to any terminal in response to the event query instruction sent by any terminal, the method further includes: In response to a queue creation instruction sent by any terminal, adding the user queue to the queue list; An adding request sent by any terminal is received, and the adding request of the user queue is sent to a terminal of a user associated with a first user of any terminal.
19. An electronic device, characterized in that: The electronic device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps of the method according to any one of claims 1 to 18.
20. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 18 are implemented.
