CN114598991B - Multi-layer fence construction method, cloud server and first terminal device - Google Patents

Multi-layer fence construction method, cloud server and first terminal device Download PDF

Info

Publication number
CN114598991B
CN114598991B CN202210057025.XA CN202210057025A CN114598991B CN 114598991 B CN114598991 B CN 114598991B CN 202210057025 A CN202210057025 A CN 202210057025A CN 114598991 B CN114598991 B CN 114598991B
Authority
CN
China
Prior art keywords
fence
positioning information
terminal device
layer
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210057025.XA
Other languages
Chinese (zh)
Other versions
CN114598991A (en
Inventor
郑理文
张舒博
李德维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Glory Smart Technology Development Co ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Publication of CN114598991A publication Critical patent/CN114598991A/en
Application granted granted Critical
Publication of CN114598991B publication Critical patent/CN114598991B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Train Traffic Observation, Control, And Security (AREA)

Abstract

The application provides a multilayer fence construction method, relates to the field of artificial intelligence, particularly relates to the technical field of intelligent position service, and can construct multilayer fences, so that terminal equipment can accurately position the fence according to the multilayer fences, and can automatically display riding two-dimensional codes when the fact that the fence is close to a gate is determined, frequent operation of a user is not needed, and user experience can be improved. The method comprises the following steps: receiving positioning information acquired by a plurality of first terminal devices; constructing N layers of fences with the first position as the center according to the positioning information; if the outermost fence of the N layers of fences is the 0 th fence, and the innermost fence is the N-1 th fence, the plurality of positioning information corresponding to the M layer of fences may include positioning information acquired by each first terminal device at a first time corresponding to the first terminal device, where the first time is a time after time T1 elapses since the first terminal device departs from the 0 th fence, T1= T × M/N, and T is time required by the first terminal device from the 0 th fence to the first position.

Description

Multilayer fence construction method, cloud server and first terminal device
The present application claims priority of chinese patent application entitled "a method for constructing a multi-layered fence, a cloud server, and a first terminal device" filed by the national intellectual property office at 23/04 in 2021 under the application number 202110444566.3, the entire contents of which are incorporated herein by reference.
Technical Field
The application relates to the technical field of intelligent location services in the field of artificial intelligence, in particular to a multilayer fence construction method, a cloud server and a first terminal device.
Background
In a conventional ride mode, a passenger needs to resort to a ticket at the gate in order to pass through the gate. With the continuous development of terminal equipment and related technologies, passengers can get in the station after taking vehicles such as high-speed rails and subways by means of taking two-dimensional code gate-swiping machines. Therefore, a user can get in and take a bus by using the portable terminal equipment without purchasing an entity ticket, and the system is convenient and quick.
However, when a user needs to call the two-dimensional bus bar code on the terminal device, frequent operations (for example, entering a relevant application program from a main interface and then opening the two-dimensional bus bar code from an entrance of the relevant application program) are required, and user experience is poor. Therefore, a way of opening the bus two-dimensional code more intelligently and simply is needed to improve user experience.
Disclosure of Invention
The application provides a multilayer fence construction method, a cloud server and a first terminal device, which can construct a multilayer fence, so that the terminal device can realize accurate positioning of the terminal device according to the multilayer fence, and the requirement of a user on more accurate positioning is met. In some embodiments, when the terminal device determines that the current position is closer to the gate according to the multilayer fence constructed based on the position of the gate of the subway and the position of the subway station, the subway riding two-dimensional code can be automatically opened, tedious operations of a user on the terminal device are not needed, human-computer interaction efficiency and user experience can be improved, and the requirement that the user automatically opens the riding two-dimensional code when the terminal device is in a proper state (such as when the terminal device arrives near the gate) is met.
It should be noted that, in the present application, operations related to user data, such as data collection and data transmission to a server, and processing and use of the data, by a terminal device, are performed only when permission of a user is obtained.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a multilayer fence construction method, which is applied to a cloud server, where the cloud server is in communication connection with a plurality of first terminal devices, and the method includes: receiving first dot data sent by a plurality of first terminal devices, wherein the first dot data comprise positioning information collected by each first terminal device in the plurality of first terminal devices in a preset area based on a first frequency; constructing N layers of fences with a first position as a center according to the first dot data, wherein N is more than or equal to 2, and the first position is located in a preset area; when the outermost fence of the N layers of fences is a 0 th fence, and the innermost fence is an N-1 th fence, the M-th fence corresponds to a plurality of positioning information, the plurality of positioning information includes positioning information acquired by each first terminal device at a first time corresponding to the first terminal device, the first time is a time when the first terminal device starts from the 0 th fence and time T1 elapses, T1= T M/N, where T is a time required for the first terminal device to start from the 0 th fence and reach the first position, and M is an integer greater than 0 and less than or equal to N-1.
In other implementation manners, only one layer of fence is provided, the fence corresponds to the position of the subway station, the geographic range corresponding to the position is large, and the two-dimensional code can be automatically popped up by the terminal device of the user as long as the user enters the range covered by the subway station, but the user actually needs to use the two-dimensional code when walking near the gate (generally, the user needs to walk for a long time to walk near the gate after entering the subway station), so that the two-dimensional code popping-up time is too early, interference on the use of the terminal device is caused by the user, the user can switch the two-dimensional code interface to a background if not using the two-dimensional code temporarily, and the user needs to operate the terminal device to switch the two-dimensional code interface to a foreground when needing to be used, and the operation is time-consuming.
According to some embodiments provided by the application, after the cloud server constructs the multi-layer fence, the terminal device can compare the collected positioning information with the positioning information corresponding to each layer of fence, so that the fence where the terminal device is currently located (for example, the terminal device is located at the mth layer of fence or a position between the mth layer of fence and the M-1 layer of fence) is determined, and accurate positioning of the terminal device is achieved. Therefore, the terminal equipment can automatically open the two-dimensional code when the user is close to the gate (for example, the user determines that the terminal equipment is located in the innermost fence, and the innermost fence corresponds to the position of the gate) (at the time when the user needs to use the two-dimensional code), so that the effect of bringing convenience to the user to take transportation means (for example, boarding, taking a ship, getting on a subway, getting on a cable car and the like) is achieved, and the user experience is improved. Some embodiments that this application provided for terminal equipment can demonstrate the two-dimensional code automatically at more suitable opportunity, can not demonstrate the two-dimensional code too early, reduces the interference to user's unnecessary, promotes user and terminal equipment interactive efficiency and experience.
In one possible implementation, constructing N-level fences centered about a first location from first dot data includes: screening from the first dot data to obtain a plurality of positioning information corresponding to the M-th layer fence, wherein the plurality of positioning information correspond to a plurality of geographic coordinates; generating an M-tier fence from the plurality of geographic coordinates.
As can be seen, each layer of fence can correspond to a plurality of positioning information and a plurality of geographic coordinates (a plurality of positioning information corresponds to a plurality of geographic coordinates). Therefore, the terminal equipment can judge which fence the terminal equipment is in by acquiring the positioning information and/or the geographic coordinates of the terminal equipment, and accurate positioning of the terminal equipment is realized.
In one possible implementation, the method further comprises: and determining a first position according to positioning information acquired when the plurality of first terminal devices generate the target event.
It can be seen that a first terminal device may be considered to arrive at a first location (e.g., a gate location) when the first terminal device generates a target event. The cloud server can obtain a more accurate gate position by performing big data analysis on the first positions corresponding to the first terminal devices.
In one possible implementation, the target event includes a subway code swiping event, an airport code swiping event, a train station code swiping event, a dock code swiping event, or a cable car code swiping event.
Therefore, when the multi-layer fence construction method is applied to different scenes, the types of the target events can be different. For example, when a multi-level fence centered on an airport needs to be constructed, the target event is an airport code swiping event; when a multi-layer fence taking a subway station as a center needs to be constructed, the target event is a subway code swiping event; when a multi-layer fence taking a railway station as a center needs to be constructed, a target event is a code brushing event of the railway station; when a multi-layer fence taking a wharf as a center needs to be constructed, the target event is a wharf code brushing event; when a multi-layer fence taking a cable car waiting area as a center needs to be constructed, the target event is a cable car code brushing event. By analogy, when a multi-layer fence of other areas needs to be constructed, the target event can also be a corresponding other event.
In a possible implementation manner, the cloud server is further communicatively connected to the second terminal device, and the method further includes: receiving second dotting data sent by second terminal equipment, wherein the second dotting data comprise positioning information collected by the second terminal equipment in a preset area based on a second frequency; screening from the second dotting data to obtain first positioning information corresponding to the M-th fence, wherein the first positioning information comprises positioning information acquired by the second terminal device at a second moment, the second moment is the moment when the second terminal device starts from the 0-th fence and the time T2 elapses, and T2= T2M/N, wherein T2 is the time required by the second terminal device to start from the 0-th fence and reach the first position; and adding the first positioning information into a plurality of positioning information corresponding to the M-th layer of fence.
Therefore, after the multilayer fence is constructed, the cloud server can further enrich a plurality of positioning information corresponding to each layer of fence according to the positioning information of the second terminal device (which can be the same device as the first terminal device or can not be the same device as the first terminal device), so that the multilayer fence is more accurate, and the positioning result obtained by the terminal device by utilizing the multilayer fence is more accurate.
In one possible implementation, the method further includes: and adding the geographic coordinates corresponding to the first positioning information into a plurality of geographic coordinates corresponding to the M-th layer of fence.
Therefore, in the process of updating the fences, a plurality of positioning signals corresponding to each layer of fence can be enriched, and a plurality of geographic coordinates corresponding to each layer of fence can be enriched. In this manner, the geographic extent of the multi-tiered fence can be made more accurate.
In a possible implementation manner, if the first positioning information further corresponds to an X-th fence in the N-th fences, the method further includes: determining a first frequency of using the first positioning information as positioning information corresponding to the X-th layer fence, and determining a second frequency of using the first positioning information as positioning information corresponding to the M-th layer fence; x is an integer which is greater than 0 and less than or equal to N-1 and is not equal to M; if the first times is greater than the second times, determining that the first positioning information is positioning information corresponding to the X-th layer fence; and if the first times is less than or equal to the second times, determining the first positioning information and the positioning information corresponding to the M-th layer of fence.
As can be understood, since the user is not necessarily in a uniform motion state, the time for the second terminal device to acquire the first positioning information for multiple times may not be the same, so that the fences corresponding to the first positioning information may also be different. Therefore, the first time and the second time of the first positioning information are respectively determined, and the fence corresponding to the first positioning information is determined according to the judgment results of the first time and the second time, so that the problem of position conflict caused by the fact that the same positioning information corresponds to multiple layers of fences can be avoided.
In one possible implementation, the preset area includes a subway station, an airport, a railway station, a dock, or a cable car waiting area.
It can be seen that the preset area can be different when constructing the multi-layer fence with different scenes. Namely, the multilayer fence construction method provided by the embodiment of the application has the advantages of wide application range and strong adaptability.
In one possible implementation, the first location includes a location of a gate located within a subway station, an airport, a railway station, a dock, or a cable waiting area.
That is, the first position corresponds to the preset region. For example, if the preset area is a subway station, the first position may be a position where a gate in the subway station is located; if the predetermined area is a train station, the first location may be a location of a gate in the train station.
In one possible implementation, the positioning information includes different types of positioning signals and corresponding strengths of the positioning signals.
Understandably, according to the signal transmission principle, the signal strength is weakened along with the increase of the propagation distance in the spatial propagation process, and the closer the receiving end device is to the signal source, the stronger the received signal strength is; the farther the receiving end device is from the signal source, the weaker the received signal strength. In addition, the relationship between the signal strength and the propagation distance of different types of positioning signals is also different. Thus, the geographical coordinates of the first terminal device may be determined by determining the type of positioning signal and its strength.
In one possible implementation, the positioning information includes one or more of a global positioning system signal, a cell identifier, a bluetooth low energy signal, a wireless network signal, and a near field communication signal.
The positioning accuracy is different in the positioning process by utilizing different types of signals. For example, when the first terminal device performs positioning by using signals of a global positioning system, a cell identifier, a bluetooth low energy signal, and a wireless network signal, respectively, to obtain a geographic coordinate, the accuracy of the obtained geographic coordinate is sequentially reduced. In this way, the terminal device may select one or more of a global positioning system signal, a cell identifier, a bluetooth low energy signal, a wireless network signal, and a near field communication signal to determine the geographic coordinates according to actual conditions (e.g., whether the terminal device is located on the ground or underground, and whether a wireless network or a bluetooth device is installed) in the preset area, which is more accurate.
In a second aspect, the application provides a method for constructing a multi-layer fence, which is applied to a cloud server, wherein the cloud server is in communication connection with a first terminal device, and the method includes: receiving first dot data sent by first terminal equipment, wherein the first dot data comprise positioning information collected by the first terminal equipment in a preset area based on first frequency; constructing N layers of fences taking the first position as the center according to the first dot data, wherein N is more than or equal to 2, and the first position is located in a preset area; when the outermost fence of the N layers of fences is a 0 th fence and the innermost fence is an N-1 th fence, the M-th fence corresponds to a plurality of positioning information, the plurality of positioning information includes positioning information acquired by the first terminal device at a first time, the first time is a time when the first terminal device starts from the 0 th fence and time T1 elapses, T1= T × M/N, where T is a time required for the first terminal device to start from the 0 th fence and reach the first position, and M is an integer greater than 0 and less than or equal to N-1.
As can be seen, the cloud server may also construct a multi-layer fence adapted to one terminal device (e.g., the first terminal device) according to the positioning information collected by the terminal device. So, the multilayer rail that finally obtains more possesses individual adaptability, and this terminal equipment utilizes the location result that multilayer rail obtained also more accurate to make terminal equipment can further accurate self and the distance between the floodgate machine, reach the effect of opening the two-dimensional code in good time, convenience of customers takes the vehicle, promotes user experience.
In one possible implementation, constructing N-level fences centered about a first location from first dot data includes: screening from the first dot data to obtain a plurality of positioning information corresponding to the M-th layer of fence, wherein the plurality of positioning information correspond to a plurality of geographic coordinates; generating an M-tier fence from the plurality of geographic coordinates.
As can be seen, each layer of fence can correspond to multiple positioning information and multiple geographic coordinates (multiple positioning information corresponds to multiple geographic coordinates). Therefore, the terminal equipment can judge which fence the terminal equipment is in by acquiring the positioning information and/or the geographic coordinates of the terminal equipment, and accurate positioning of the terminal equipment is realized.
In one possible implementation, the method further includes: and determining a first position according to positioning information acquired when the first terminal equipment generates the target event.
It will be appreciated that a first terminal device may be deemed to arrive at a first location (e.g., a gate location) when the first terminal device generates a target event. And the user can carry the first terminal equipment to pass through the first position for multiple times, and the target event is generated once after each time of passing. Therefore, the cloud server can perform data analysis on the positioning information acquired by the first terminal device when the first terminal device generates the target event every time and determine the first position, and the obtained result is more accurate.
In one possible implementation, the target event includes a subway code swiping event, an airport code swiping event, a train station code swiping event, a dock code swiping event, or a cable car code swiping event.
Therefore, when the multi-layer fence construction method is applied to different scenes, the types of the target events can be different. For example, when a multi-layer fence of an airport needs to be constructed, the target event is an airport code swiping event; when a multi-layer fence of a subway station needs to be constructed, the target event is a subway code swiping event; when a multi-layer fence of a railway station needs to be constructed, the target event is a code brushing event of the railway station; when a multi-layer fence of the wharf needs to be constructed, the target event is a wharf code brushing event; when a multilayer fence of a cable car waiting area needs to be constructed, the target event is a cable car code brushing event. By analogy, when a multi-layer fence of other areas needs to be constructed, the target event can also be a corresponding other event.
In one possible implementation, the method further comprises: receiving second dotting data sent by the first terminal equipment, wherein the second dotting data comprise positioning information acquired by the first terminal equipment in a preset area based on a second frequency; screening from the second dotting data to obtain first positioning information corresponding to the M-th fence, wherein the first positioning information comprises positioning information acquired by the first terminal device at a second moment, the second moment is the moment when the first terminal device starts from the 0-th fence and the time T2 elapses, and T2= T2M/N, wherein T2 is the time required by the first terminal device to start from the 0-th fence and reach the first position; and adding the first positioning information into a plurality of positioning information corresponding to the M-th layer of fence.
The second frequency may be the same as or different from the first frequency. In a word, after the cloud server constructs the multilayer fence according to the positioning information acquired by the first terminal device, the first terminal device can continue to acquire the positioning information, so that a plurality of positioning information corresponding to each layer of fence is enriched, the multilayer fence is more accurate, and the positioning result obtained by the terminal device by utilizing the multilayer fence is more accurate.
In one possible implementation, the method further includes: and adding the geographic coordinates corresponding to the first positioning information into a plurality of geographic coordinates corresponding to the M-th layer of fence.
Therefore, in the process of updating the fences, a plurality of positioning signals corresponding to each layer of fence can be enriched, and a plurality of geographic coordinates corresponding to each layer of fence can be enriched. In this manner, the geographic extent of the multi-tiered fence can be made more accurate.
In a possible implementation manner, if the first positioning information further corresponds to an X-th fence in the N-th fences, the method further includes: determining a first frequency of using the first positioning information as positioning information corresponding to the X-th layer fence, and determining a second frequency of using the first positioning information as positioning information corresponding to the M-th layer fence; x is an integer which is greater than 0 and less than or equal to N-1 and is not equal to M; if the first times is greater than the second times, determining that the first positioning information is positioning information corresponding to the X-th layer fence; and if the first times is less than or equal to the second times, determining the first positioning information and the positioning information corresponding to the M-th layer of fence.
As can be understood, since the user is not necessarily in a uniform motion state, times for the second terminal device to acquire the first positioning information multiple times may be different, and thus fences corresponding to the first positioning information may also be different. Therefore, the first times and the second times of the first positioning information are respectively determined, and the fence corresponding to the first positioning information is determined according to the judgment results of the first times and the second times, so that the problem of position conflict caused by the fact that the same positioning information corresponds to multiple layers of fences can be avoided.
In one possible implementation, the preset area includes a subway station, an airport, a railway station, a dock, or a cable car waiting area.
Therefore, when constructing the multi-layer fence with different scenes, the preset areas can be different. Namely, the multilayer fence construction method provided by the embodiment of the application is wide in application range and high in adaptability.
In one possible implementation, the first location includes a location of a gate located within a subway station, an airport, a railway station, a dock, or a cable waiting area.
That is, the first position corresponds to the preset area. For example, if the preset area is a subway station, the first position may be a position where a gate in the subway station is located; if the predetermined area is a train station, the first location may be a location of a gate in the train station.
In one possible implementation, the positioning information includes different types of positioning signals and corresponding strengths of the positioning signals.
It can be understood that, according to the signal transmission principle, the signal strength decreases with the increase of the propagation distance in the spatial propagation process, and the closer the receiving end device is to the signal source, the stronger the received signal strength; the further the receiving end device is from the signal source, the weaker the received signal strength. In addition, the relationship between the signal strength and the propagation distance of different types of positioning signals is also different. Thus, the geographical coordinates of the first terminal device may be determined by determining the type of positioning signal and its strength.
In one possible implementation, the positioning signal includes one or more of a global positioning system signal, a cell identifier, a bluetooth low energy signal, a wireless network signal, and a near field communication signal.
The positioning accuracy is different in the positioning process by utilizing different types of signals. For example, when the first terminal device performs positioning by using signals of a global positioning system, a cell identifier, a bluetooth low energy signal, and a wireless network signal, respectively, to obtain a geographic coordinate, the accuracy of the obtained geographic coordinate is sequentially reduced. In this way, the terminal device can select one or more of global positioning system signals, cell identifiers, bluetooth low energy consumption signals, wireless network signals and near field communication signals to determine the geographic coordinates according to the actual conditions (for example, whether the terminal device is located on the ground or underground, whether a wireless network or a bluetooth device is installed, and the like) in the preset area, and the geographic coordinates are determined more accurately.
In a third aspect, the application provides a multilayer fence constructing method, which is applied to a first terminal device, wherein the first terminal device is in communication connection with a cloud server, and the method includes: collecting first dot data in a preset area based on a first frequency, wherein the first dot data comprise positioning information collected by a first terminal device in the preset area based on the first frequency; sending first dot data to a cloud server so that the cloud server constructs N layers of fences with a first position as a center according to the first dot data, wherein N is more than or equal to 2, and the first position is located in a preset area; when the outermost fence of the N layers of fences is a 0 th fence, and the innermost fence is an N-1 th fence, the M-th fence corresponds to a plurality of positioning information, the plurality of positioning information includes positioning information acquired by each first terminal device at a first time corresponding to the first terminal device, the first time is a time when the first terminal device starts from the 0 th fence and time T1 elapses, T1= T M/N, where T is a time required for the first terminal device to start from the 0 th fence and reach the first position, and M is an integer greater than 0 and less than or equal to N-1.
Therefore, the first terminal device can collect the positioning information and send the positioning information to the cloud server, so that the cloud server constructs an N-layer fence with the first position as the center according to the first dot data. Therefore, after the cloud server constructs the multiple layers of fences, the terminal device can compare the collected positioning information with the positioning information corresponding to each layer of fence, so that the fence where the terminal device is located is determined (for example, the terminal device is located at the M-th layer of fence or a position between the M-th layer of fence and the M-1-th layer of fence), and accurate positioning of the terminal device is achieved. In addition, the terminal equipment can automatically open the two-dimensional code when the user is close to the gate (for example, the user is determined to be located at the innermost fence), so that the effect that the user conveniently takes a vehicle (for example, boarding, taking a ship, getting on a subway, getting on a cable car and the like) is achieved, and the user experience is improved.
In one possible implementation, the preset area includes a subway station, an airport, a railway station, a dock, or a cable car waiting area.
Therefore, when the multilayer fence with different scenes is constructed, the preset areas can be different. Namely, the multilayer fence construction method provided by the embodiment of the application has the advantages of wide application range and strong adaptability.
In one possible implementation, the first location comprises a location of a gate located within a subway station, an airport, a train station, a dock, or a cable waiting area.
That is, the first position corresponds to the preset area. For example, if the preset area is a subway station, the first position may be a position where a gate in the subway station is located; if the predetermined area is a train station, the first location may be a location of a gate in the train station.
In one possible implementation, the positioning information includes different types of positioning signals and corresponding strengths of the positioning signals.
It can be understood that, according to the signal transmission principle, the signal strength decreases with the increase of the propagation distance in the spatial propagation process, and the closer the receiving end device is to the signal source, the stronger the received signal strength; the further the receiving end device is from the signal source, the weaker the received signal strength. In addition, the relationship between the signal strength and the propagation distance of different types of positioning signals is also different. Thus, the geographical coordinates of the first terminal device may be determined by determining the type of positioning signal and its strength.
In a possible implementation manner, the positioning signal includes one or more of a global positioning system signal, a cell identifier, a bluetooth low energy signal, a wireless network signal, and a near field communication signal.
Because the positioning accuracy is different in the process of positioning by using different types of signals. For example, when the first terminal device performs positioning by using signals of a global positioning system, a cell identifier, a bluetooth low energy signal, and a wireless network signal, respectively, to obtain a geographic coordinate, the accuracy of the obtained geographic coordinate is sequentially reduced. In this way, the terminal device can select one or more of global positioning system signals, cell identifiers, bluetooth low energy consumption signals, wireless network signals and near field communication signals to determine the geographic coordinates according to the actual conditions (for example, whether the terminal device is located on the ground or underground, whether a wireless network or a bluetooth device is installed, and the like) in the preset area, and the geographic coordinates are determined more accurately.
In a fourth aspect, the present application provides a method for constructing a multi-layer fence, which is applied to a first terminal device, and includes: collecting first dot data in a preset area based on a first frequency; the first dot data comprises positioning information which is acquired by the first terminal equipment in a preset area based on a first frequency; constructing N layers of fences taking the first position as the center according to the first dot data, wherein N is more than or equal to 2, and the first position is located in a preset area; when the outermost fence of the N layers of fences is a 0 th fence and the innermost fence is an N-1 th fence, the M-th fence corresponds to first positioning information, the first positioning information includes positioning information acquired by the first terminal device at a first time, the first time is a time when the first terminal device starts from the 0 th fence and time T1 elapses, T1= T × M/N, where T is time required for the first terminal device to start from the 0 th fence and reach the first position, and M is an integer greater than 0 and less than or equal to N-1.
Therefore, the first terminal equipment can directly construct the multilayer fence adaptive to the first terminal equipment according to the acquired positioning information after acquiring the positioning information, and the multilayer fence has individual adaptability and can protect the privacy of users. So, this terminal equipment utilizes the location result that multilayer rail obtained also more accurate to make terminal equipment can further accurate self and the distance between the floodgate machine, reach the effect of opening the two-dimensional code in good time, convenience of customers takes the vehicle, promotes user experience.
In one possible implementation, constructing N-level fences centered at a first location from the first dot data includes: screening from the first dot data to obtain a plurality of positioning information corresponding to the M-th layer fence, wherein the plurality of positioning information correspond to a plurality of geographic coordinates; generating an M-tier fence from the plurality of geographic coordinates.
As can be seen, each layer of fence can correspond to multiple positioning information and multiple geographic coordinates (multiple positioning information corresponds to multiple geographic coordinates). Therefore, the terminal equipment can judge which fence the terminal equipment is in by acquiring the positioning information and/or the geographic coordinates of the terminal equipment, and accurate positioning of the terminal equipment is realized.
In one possible implementation, the method further includes: and determining a first position according to positioning information acquired when the first terminal equipment generates the target event.
It is to be appreciated that the first terminal device may be considered to arrive at a first location (e.g., gate location) when the first terminal device generates the target event. And the user can carry the first terminal equipment to pass through the first position for multiple times, and the target event is generated once after each time of passing. Therefore, the cloud server can perform data analysis on the positioning information acquired by the first terminal equipment when the first terminal equipment generates the target event every time and determine the first position, and the obtained result is more accurate.
In one possible implementation, the target event includes a subway code swiping event, an airport code swiping event, a train station code swiping event, a dock code swiping event, or a cable car code swiping event.
Therefore, when the multi-layer fence construction method is applied to different scenes, the types of the target events can be different. For example, when a multi-layer fence of an airport needs to be constructed, the target event is an airport code swiping event; when a multi-layer fence of a subway station needs to be constructed, the target event is a subway code swiping event; when a multi-layer fence of a railway station needs to be constructed, the target event is a code brushing event of the railway station; when a multi-layer fence of the wharf needs to be constructed, the target event is a wharf code brushing event; when a multilayer fence of a cable car waiting area needs to be constructed, the target event is a cable car code brushing event. By analogy, when a multi-layer fence of other areas needs to be constructed, the target event can also be a corresponding other event.
In one possible implementation, the method further comprises: acquiring second dotting data in the preset area based on a second frequency, wherein the second dotting data comprise positioning information acquired by the first terminal equipment in the preset area based on the second frequency; screening from the second dotting data to obtain first positioning information corresponding to the M-th fence, wherein the first positioning information comprises positioning information acquired by the first terminal device at a second moment, the second moment is the moment when the first terminal device starts from the 0-th fence and the time T2 elapses, and T2= T2M/N, wherein T2 is the time required by the first terminal device to start from the 0-th fence and reach the first position; and adding the first positioning information into a plurality of positioning information corresponding to the M-th layer fence.
The second frequency may be the same as or different from the first frequency. In a word, after the cloud server constructs the multilayer fence according to the positioning information acquired by the first terminal device, the first terminal device can continue to acquire the positioning information, so that a plurality of positioning information corresponding to each layer of fence is enriched, the multilayer fence is more accurate, and the positioning result obtained by the terminal device by utilizing the multilayer fence is more accurate.
In one possible implementation, the method further includes: and adding the geographic coordinates corresponding to the first positioning information into a plurality of geographic coordinates corresponding to the M-th layer of fence.
Therefore, in the process of updating the fences, not only can a plurality of positioning signals corresponding to each layer of fence be enriched, but also a plurality of geographic coordinates corresponding to each layer of fence can be enriched. In this manner, the geographic extent of the multi-tiered fence can be made more accurate.
In a possible implementation manner, if the first positioning information further corresponds to an X-th fence in the N-th fences, the method further includes: determining a first frequency of using the first positioning information as positioning information corresponding to the X-th layer fence, and determining a second frequency of using the first positioning information as positioning information corresponding to the M-th layer fence; x is an integer which is greater than 0 and less than or equal to N-1 and is not equal to M; if the first times are larger than the second times, determining that the first positioning information is positioning information corresponding to the X-th layer fence; and if the first times is less than or equal to the second times, determining the first positioning information and the positioning information corresponding to the M-th layer fence.
As can be understood, since the user is not necessarily in a uniform motion state, times for the second terminal device to acquire the first positioning information multiple times may be different, and thus fences corresponding to the first positioning information may also be different. Therefore, the first time and the second time of the first positioning information are respectively determined, and the fence corresponding to the first positioning information is determined according to the judgment results of the first time and the second time, so that the problem of position conflict caused by the fact that the same positioning information corresponds to multiple layers of fences can be avoided.
In one possible implementation, the preset area includes a subway station, an airport, a railway station, a dock, or a cable car waiting area.
Therefore, when constructing the multi-layer fence with different scenes, the preset areas can be different. Namely, the multilayer fence construction method provided by the embodiment of the application is wide in application range and high in adaptability.
In one possible implementation, the first location includes a location of a gate located within a subway station, an airport, a railway station, a dock, or a cable waiting area.
That is, the first position corresponds to the preset area. For example, if the preset area is a subway station, the first position may be a position where a gate in the subway station is located; if the predetermined area is a train station, the first position may be a position of a gate in the train station.
In one possible implementation, the positioning information includes different types of positioning signals and corresponding strengths of the positioning signals.
It can be understood that, according to the signal transmission principle, the signal strength decreases with the increase of the propagation distance in the spatial propagation process, and the closer the receiving end device is to the signal source, the stronger the received signal strength; the further the receiving end device is from the signal source, the weaker the received signal strength. In addition, the relationship between the signal strength and the propagation distance of different types of positioning signals is also different. Thus, the geographical coordinates of the first terminal device may be determined by determining the type of positioning signal and its strength.
In one possible implementation, the positioning signal includes one or more of a global positioning system signal, a cell identifier, a bluetooth low energy signal, a wireless network signal, and a near field communication signal.
The positioning accuracy is different in the positioning process by utilizing different types of signals. For example, when the first terminal device performs positioning by using signals of a global positioning system, a cell identifier, a bluetooth low energy signal, and a wireless network signal, respectively, to obtain a geographic coordinate, the accuracy of the obtained geographic coordinate is sequentially reduced. In this way, the terminal device can select one or more of global positioning system signals, cell identifiers, bluetooth low energy consumption signals, wireless network signals and near field communication signals to determine the geographic coordinates according to the actual conditions (for example, whether the terminal device is located on the ground or underground, whether a wireless network or a bluetooth device is installed, and the like) in the preset area, and the geographic coordinates are determined more accurately.
In a fifth aspect, the present application further provides a cloud server, where the cloud server includes: a wireless communication module, memory, and one or more processors; the wireless communication module, the memory and the processor are coupled;
wherein the memory is to store computer program code, the computer program code comprising computer instructions; the computer instructions, when executed by the processor, cause the cloud server to perform the multi-layer fence construction method of any one of the first and second aspects.
In a sixth aspect, the present application further provides a first terminal device, where the first terminal device includes: a wireless communication module, memory, and one or more processors; the wireless communication module and the memory are coupled with the processor;
wherein the memory is to store computer program code, the computer program code comprising computer instructions; the computer instructions, when executed by the processor, cause the first terminal device to perform the multi-level fence construction method of any one of the third and fourth aspects.
In a seventh aspect, the present application provides a computer storage medium, including computer instructions, which, when executed on a cloud server, cause the cloud server to perform the multi-layer fence constructing method according to any one of the first and second aspects; when the computer instructions are run on the first terminal device, the first terminal device is caused to execute the multi-layer fence constructing method according to any one of the third and fourth aspects.
In an eighth aspect, the present application provides a computer program product, which when run on a cloud server, causes the cloud server to execute the multi-layer fence constructing method according to any one of the first and second aspects; when the computer program product is run on a first terminal device, the first terminal device is caused to perform the method for constructing a multi-layer fence according to any one of the third and fourth aspects.
It is to be understood that the cloud server according to the fifth aspect, the first terminal device according to the sixth aspect, the computer storage medium according to the seventh aspect, and the computer program product according to the eighth aspect are all configured to execute the corresponding methods provided above, and therefore, the beneficial effects achieved by the cloud server according to the fifth aspect can refer to the beneficial effects in the corresponding methods provided above, and are not described herein again.
Drawings
Fig. 1 is a schematic system architecture diagram of a multi-layer fence constructing method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a cloud server provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a terminal device 200 according to an embodiment of the present application;
fig. 4 is a flowchart of a method for constructing a multi-layered fence according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of an outermost fence constructed according to an embodiment of the present application;
fig. 6 is a schematic diagram of another construction of an outermost fence according to an embodiment of the present application;
FIG. 7 is a detailed flowchart of S102 in FIG. 3;
fig. 8 is a schematic diagram of a fence according to an embodiment of the present application;
fig. 9 is a flowchart of another method for constructing a multi-layered fence according to an embodiment of the present disclosure;
fig. 10 is a flowchart of a method for constructing a multi-layered fence according to an embodiment of the present disclosure;
fig. 11 is a flowchart of a method for constructing a multi-layered fence according to an embodiment of the present disclosure;
FIG. 12 is an interface diagram provided by an embodiment of the present application;
FIG. 13 is another interface diagram provided by an embodiment of the present application;
fig. 14 is a flowchart of a further method for constructing a multi-layered fence according to an embodiment of the present disclosure;
fig. 15 is a schematic diagram of a chip system according to an embodiment of the present application.
Detailed Description
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present embodiment, "a plurality" means two or more unless otherwise specified.
Embodiments of the present embodiment will be described in detail below with reference to the accompanying drawings.
In a possible design, when the terminal reaches the security inspection door, the NFC signal can be detected, at the moment, the terminal can estimate the time of reaching the gate from the security inspection door, and then the riding two-dimensional code is popped up in time for a user to ride by swiping a code.
In another possible design, the terminal may automatically pop up the ride two-dimensional code upon detecting that its holder is approaching the gate. However, this method cannot accurately know when the passenger approaches the gate, so that the pop-up timing of the riding two-dimensional code is not accurate. For example, when the actual distance between the subway entrance and the gate (i.e., the actual walking distance of the user) is determined to be L and the preset time is T, only when the moving speed of the user is L/T (m/s), it can be ensured that the user really needs to pass through the gate when the two-dimensional bus bar code is automatically popped up, otherwise, no matter whether the moving speed of the user is greater than L/T (m/s) or the moving speed of the user is less than L/T (m/s), the timing of popping up the two-dimensional bus bar code by the terminal device is inaccurate, and the user experience is affected.
In the mode, the terminal equipment cannot accurately judge when the user passes through the gate, so that the time for popping up the riding two-dimensional code by the terminal equipment is not accurate, and the user is influenced to get on the station.
The embodiment of the application provides a method for constructing a multi-layer fence, which is applied to a cloud server. The cloud server may construct an N-tier fence centered around a first location (e.g., a gate location) from the first dot data sent by the plurality of first terminal devices. The first dot data comprises positioning information which is acquired by each first terminal device in a plurality of first terminal devices in a preset area based on a first frequency; when the outermost fence of the N layers of fences is a 0 th fence and the innermost fence is an N-1 th fence, the mth layer of fence corresponds to multiple pieces of positioning information, the multiple pieces of positioning information include positioning information acquired by each first terminal device at a first time corresponding to the first terminal device, the first time is a time when the first terminal device starts from the 0 th fence and after time T1 elapses, T1= T M/N, where T is a time required for the first terminal device to start from the 0 th fence and reach a first position, and M is an integer greater than 0 and less than or equal to N-1.
Therefore, the terminal equipment can realize accurate positioning of the terminal equipment according to the built multilayer fence, when the terminal equipment is determined to be close to the gate (for example, the terminal equipment is determined to be located in the innermost fence), the two-dimensional code is automatically opened, the effect that a user conveniently takes transportation means (for example, boarding, taking a ship, getting on a subway, getting on a cable car and the like) is achieved, and user experience is improved.
Referring to fig. 1, a system architecture diagram of the multi-layer fence constructing method provided in the embodiment of the present application includes a cloud server 100 and a plurality of terminal devices 200, where the plurality of terminal devices 200 are respectively in communication connection with the cloud server 100. For example, the terminal device 200 in the embodiment of the present application may be a mobile phone, a tablet computer, a desktop computer (desktop computer), a handheld computer, a notebook computer (laptop computer), an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), an Augmented Reality (AR) \ Virtual Reality (VR) device, or the like, which may be installed with the target application, and the embodiment of the present application does not particularly limit the specific form of the terminal device 200.
Fig. 2 shows a schematic structural diagram of the cloud server 100. The cloud server 100 is explained in detail below. It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the cloud server 100. In other embodiments, cloud server 100 may include more or fewer components than in fig. 2, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
As shown in fig. 2, the cloud server 100 may include a processor 110, a memory 120, and a communication module 130.
The processor 110 is operable to read and execute computer readable instructions. Specifically, the processor 110 may include a controller, an operator, and a register. The controller is mainly responsible for instruction decoding and sending out control signals for operations corresponding to the instructions. The arithmetic unit is mainly responsible for storing register operands, intermediate operation results and the like temporarily stored in the instruction execution process. In a specific implementation, the hardware architecture of the processor 110 may be an Application Specific Integrated Circuit (ASIC) architecture, an MIPS (micro processor with interleaved pipeline) architecture, an ARM (advanced risc processors) architecture, or a Network Processor (NP) architecture.
Memory 120 is coupled to processor 110 for storing various software programs and/or sets of instructions. In particular implementations, memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 120 may store an operating system, such as an embedded operating system like uCOS, vxWorks, RTLinux, etc.
The communication module 130 may be configured to establish a communication connection between the cloud server 100 and another communication terminal (e.g., a plurality of terminal devices 200 in fig. 1) via a network, and to transceive data via the network.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the cloud server 100. In other embodiments, the cloud server 100 may include more or fewer components than illustrated, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
In this embodiment, taking the terminal device 200 shown in fig. 1 as an example, a structure of the terminal device 200 provided in this embodiment is illustrated. As shown in fig. 3, the terminal device 200 (e.g., a mobile phone) may include: the mobile communication device includes a processor 210, an external memory interface 220, an internal memory 221, a Universal Serial Bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, keys 290, a motor 291, an indicator 292, a camera 293, a display 294, and a Subscriber Identity Module (SIM) card interface 295.
The sensor module 280 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the terminal device 200. In other embodiments, terminal device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units, such as: the processor 210 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
The controller may be a neural center and a command center of the terminal device 200. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
A memory may also be provided in processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 210. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (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.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only an exemplary illustration, and does not limit the structure of the terminal device 200. In other embodiments, the terminal device 200 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charge management module 240 is configured to receive a charging input from a charger. The charger can be a wireless charger or a wired charger. The charging management module 240 may also supply power to the terminal device through the power management module 241 while charging the battery 242.
The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charging management module 240, and provides power to the processor 210, the internal memory 221, the external memory, the display 294, the camera 293, and the wireless communication module 260. In some embodiments, the power management module 241 and the charging management module 240 may also be disposed in the same device.
The wireless communication function of the terminal device 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, a modem processor, a baseband processor, and the like. In some embodiments, antenna 1 of terminal device 200 is coupled to mobile communication module 250 and antenna 2 is coupled to wireless communication module 260, such that terminal device 200 may communicate with networks and other devices via wireless communication techniques.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in terminal device 200 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 250 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied on the terminal device 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 250 can receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation.
The mobile communication module 250 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the same device as at least some of the modules of the processor 210.
The wireless communication module 260 may provide a solution for wireless communication applied to the terminal device 200, including WLAN (e.g., wireless fidelity, wi-Fi) network, bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like.
The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
The terminal device 200 implements a display function through the GPU, the display screen 294, and the application processor. The GPU is a microprocessor for image processing, coupled to a display screen 294 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 294 is used to display images, video, and the like. The display screen 294 includes a display panel.
The terminal device 200 may implement a shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294, the application processor, and the like. The ISP is used to process the data fed back by the camera 293. The camera 293 is used to capture still images or video. In some embodiments, terminal device 200 may include 1 or N cameras 293, N being a positive integer greater than 1.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the terminal device 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 221 may be used to store computer-executable program code, including instructions. The processor 210 executes various functional applications of the terminal device 200 and data processing by executing instructions stored in the internal memory 221. For example, in the present embodiment, the processor 210 may execute instructions stored in the internal memory 221, and the internal memory 221 may include a program storage area and a data storage area.
The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, a phonebook, etc.) created during use of the terminal apparatus 200, and the like. In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The terminal device 200 may implement an audio function through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone interface 270D, and the application processor. Such as music playing, recording, etc.
The keys 290 include a power-on key, a volume key, and the like. The keys 290 may be mechanical keys. Or may be touch keys. The motor 291 may generate a vibration cue. The motor 291 can be used for both incoming call vibration prompting and touch vibration feedback. Indicator 292 may be an indicator light that may be used to indicate a state of charge, a change in charge, or may be used to indicate a message, missed call, notification, etc. The SIM card interface 295 is used to connect a SIM card. The SIM card can be attached to and detached from the terminal device 200 by being inserted into the SIM card interface 295 or being pulled out from the SIM card interface 295. The terminal device 200 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 295 may support a Nano SIM card, a Micro SIM card, a SIM card, etc.
The embodiment of the application provides a method for constructing a multilayer fence, which is applied to the cloud server 100 in fig. 1. Please refer to fig. 4, which is a flowchart of a method for constructing a multi-layered fence according to an embodiment of the present disclosure. The multilayer fence construction method comprises the following steps:
s101, receiving first dot data sent by a plurality of first terminal devices.
The first dot data comprises positioning information collected by each first terminal device in a preset area based on a first frequency. It should be noted that the first terminal device may be any one of the terminal devices 200 in fig. 1.
The preset area may be predetermined by the cloud server. The preset area may be different according to different actual application environments. For example, the preset area may include an area such as a subway station, an airport, a train station, a dock, or a cable waiting area. In consideration of the fact that public places such as subway stations and airports have large floor areas, the range of the preset area can be further reduced. For example, the preset area may be an area surrounded by a gate at a certain entrance of a subway station, a waiting area at a certain gate at an airport, an area surrounded by a security inspection door at a railway station to a ticket gate, or an area that can include a user movement track in other places (such as a dock and a cable car waiting area), which is not limited specifically herein.
It can be understood that, taking the preset area as the area from a certain entrance of the subway station to the gate for surrounding as an example, the position of the certain entrance can be considered as the outermost fence of the preset area. Thus, when the first terminal device detects that the user enters the outermost fence, the user can be considered to enter the subway station. In other words, the predetermined area may be an area surrounded by the outermost fence; therefore, the cloud server can establish the outermost fence and determine the preset area according to the outermost fence.
In an alternative embodiment, the cloud server may establish the outermost fence by extending a predetermined distance around the fence based on the first location (e.g., gate location), thereby determining the predetermined area. For example, as shown in fig. 5, the cloud server may use the gate 201 as a center and extend the same distance to the periphery to obtain the outermost fence 202. The cloud server can determine the first position according to positioning information collected when the plurality of first terminal devices generate the target event. It can be seen that the first terminal device may be considered to arrive at the first location when the first terminal device generates the target event. For example, the first location may be a location of a gate located in a subway station, an airport, a railway station, a dock, or a cable waiting area. The target event may refer to a code swiping event, and the code swiping event may be an event that a user scans a riding two-dimensional code displayed on the first terminal device by using a code scanning window of the gate to turn on the gate, or another event that is performed by using the first terminal device to turn on the gate, which is not particularly limited herein. For example, the target event may include a subway code swipe event, an airport code swipe event, a train station code swipe event, a dock code swipe event, or a cable car code swipe event. Taking the user taking a subway as an example, the user holds the terminal equipment to take the subway, when the user arrives at the gate, the two-dimensional code needs to be presented to the gate, and the gate is opened after scanning the code for the user to pass. At the moment, the terminal equipment can upload the collected positioning information, and the cloud server determines the position of the gate according to the positioning information collected by the plurality of terminal equipment when the code swiping event is detected.
In another alternative embodiment, as shown in fig. 6, the cloud server may also use the gate 201 as a center, and build the outermost fence 202 by extending irregularly around according to the actual terrain of the subway station (train station, airport, dock, cable waiting area, etc.). Or, the cloud server may also directly construct the outermost fence according to the actual terrain of the subway station (such as a train station, an airport, a wharf, a cable car waiting area, and the like).
After the cloud server determines the preset area, the first terminal device may determine whether to enter the preset area by acquiring a Global Positioning System (GPS) signal and/or a CELL identity (CELL ID) (e.g., a CELL ID of a room division base station of a subway station) signal. It is understood that when the first terminal device detects the entry into the outermost fence, the first terminal device can be considered to enter the preset area. Therefore, the first terminal device can determine whether the first terminal device is located in the preset area by judging whether the first terminal device enters the outermost fence.
Next, how to determine whether the first terminal device is located in the preset area will be described by taking the preset area as an example of an area where a subway station is located. In an optional implementation manner, the first terminal device may monitor a GPS signal in real time, determine a real-time location of the first terminal device through the GPS signal, and determine that the first terminal device enters the outermost fence (the preset area) when the real-time location is determined to be within the range of the subway station. Or, the first terminal device may obtain the CELL ID in real time, and determine the real-time location of the first terminal device through the CELL ID, so that when the real-time location of the first terminal device is determined to be within the range of the subway station, the first terminal device is determined to enter the outermost fence (the preset area). Or, the first terminal device may acquire the GPS signal and the CELL ID in real time, and determine that the first terminal device enters the outermost fence (the preset area) when the real-time positions indicated by the GPS signal and the CELL ID are within the range of the subway station. Therefore, the accuracy of the detection result can be improved, and the misjudgment can be reduced.
In another alternative embodiment, the first terminal device may determine whether the outermost fence is located on the ground or underground according to the information of the position of the outermost fence, the terrain of the subway station, the floor area and the like. If the outermost fence is located on the ground, the first terminal device can determine whether to enter the outermost fence according to the GPS signal and the CELL ID; considering that the GPS is not accurately located underground, the first terminal device may determine whether to enter the outermost fence according to the CELL ID when determining that the outermost fence is located underground. So, through considering that outermost rail is located the condition on ground or underground, first terminal equipment can utilize different signals to judge whether get into outermost rail, avoids the inaccurate problem in location that the signal inaccurate leads to, improves the accuracy of judged result, reduces the possibility of erroneous judgement.
When the first terminal equipment detects that the first terminal equipment enters a preset area (outermost fence), the first terminal equipment collects positioning information, and continuously collects the positioning information according to a first frequency from the moment of collecting the positioning information until the first terminal equipment detects a target event. When the first terminal device detects the target event, the first terminal device can acquire the positioning information for the last time.
The first frequency may be understood as a time interval between the first terminal device and the first terminal device collecting the positioning information. For example, the first frequency of the first terminal device may be 2 seconds/time, and the process of the first terminal device acquiring the positioning information may be: the method comprises the steps of collecting positioning information once when the condition that the first terminal device enters a pre-constructed outermost fence is detected, and then collecting the positioning information once again at intervals of 2s until a target event is detected, wherein the first terminal device collects the positioning information for the last time. For another example, the first frequency of the first terminal device may be 5 seconds/time, and the process of the first terminal device acquiring the positioning information includes: when the situation that the mobile terminal enters the pre-constructed outermost fence is detected, the positioning information is collected once, and then the positioning information is collected again at intervals of 5s until the target is detected, and the first terminal equipment collects the positioning information for the last time. It should be noted that the first frequencies of different first terminal devices may be the same or different, and are not limited herein.
The positioning information may be used to indicate the type and strength of the positioning signal. Therefore, the geographic coordinates of the first terminal device when the first terminal device collects the positioning information can be determined according to the positioning information. Optionally, the positioning signal may include one or more of GPS, CELL ID, bluetooth Low Energy (BLE), basic Service Set Identifier (BSSID), near Field Communication (NFC), and the like. In this manner, the first terminal device may determine the geographic coordinates of the first terminal device from one or more of the collected GPS, CELL ID, BLE, BSSID, NFC, etc. signals.
Illustratively, a wireless Access Point (AP) may be disposed within the subway station, and the AP may be configured to generate a wireless network signal. Therefore, the first terminal device can detect the wireless network signal and determine the signal strength of the wireless network signal after entering the subway station. The first terminal device may further determine a BSSID of the AP device according to the detected public wireless network, where the BSSID is a Media Access Control (MAC) address of the AP device. The signal strength of the wireless network signal is weakened along with the increase of the propagation distance in the space propagation process, and the closer the receiving end equipment is to the signal source, the stronger the received signal strength is; the further the receiving end device is from the signal source, the weaker the received signal strength. In this way, the first terminal device may determine a signal source according to the BSSID, estimate a distance between the first terminal device and the signal source (AP device) according to the signal strength of the detected wireless network signal and a known positioning model, and then estimate geographical coordinates of the first terminal device according to the estimated distance between the first terminal device and the AP devices.
Further alternatively, a plurality of positioning tags (for example, beacons) may be provided in advance in the subway station. When the first terminal device enters the signal coverage of the positioning tag, the broadcast signal of the positioning tag can be detected. Therefore, the first terminal device can also calculate the geographic coordinate of the first terminal device according to the broadcast signal and a preset positioning algorithm.
When the first terminal device performs positioning based on the four signal pairs of GPS, CELL ID, BLE, and BSSID, the accuracy of the geographic coordinates obtained based on BLE, BSSID, CELL ID, and GPS signals is sequentially reduced. In this way, the first terminal device may select one or more of NFC, BLE, BSSID, CELL ID, GPS signals according to actual requirements to determine the geographic coordinates of the first terminal device, which is more accurate.
In an alternative embodiment, the types of the positioning information collected by the first terminal device each time may not be consistent. For example, as shown in table 1: the first terminal device enters the outermost fence at 09; the first terminal device collects the positioning information for the second time after 5 seconds of collecting the positioning information for the first time, namely at 09; the first terminal device collects the positioning information for the third time after 5 seconds of collecting the positioning information for the second time, namely at 09; the first terminal device collects the positioning information for the fourth time after 5 seconds of collecting the positioning information for the third time, namely at 09.
TABLE 1
Dotting sequence number Time of dotting Type of signal
1 09:22:50 GPS、CELL ID
2 09:22:55 CELL ID
3 09:23:00 CELL ID、BLE、BSSID
4 09:23:05 CELL ID、BSSID、NFC
…… …… ……
10 09:23:35 BLE、BSSID
In general, when the first terminal device collects positioning information several times, it may be considered that the user has just entered the subway station and is far away from the gate, and a signal with relatively low positioning accuracy (such as a GPS) may be used to position the first terminal device. As the number of times of acquiring the positioning information by the first terminal device increases, it may be considered that the user is closer to the gate, and the requirement for the positioning accuracy of the first terminal device is higher, so that the positioning may be performed by using signals (e.g., BLE, BSSID) with relatively high positioning accuracy. Therefore, the positioning signals of different types are acquired according to the distance between the first terminal device and the gate, the positioning requirement of the first terminal device can be met, and the problem that the power consumption of the first terminal device is large due to the fact that all types of positioning signals are acquired for a long time can be solved.
It can be understood that each first terminal device may collect the positioning information in the above manner, and upload the positioning information to the cloud server. It should be noted that the first terminal device may upload the acquired positioning information in real time, that is, when the first terminal device acquires the positioning information, the first terminal device immediately uploads the positioning information to the cloud server. The first terminal device may also upload all positioning information collected in one dotting process to the server together after detecting the target event. The dotting process starts when the first terminal device detects that the first terminal device enters the outermost fence, and ends when the first terminal device detects the target event.
S102, constructing N layers of fences with the first position as the center according to the first dot data, wherein N is more than or equal to 2, and the first position is located in a preset area.
When the outermost fence of the N layers of fences is the 0 th fence and the innermost fence is the (N-1) th fence, the M-th fence corresponds to a plurality of positioning information. The plurality of positioning information includes positioning information acquired by each first terminal device at a first time corresponding to the first terminal device. The first time is the time when the first terminal device starts from the 0 th fence and the time T1 elapses, T1= T × M/N, where T is the time required for the first terminal device to start from the 0 th fence and reach the first position, and M is an integer greater than 0 and less than or equal to N-1.
Please refer to fig. 7, which is a flowchart illustrating the step S102. The S102 includes:
and S1021, screening a plurality of positioning information corresponding to the M-th layer of fence from the first dot data, wherein the plurality of positioning information correspond to a plurality of geographic coordinates.
It can be understood that each layer of fence in the N layers of fences corresponds to a plurality of positioning information, and the plurality of positioning information corresponding to different layers of fences are different. In addition, each first terminal device may correspond to a plurality of first time instants, the plurality of first time instants corresponding to the multi-layer fence. In this way, the cloud server may classify a plurality of positioning information included in the first dotting data to form a dotting record of each first terminal device, and then determine a plurality of first moments corresponding to the first terminal device according to each dotting record.
For example, the first dot data may further include an identifier of each first terminal device, and each positioning information corresponds to one identifier. The cloud server may classify a plurality of positioning information included in the first dotting data based on the identifier, so as to obtain a dotting record of each first terminal device. The dotting record may include the positioning information collected by the first terminal device and the time when the positioning information was collected. Therefore, the cloud server can determine a plurality of corresponding first moments according to the dotting record of each first terminal device, and determine a plurality of positioning information corresponding to each layer of fence by combining each first moment.
It should be noted that, in order to ensure the accuracy of the screening result, before the cloud server screens the multiple positioning information corresponding to the mth-layer fence, the cloud server may perform operations such as discretization and smoothing on the positioning information included in the first dot data. For example, the cloud server determines that a dotting process includes positioning information acquired at the time T1 and positioning information acquired at the time T3, but the cloud server should also include positioning information acquired at the time T2 according to normal logic of the first terminal device for acquiring the positioning information; the time T1, the time T2, and the time T3 are three adjacent times. At this time, the cloud server may infer the positioning information at the time T2 according to the positioning information acquired at the time T1 and the positioning information acquired at the time T3, and add the positioning information at the time T2 inferred to the plurality of positioning information included in the dotting process. For another example, the cloud server determines that positioning information acquired at times T1, T2, and T3 is included in one dotting process (where the times T1, T2, and T3 are three adjacent times), but the positioning information at the time T2 is greatly different from the positioning information at the times T1 and T3, the cloud server may determine that the positioning information at the time T2 is abnormal, perform a smoothing operation on the positioning information at the time T2 according to the positioning information at the times T1 and T3, and replace the original positioning information at the time T2 with the positioning information obtained by the smoothing operation.
Illustratively, the dotting record of the terminal device 1 can be shown in table 2, the terminal device 1 detects entering the outermost fence (the 0 th fence) and collects the positioning information 1 at the time of 18. It can be seen that 30 seconds are required for the terminal device 1 to arrive at the first position starting from the fence at level 0. Assuming that N =5, since the positioning information corresponding to the layer 0 fence should be the positioning information acquired when the terminal device 1 enters the layer 0 fence (i.e., 18. The positioning information corresponding to the fence on the layer 1 should be positioning information acquired after 1/5 × 30=6 seconds from the end of the terminal device 1 in the following section of 18; therefore, the cloud server may determine location information 2 as location information corresponding to the layer 1 fence. The positioning information corresponding to the 2 nd fence is the positioning information acquired by the terminal device 1 after 2/5 × 30=12 seconds from the start of 18; therefore, the cloud server may determine the location information 3 as location information corresponding to the layer 2 fence. The positioning information corresponding to the fence at the 3 rd floor should be positioning information acquired by the terminal device 1 after 3/5 × 30=18 seconds from the position of 18; therefore, the cloud server may determine location information 4 as location information corresponding to the layer 3 fence. The positioning information corresponding to the fence on the 4 th floor should be the positioning information acquired by the terminal device 1 after 4/5 × 30=24 seconds from the position of the terminal device 22; therefore, the cloud server may determine the location information 5 as location information corresponding to the layer 4 fence.
TABLE 2
Serial number Time Positioning information
1 18:22:50 Positioning information 1
2 18:22:56 Positioning information 2
3 18:23:02 Location information 3
4 18:23:08 Location information 4
5 18:23:14 Location information 5
6 18:23:20 Location information 6
For another example, as shown in table 3, the dotting record of the terminal device 2 is that the terminal device 2 detects entering the outermost fence and collects the positioning information a at 08; further, the terminal device 2 detects the target event and collects the positioning information E at 08. It can be seen that it takes 24 seconds for the terminal device 2 to arrive at the first position starting from the tier 0 fence. Assuming that N =4, since the positioning information corresponding to the fence at the layer 0 should be the positioning information acquired when the terminal device 2 enters the fence at the layer 0 (i.e. 08; the positioning information corresponding to the 1 st fence is the positioning information acquired by the terminal device 2 after 1/4 × 24=6 seconds from the 08; the positioning information corresponding to the fence on the 2 nd floor should be positioning information acquired after 2/4 × 24=12 seconds from 08; the positioning information corresponding to the fence at the 3 rd floor should be positioning information acquired by the terminal device 2 after 3/4 × 24=18 seconds from 08. In this way, the cloud server may determine the positioning information a as positioning information corresponding to the fence at layer 0, and use the positioning information D as positioning information corresponding to the fence at layer 3.
TABLE 3
Serial number Time Positioning information
1 08:22:50 Positioning information A
2 08:22:55 Positioning information B
3 08:23:00 Positioning information C
4 08:23:05 Positioning information D
5 08:23:14 Location information E
And S1022, generating M layers of fences according to the multiple geographic coordinates.
For example, as shown in fig. 8 (a), the plurality of positioning information corresponding to the mth-layer fence respectively correspond to the geographic coordinates A1, B1, C1, D1, E1, and F1, and then the mth-layer fence 503 shown in fig. 8 (B) may be generated according to the geographic coordinates A1, B1, C1, D1, E1, and F1. By analogy, each of the N layers of fences can be generated. In fig. 8, 501 can be understood as the innermost fence and 502 can be understood as the outermost fence.
It will be appreciated that the greater the number of geographic coordinates, the more accurate the M-layer fence will be generated.
In an optional implementation manner, after the cloud server constructs the N-layer fence, the cloud server may send the related data of the N-layer fence to the plurality of first terminal devices. Therefore, each first terminal device can judge the fence where the first terminal device is located according to the collected positioning information and the constructed N layers of fences. For example, the first terminal device may collect the positioning information every 5 seconds after detecting the entry into the outermost fence. The first terminal device may compare the acquired positioning information with a plurality of positioning information corresponding to each layer of fence every time the first terminal device acquires the positioning information, so as to determine the fence in which the first terminal device is located (for example, the first terminal device may be located in the mth layer of fence, or between the mth layer of fence and the M-1 layer of fence). When the first terminal device detects that it is approaching the innermost fence (e.g., just reaching the innermost fence, or about to reach the innermost fence, or already within the innermost), the ride two-dimensional code is popped up.
For another example, after detecting that the mobile terminal enters the outermost fence, the first terminal device may collect the positioning information every 5 seconds, collect the positioning information every time, and determine the geographic coordinate corresponding to the positioning information. In addition, the first terminal device may compare the geographic coordinate with multiple geographic coordinates corresponding to each layer of fence, so as to determine a fence in which the first terminal device is located (for example, the first terminal device may be located in an mth layer of fence, or between the mth layer of fence and an M-1 layer of fence). When the first terminal device detects that it is approaching the innermost fence (e.g., just reaching the innermost fence, or is about to reach the innermost fence, or is already located within the innermost), the ride two-dimensional code is popped up.
Therefore, the multilayer fence can accurately position the terminal equipment by constructing the multilayer fence. Therefore, the terminal equipment can automatically open the two-dimensional code when the user is close to the gate, the effect that the user can conveniently take the vehicle is achieved, and the user experience is improved.
In an optional implementation manner, after the N-layer fence is constructed by the cloud server, the related data of the N-layer fence may also be sent to the second terminal device, and the N-layer fence is updated according to the second dotting data uploaded by the second terminal device. Referring to fig. 9, the method for constructing a multi-layered fence provided by the present application further includes:
and S103, receiving second dotting data sent by the second terminal equipment.
The second dotting data comprise positioning information collected by the second terminal device in the preset area based on the second frequency. It should be noted that the second terminal device may be one of the plurality of first terminal devices, or may be another terminal device different from the first terminal device. The second frequency may be the same as the first frequency or different from the first frequency, and is not limited herein.
In addition, a process of the second terminal device acquiring the positioning information in the preset area based on the second frequency is substantially similar to a process and a principle of the first terminal device acquiring the positioning information in the preset area based on the first frequency, and for details, reference is made to the foregoing contents, which are not repeated herein.
And S104, screening the second dotting data to obtain first positioning information corresponding to the fence of the M layer.
And the first positioning information comprises positioning information acquired by the second terminal equipment at the second moment. The second time is the time after the second terminal device starts from the fence of the 0 th floor and the time t2 elapses. Where T2= T2 × M/N, T2 is the time required for the second terminal device to arrive at the first location from the 0 th fence.
And S105, adding the first positioning information into a plurality of positioning information corresponding to the M-th layer fence.
In an optional implementation manner, the cloud server may further add the geographic coordinate corresponding to the first positioning information to the multiple geographic coordinates corresponding to the mth-layer fence. So, after establishing the multilayer rail, the cloud server can also continue to enrich a plurality of locating information that every layer of rail corresponds according to second terminal equipment's locating information, can make the multilayer rail more accurate to terminal equipment utilizes the positioning result that the multilayer rail obtained also more accurate.
As can be understood, since the user is not necessarily in a uniform motion state, the time for the second terminal device to acquire the first positioning information for multiple times may not be the same, so that the fences corresponding to the first positioning information may also be different.
In an optional implementation manner, if the first positioning information further corresponds to an X-th fence in the N-th fences, the cloud server may further determine a first number of times that the first positioning information is used as positioning information corresponding to the X-th fence, and determine a second number of times that the first positioning information is used as positioning information corresponding to the M-th fence; x is an integer which is greater than 0 and less than or equal to N-1 and is not equal to M; if the first times are larger than the second times, determining that the first positioning information is positioning information corresponding to the X-th layer fence; and if the first times is less than or equal to the second times, determining the first positioning information and the positioning information corresponding to the M-th layer fence. Therefore, the problem of conflict caused by the fact that the same positioning information corresponds to the multilayer fence can be avoided.
Wherein the first time number satisfies the formula:
Figure BDA0003476782460000181
wherein, count X Is the first order, y X And i is the frequency of the first positioning information serving as the positioning information corresponding to the X-th layer fence on the ith day, pi is the preset weight corresponding to the ith day, Y is the preset effective number of days, and i is more than or equal to 1 and less than or equal to Y.
The second number satisfies the formula:
Figure BDA0003476782460000182
wherein, count M Is a second order, y M i is the number of times that the first positioning information is taken as the positioning information corresponding to the M-th layer of fence on the ith day, pi is the preset weight corresponding to the ith day, Y is the preset effective number of days, and i is more than or equal to 1 and is less than or equal to Y.
In the above two equations, pi is smaller as i is larger. That is, the first frequency and the second frequency of the first positioning information can be finally obtained by counting the times of the first positioning information respectively serving as the positioning information corresponding to the X-th layer fence and the times of the first positioning information serving as the positioning information corresponding to the M-th layer fence within the 1 st to Y-th days of the day, and combining the preset weights of each day.
It should be further noted that other terminal devices may also acquire the first positioning information. That is, when the first number and the second number are counted, the condition of the first positioning information acquired by other terminal devices can be counted.
For example, the cloud server receives the first positioning information 4 times in the same day (3.31 days), wherein the cloud server takes the first positioning information as positioning information corresponding to the mth-layer fence 3 times and takes the first positioning information as positioning information corresponding to the xth-layer fence 1 time; the cloud server receives the first positioning information 5 times in the previous day (3.30 days), wherein the cloud server takes the first positioning information as positioning information corresponding to the mth-layer fence 2 times, takes the first positioning information as positioning information corresponding to the xth-layer fence 3 times, and p1=0.9 and p2=0.8.
Thus, the first time =1 × p1+3 × p2=3.3 of the first positioning information; the second time =3 × p1+2 × p2=4.3 of the first positioning information, and then since the first time is less than the second time, the cloud server finally uses the first positioning information as the positioning information corresponding to the mth layer of fence.
Therefore, the first time and the second time of the first positioning information are respectively determined, and the fence corresponding to the first positioning information is determined according to the judgment results of the first time and the second time, so that the problem of position conflict caused by the fact that the same positioning information corresponds to multiple layers of fences can be avoided.
The embodiment of the application further provides a multi-layer fence construction method which is applied to the cloud server. Referring to fig. 10, the method for constructing a multi-layered fence includes:
s201, receiving first dot data sent by first terminal equipment.
The first dot data comprises positioning information which is acquired by the first terminal equipment in a preset area based on a first frequency.
S202, constructing N layers of fences with the first position as the center according to the first dot data, wherein N is more than or equal to 2, and the first position is located in a preset area.
When the outermost fence of the N layers of fences is the 0 th fence and the innermost fence is the (N-1) th fence, the mth layer of fence corresponds to the multiple pieces of positioning information. The plurality of positioning information includes positioning information acquired by the first terminal device at a first time. The first time is the time after the first terminal device starts from the fence at the 0 th floor and the time t1 elapses. Wherein T1= T × M/N, T is the time required for the first terminal device to arrive at the first position from the 0 th fence. M is an integer greater than 0 and less than or equal to N-1.
As can be seen, the cloud server may also construct a multi-layer fence adapted to one terminal device (e.g., the first terminal device) according to only the positioning information collected by the terminal device. So, the multilayer rail that finally obtains more possesses individual adaptability, and the positioning result that this terminal equipment utilized multilayer rail to obtain is also more accurate to make terminal equipment can further accurate self and the distance between the floodgate machine, reach the effect of opening the two-dimensional code in good time, convenience of customers takes the vehicle, promotes user experience.
It should be noted that the principles of S201 to S202 are similar to those of S101 to S102, and are not described again in detail here.
The embodiment of the application also provides a multilayer fence construction method which is applied to the first terminal device. Referring to fig. 11, the method for constructing a multi-layered fence includes:
s301, collecting first dot data in a preset area based on a first frequency.
The first dot data comprises positioning information which is acquired by the first terminal equipment in a preset area based on a first frequency.
S302, sending the first dot data to a cloud server so that the cloud server can construct N layers of fences with the first position as the center according to the first dot data, wherein N is larger than or equal to 2, and the first position is located in a preset area.
When the outermost fence of the N layers of fences is the 0 th fence and the innermost fence is the (N-1) th fence, the mth layer of fence corresponds to the multiple pieces of positioning information. The plurality of positioning information includes positioning information acquired by each first terminal device at a first time corresponding to the first terminal device. The first time is the time after the first terminal device starts from the fence at the 0 th floor and the time t1 elapses. Wherein T1= T × M/N, T is the time required for the first terminal device to arrive at the first position from the 0 th fence. M is an integer greater than 0 and less than or equal to N-1.
Therefore, the first terminal device can collect the positioning information and send the positioning information to the cloud server, so that the cloud server constructs an N-layer fence with the first position as the center according to the first dot data. Therefore, after the cloud server constructs the multiple layers of fences, the terminal device can compare the collected positioning information with the positioning information corresponding to each layer of fence, so that the fence where the terminal device is located is determined (for example, the terminal device is located at the M-th layer of fence or a position between the M-th layer of fence and the M-1-th layer of fence), and accurate positioning of the terminal device is achieved. In addition, the terminal equipment can automatically open the two-dimensional code when the user is close to the gate (for example, the user is determined to be located at the innermost fence), so that the effect that the user conveniently takes a vehicle (for example, boarding, taking a ship, getting on a subway, getting on a cable car and the like) is achieved, and the user experience is improved.
In an optional embodiment, as shown in fig. 12, the first terminal device may display a main interface 1201, and before the first terminal device sends the first dot data to the cloud server, the first terminal device may display a prompt box 1202, where the prompt box 1202 is used to inquire of a user whether the first terminal device can upload positioning information (send the first dot data to the cloud server), so as to ensure privacy of the user. It should be noted that the first terminal device may also display the prompt box 1202 on another interface (e.g., a screen lock interface or an interface corresponding to an application).
In another alternative embodiment, as shown in fig. 13, the first terminal device may display an installation interface 1301 of a related application (for example, APP1, where APP1 is an application that can pop up a riding two-dimensional code for a user to ride), and the installation interface 1301 may display a trademark, a slogan (e.g., "make it more convenient to get out") and the like of APP 1. The first terminal device may further display an authority acquisition prompt box 1302 on the installation interface 1301, where the authority acquisition prompt box 1302 is configured to ask for an application authority of the APP1 to upload the positioning information. If the user allows APP1 to upload the positioning information, the user may click (long press or other operation) the allow button 1303, so that the first terminal device may send the first dot data to the cloud server.
It should be noted that the principles of S301 to S302 are similar to those of S101 to S102, and are not described herein again.
The embodiment of the application also provides a multilayer fence construction method which is applied to the first terminal device. Referring to fig. 14, the method for constructing a multi-layered fence includes:
s401, collecting first dot data in a preset area based on a first frequency.
The first dot data comprises positioning information collected by the first terminal device in a preset area based on the first frequency.
S402, constructing N layers of fences with a first position as the center according to the first dot data, wherein N is larger than or equal to 2, and the first position is located in a preset area.
When the outermost fence of the N layers of fences is the 0 th layer of fence and the innermost fence is the (N-1) th layer of fence, the M layer of fence corresponds to the first positioning information. The first positioning information includes positioning information acquired by the first terminal device at a first time. The first time is the time after the first terminal device starts from the fence at the 0 th floor and the time t1 elapses. Wherein T1= T × M/N, T is the time required for the first terminal device to arrive at the first position from the 0 th fence. M is an integer greater than 0 and less than or equal to N-1.
It should be noted that the principles of S401 to S402 are similar to those of S101 to S102, and are not described in detail here.
Another embodiment of the present application provides a chip system 1500, as shown in fig. 15, where the chip system 1500 includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 and the interface circuit 1502 may be interconnected by wires. For example, the interface circuit 1502 may be used to receive signals from other devices (e.g., the memory of the terminal equipment in FIG. 3). Also for example, interface circuit 1502 may be used to send signals to other devices, such as processor 1501.
For example, the interface circuit 1502 may read instructions stored in a memory in the terminal device and send the instructions to the processor 1501. The instructions, when executed by the processor 1501, may cause a terminal device (e.g., the terminal device shown in fig. 3) to perform the various steps in the embodiments described above.
For another example, interface circuit 1502 may read instructions stored in a memory in the cloud server and send the instructions to processor 1501. The instructions, when executed by the processor 1501, may cause a cloud server (e.g., the cloud server shown in fig. 2) to perform the various steps in the embodiments described above.
Of course, the chip system 1500 may also include other discrete devices, which is not specifically limited in this embodiment.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application, in essence or part of the technical solutions contributing to the prior art, or all or part of the technical solutions, may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
It should be noted that the terminal device in the present application collects and sends data to the server, and performs operations related to user data, such as processing and using the data, only when permission of the user is obtained.
The above description is only a specific implementation of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered within the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A multi-layer fence construction method is applied to a cloud server, wherein the cloud server is in communication connection with a plurality of first terminal devices, and the method comprises the following steps:
receiving first dot data sent by the first terminal devices, wherein the first dot data comprise positioning information collected by each first terminal device in the first terminal devices in a preset area based on a first frequency;
constructing N layers of fences with a first position as the center according to the first dot data, wherein N is more than or equal to 2, and the first position is located in the preset area; the first position is determined according to positioning information acquired when the plurality of first terminal devices generate a target event, wherein the target event comprises a subway code brushing event, an airport code brushing event, a railway station code brushing event, a wharf code brushing event or a cable car code brushing event; the preset area is an area included by the outermost fence of the N layers of fences;
when the outermost fence of the N layers of fences is a 0 th layer of fence and the innermost fence is an N-1 th layer of fence, the mth layer of fence corresponds to multiple pieces of positioning information, where the multiple pieces of positioning information include positioning information acquired by each first terminal device at a first time corresponding to the first terminal device, the first time is a time when the first terminal device starts from the 0 th layer of fence and after time T1 elapses, T1= T M/N, where T is a time required for the first terminal device to start from the 0 th layer of fence and reach the first position, and M is an integer greater than 0 and less than or equal to N-1.
2. The method of constructing a multi-level pen of claim 1 wherein constructing an N-level pen centered at a first location from the first dot data comprises:
screening the first dot data to obtain a plurality of positioning information corresponding to the M-th layer fence, wherein the plurality of positioning information correspond to a plurality of geographic coordinates;
generating the M-tier fence from the plurality of geographic coordinates.
3. The method for constructing the multi-layer fence according to claim 1 or 2, wherein the cloud server is further connected with a second terminal device in a communication manner, and the method further comprises:
receiving second dotting data sent by the second terminal equipment, wherein the second dotting data comprise positioning information acquired by the second terminal equipment in the preset area based on a second frequency;
screening and obtaining first positioning information corresponding to the M-th layer of fence from the second dotting data, wherein the first positioning information comprises positioning information acquired by the second terminal device at a second time, the second time is the time after T2 elapses since the second terminal device starts from the 0-th layer of fence, and T2= T2M/N, wherein T2 is the time required for the second terminal device to start from the 0-th layer of fence and reach the first position;
adding the first positioning information to the plurality of positioning information corresponding to the M-th layer fence.
4. The method of constructing a multi-layered pen according to claim 3, further comprising:
and adding the geographic coordinate corresponding to the first positioning information into the multiple geographic coordinates corresponding to the M-th layer fence.
5. The method of claim 3, wherein if the first positioning information further corresponds to an X-th fence of the N-th fences, the method further comprises:
determining a first frequency that the first positioning information is used as positioning information corresponding to the X-th layer fence, and determining a second frequency that the first positioning information is used as positioning information corresponding to the M-th layer fence; x is an integer which is greater than 0 and less than or equal to N-1 and is not equal to M;
if the first time is greater than the second time, determining that the first positioning information is positioning information corresponding to the X-th layer fence;
and if the first times is less than or equal to the second times, determining the first positioning information and the positioning information corresponding to the M-th layer fence.
6. The method of constructing a multi-story fence as claimed in claim 1 or claim 2, wherein the predetermined area comprises a subway station, an airport, a railway station, a dock or a cable waiting area.
7. A method of constructing a multi-level fence according to claim 1 or claim 2 wherein the first location comprises a location of a gate within a subway station, airport, railway station, dock or cable waiting area.
8. A method of constructing a multi-tiered fence as claimed in claim 1 or claim 2 wherein the location information includes different types of location signals and their corresponding strengths.
9. The method of claim 8, wherein the positioning signal comprises one or more of a global positioning system signal, a cell identifier, a bluetooth low energy signal, a wireless network signal, and a near field communication signal.
10. A multi-layer fence construction method is applied to a cloud server, wherein the cloud server is in communication connection with a first terminal device, and the method comprises the following steps:
receiving first dot data sent by the first terminal equipment, wherein the first dot data comprise positioning information acquired by the first terminal equipment in a preset area based on a first frequency;
constructing N layers of fences taking a first position as the center according to the first dot data, wherein N is more than or equal to 2, and the first position is located in the preset region; the first position is determined according to positioning information acquired when the first terminal device generates a target event, wherein the target event comprises a subway code swiping event, an airport code swiping event, a railway station code swiping event, a wharf code swiping event or a cable car code swiping event; the preset area is an area included by the outermost fence of the N layers of fences;
when the outermost fence of the N layers of fences is a 0 th layer of fence and the innermost fence is an N-1 th layer of fence, the M-th layer of fence corresponds to a plurality of positioning information, the positioning information includes positioning information acquired by the first terminal device at a first time, the first time is a time when the first terminal device starts from the 0 th layer of fence and time T1 elapses, T1= T M/N, where T is a time required for the first terminal device to start from the 0 th layer of fence and reach the first position, and M is an integer greater than 0 and less than or equal to N-1.
11. A multi-layer fence construction method is applied to a first terminal device, wherein the first terminal device is in communication connection with a cloud server, and the method comprises the following steps:
acquiring first dot data in a preset area based on a first frequency, wherein the first dot data comprises positioning information acquired by the first terminal equipment in the preset area based on the first frequency;
sending the first dot data to the cloud server so that the cloud server constructs N layers of fences with a first position as a center according to the first dot data, wherein N is more than or equal to 2, and the first position is located in the preset area; the first position represents a position of the first terminal device when a target event is generated, wherein the target event comprises a subway code brushing event, an airport code brushing event, a railway station code brushing event, a wharf code brushing event or a cable car code brushing event; the preset area is an area included by the outermost fence of the N layers of fences;
when the outermost fence of the N layers of fences is a 0 th layer of fence and the innermost fence is an N-1 th layer of fence, the mth layer of fence corresponds to multiple pieces of positioning information, where the multiple pieces of positioning information include positioning information acquired by each first terminal device at a first time corresponding to the first terminal device, the first time is a time when the first terminal device starts from the 0 th layer of fence and after time T1 elapses, T1= T M/N, where T is a time required for the first terminal device to start from the 0 th layer of fence and reach the first position, and M is an integer greater than 0 and less than or equal to N-1.
12. A multi-layer fence construction method is applied to a first terminal device, and comprises the following steps:
collecting first dot data in a preset area based on a first frequency; the first dot data comprises positioning information acquired by the first terminal equipment in a preset area based on the first frequency;
constructing N layers of fences with a first position as the center according to the first dot data, wherein N is more than or equal to 2, and the first position is located in the preset area; the first position represents a position of the first terminal device when a target event is generated, wherein the target event comprises a subway code brushing event, an airport code brushing event, a railway station code brushing event, a wharf code brushing event or a cable car code brushing event; the preset area is an area included by the outermost fence of the N layers of fences; when the outermost fence of the N layers of fences is a 0 th layer of fence and the innermost fence is an N-1 th layer of fence, the M-th layer of fence corresponds to first positioning information, the first positioning information includes positioning information acquired by the first terminal device at a first time, the first time is the time when the first terminal device starts from the 0 th layer of fence and passes through time T1, T1= T M/N, wherein T is the time required for the first terminal device to start from the 0 th layer of fence and reach the first position, and M is an integer greater than 0 and less than or equal to N-1.
13. A cloud server, the cloud server comprising: a wireless communication module, memory, and one or more processors; the wireless communication module, the memory and the processor are coupled;
wherein the memory is to store computer program code comprising computer instructions; the computer instructions, when executed by the processor, cause the cloud server to perform the multi-tiered fence construction method of any of claims 1-10.
14. A first terminal device, characterized in that the first terminal device comprises: a wireless communication module, memory, and one or more processors; the wireless communication module, the memory and the processor are coupled;
wherein the memory is configured to store computer program code comprising computer instructions; the computer instructions, when executed by the processor, cause the first terminal device to perform the method of multi-level pen construction according to any one of claims 11-12.
15. A computer-readable storage medium comprising computer instructions;
when the computer instructions are run on a cloud server, cause the cloud server to perform the multi-tiered fence construction method of any of claims 1-10; or the like, or, alternatively,
the computer instructions, when executed on a first terminal device, cause the first terminal device to perform the method of multi-tiered fence construction of any of claims 11-12.
CN202210057025.XA 2021-04-23 2022-01-18 Multi-layer fence construction method, cloud server and first terminal device Active CN114598991B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2021104445663 2021-04-23
CN202110444566.3A CN113115211A (en) 2021-04-23 2021-04-23 Multilayer fence construction method, cloud server and first terminal device

Publications (2)

Publication Number Publication Date
CN114598991A CN114598991A (en) 2022-06-07
CN114598991B true CN114598991B (en) 2022-12-13

Family

ID=76719733

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110444566.3A Pending CN113115211A (en) 2021-04-23 2021-04-23 Multilayer fence construction method, cloud server and first terminal device
CN202210057025.XA Active CN114598991B (en) 2021-04-23 2022-01-18 Multi-layer fence construction method, cloud server and first terminal device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202110444566.3A Pending CN113115211A (en) 2021-04-23 2021-04-23 Multilayer fence construction method, cloud server and first terminal device

Country Status (1)

Country Link
CN (2) CN113115211A (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115668989B (en) * 2021-04-23 2024-04-02 荣耀终端有限公司 Scene recognition method and electronic equipment
CN114661381B (en) * 2021-08-04 2022-11-29 荣耀终端有限公司 Subway trip detection method and electronic equipment
CN113691933B (en) * 2021-08-12 2022-10-18 荣耀终端有限公司 Use method and device of multilayer fence and storage medium
CN115038043B (en) * 2021-11-08 2023-04-18 荣耀终端有限公司 Information code popup method, medium and electronic equipment
CN115022461B (en) * 2021-12-01 2023-02-28 荣耀终端有限公司 Subway trip detection method and electronic equipment
CN115022449B (en) * 2021-12-01 2023-11-24 荣耀终端有限公司 Subway travel detection method and electronic equipment
CN114566016B (en) * 2022-03-02 2024-03-22 国网宁夏电力有限公司宁东供电公司 Electronic fence protection method and electronic fence protection system based on wireless networking
CN116027941B (en) * 2022-06-30 2023-10-20 荣耀终端有限公司 Service recommendation method and electronic equipment
CN114879879B (en) * 2022-07-07 2022-09-27 荣耀终端有限公司 Method for displaying health code, electronic equipment and storage medium
CN114880065B (en) * 2022-07-08 2022-09-27 荣耀终端有限公司 Method, device, system and storage medium for controlling card display
CN116092203B (en) * 2022-08-19 2023-10-20 荣耀终端有限公司 Travel method, device and storage medium based on riding card
CN116668576B (en) * 2022-10-26 2024-04-12 荣耀终端有限公司 Method, device, cloud management platform, system and storage medium for acquiring data
CN115938054B (en) * 2023-01-06 2023-05-23 国网瑞嘉(天津)智能机器人有限公司 Electronic fence interaction method, system and server
CN116437293B (en) * 2023-06-09 2023-10-20 荣耀终端有限公司 Geofence establishment method, server and communication system
CN118097834A (en) * 2024-04-29 2024-05-28 江西鹭鹭行科技有限公司 Rail transit gate control method and system based on small screen bright code equipment terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105981418A (en) * 2014-02-14 2016-09-28 苹果公司 Personal geofence
KR20170034026A (en) * 2015-09-18 2017-03-28 현대자동차주식회사 Geofence services method and program, and navigation device, server and computer readable medium for performing the same
US10034129B1 (en) * 2015-08-24 2018-07-24 Groupon, Inc. Mobile proximity based messages
CN109979021A (en) * 2019-03-29 2019-07-05 苏州雷格特智能设备股份有限公司 A kind of construction mode and application method of wisdom fence
CN111316673A (en) * 2018-10-15 2020-06-19 华为技术有限公司 Electronic fence updating method and communication device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8509790B2 (en) * 2006-01-31 2013-08-13 Tommas Jess Christensen Multi-speed mesh networks
CN107948923B (en) * 2016-10-13 2021-06-22 斑马智行网络(香港)有限公司 Information processing method based on virtual fence, client and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105981418A (en) * 2014-02-14 2016-09-28 苹果公司 Personal geofence
US10034129B1 (en) * 2015-08-24 2018-07-24 Groupon, Inc. Mobile proximity based messages
KR20170034026A (en) * 2015-09-18 2017-03-28 현대자동차주식회사 Geofence services method and program, and navigation device, server and computer readable medium for performing the same
CN111316673A (en) * 2018-10-15 2020-06-19 华为技术有限公司 Electronic fence updating method and communication device
CN109979021A (en) * 2019-03-29 2019-07-05 苏州雷格特智能设备股份有限公司 A kind of construction mode and application method of wisdom fence

Also Published As

Publication number Publication date
CN114598991A (en) 2022-06-07
CN113115211A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN114598991B (en) Multi-layer fence construction method, cloud server and first terminal device
CN113794801B (en) Method and device for processing geo-fence
Zhou et al. How long to wait? Predicting bus arrival time with mobile phone based participatory sensing
CN110689460B (en) Traffic accident data processing method, device, equipment and medium based on block chain
CN114463898B (en) Express delivery pickup reminding method and device
EP3293603B1 (en) Mobile terminal and control method thereof
CN113660611A (en) Positioning method and device
CN105191455A (en) Improved in-transit detection using low complexity algorithm fusion and phone state heuristics
CN113364490B (en) NFC application calling method, electronic equipment and NFC device
CN114257960A (en) Bluetooth connection method and device
CN114339674A (en) Target service execution method and electronic equipment
JP6411669B2 (en) Portable terminal, power consumption control program, and power consumption control method
CN113573239B (en) Virtual card switching method, electronic equipment and wearable equipment
CN111274043A (en) Near field communication method, device, system, storage medium and electronic equipment
KR101657203B1 (en) Mobile terminal and control method therof
CN115348546B (en) User trip mode identification method and device
CN111031493B (en) Running time information transmission method and device, electronic equipment and storage medium
CN114566171A (en) Voice awakening method and electronic equipment
CN113642973A (en) Reminding method and related device
CN113205069B (en) False license plate detection method and device and computer storage medium
CN109798912B (en) Vehicle route determination method, vehicle system and vehicle route determination device
US10194307B2 (en) Coordination of wireless devices between personal area networks and vehicle area networks
CN110660139B (en) Detection system, method and device for copying and using riding code and terminal equipment
CN106371981B (en) Detection management method and system between electronic devices
KR20160023983A (en) System for providing taxi riding service by using beacon device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230915

Address after: 201306 building C, No. 888, Huanhu West 2nd Road, Lingang New District, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: Shanghai Glory Smart Technology Development Co.,Ltd.

Address before: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee before: Honor Device Co.,Ltd.