CN109195177B - Real-time statistical method for residence time of base station mobile phone based on ActiveMQ - Google Patents

Real-time statistical method for residence time of base station mobile phone based on ActiveMQ Download PDF

Info

Publication number
CN109195177B
CN109195177B CN201811073794.9A CN201811073794A CN109195177B CN 109195177 B CN109195177 B CN 109195177B CN 201811073794 A CN201811073794 A CN 201811073794A CN 109195177 B CN109195177 B CN 109195177B
Authority
CN
China
Prior art keywords
base station
mobile phone
activemq
information
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
CN201811073794.9A
Other languages
Chinese (zh)
Other versions
CN109195177A (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.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud Technology 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 G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201811073794.9A priority Critical patent/CN109195177B/en
Publication of CN109195177A publication Critical patent/CN109195177A/en
Application granted granted Critical
Publication of CN109195177B publication Critical patent/CN109195177B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/535Tracking the activity of the user

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technical field of big data processing, in particular to a method for counting the residence time of a base station mobile phone in real time based on an ActiveMQ. The method of the invention is based on the characteristic that ActiveMQ realizes loose coupling and synchronism of an application system, under the premise of not influencing the original information uploading and downloading functions of a base station, the information for communication between a mobile phone and the base station is accumulated and is transmitted to the ActiveMQ in the form of production information according to the form of period or quantity, the consumption information end of the ActiveMQ counts the accumulated time on a fixed base station by comparing the information of the mobile phone and the base station, and the accumulated time is stored to a specific storage interval in the form of data, thereby realizing the real-time statistics of the residence time of the mobile phone of the base station. The invention realizes the statistics of the residence time of each basic mobile phone without influencing the efficiency of the basic functions of the original base station.

Description

Real-time statistical method for residence time of base station mobile phone based on ActiveMQ
Technical Field
The invention relates to the technical field of big data processing, in particular to a real-time statistical method for residence time of a base station mobile phone based on an ActiveMQ.
Background
With the popularity of personal handsets and networks, handsets have become essentially a tool that all must hold. According to the coverage condition of the mobile phone signal in the geographic space and the combination of the mobile phone positioning data of the time sequence, the actual activity track of the crowd can be completely restored, so that the characteristic information of the population space distributed in the activity connection is obtained; the method comprises the steps of (1) including the pedestrian flow at a certain position and the activity characteristics of fixed crowds; if the business circle is an important enterprise activity space in the modern market, one of the purposes of business circle division is to research the potential customer distribution so as to make a proper business strategy and realize accurate marketing.
However, in the process of analyzing the mobile phone information, since the acquisition, analysis and calculation of the related information have a certain time, especially for the analysis and calculation of a large amount of data, the service time of the original mobile phone and the base station can be influenced, and the communication delay is caused; therefore, the existing analysis of much data is based on the offline analysis after the fact, which has great influence on the services which need to count the flow of people in real time and realize on-time prediction; therefore, a real-time statistical method for the residence time of the mobile phone in the base station is needed on the basis of not influencing the original communication service.
Disclosure of Invention
The invention solves the technical problem of providing a method for counting the stay time of a base station mobile phone in real time based on ActiveMQ; the statistics of the residence time of each mobile phone is realized under the condition of not influencing the basic functions and efficiency of the original base station.
The technical scheme for solving the technical problems is as follows:
the method is based on the characteristic that the ActiveMQ realizes loose coupling and synchronism of the application system, on the premise of not influencing the original information uploading and downloading functions of the base station, the information for communication between the mobile phone and the base station is accumulated and is transmitted to the ActiveMQ in the form of production information according to the form of period or quantity, the consumption information end of the ActiveMQ counts the accumulated time on the fixed base station by comparing the information of the mobile phone and the base station, and the accumulated time is stored to a specific storage interval in the form of data, so that the real-time statistics of the residence time of the mobile phone of the base station is realized.
The method specifically comprises the following steps:
step 1: an ActiveMQ middleware system is built, distributed deployment is adopted in the system, deployed resources are evaluated by the amount of processed service data, and corresponding computing resources are increased as required;
step 2: on the basis of the original functions of the base station and the mobile phone communication signaling, each piece of information is acquired at the minimum cost, forms a producer form according to the period or quantity form and the appointed condition, and is reported to an ActiveMQ;
and step 3: after the customer end of ActiveMQ receives the message, processing one by one according to the order and the mobile phone number;
and 4, step 4: acquiring a data storage identification number of the latest signaling from a key-value repository based on the base station and the mobile phone number;
and 5: if the data storage identification number of the latest signaling exists, the time range is updated through the identification number for the information on the same mobile phone number and the previous signaling in the same base station, and the time range is used for inquiring the statistical real-time quantity;
step 6: if the data storage identification number of the latest information does not exist, the information is shown to be in different base stations for the same mobile phone number and the previous signaling, the identification number stored in the information of the previous base station of the mobile phone number is obtained through the mobile phone number, the time range is updated, and the time of the previous base station is calculated;
and 7: and adding a piece of data in the new base station for recording the retention time of the new base station, recording the identification number of the added data, updating the corresponding relation of the key-value storage banks of the identification numbers of the base station and the mobile phone, and updating the corresponding relation of the key-value storage banks of the information storage identification numbers of the last base station of the mobile phone number.
In the step 2, communication signaling information between the base station and the mobile phone is acquired, and the support of the original system function is required to be acquired; when the signaling information is stored, the signaling information is sent to a collection system; or the latest signaling information is acquired by time on the signaling storage library; the collection system needs to report to ActiveMQ periodically or after reaching a certain number, report to ActiveMQ.
Each base station is used as an ActiveMQ producer, and after the producer acquires the communication signaling, the signaling is transmitted to the ActiveMQ according to the period or when certain data is reached.
The invention has the beneficial effects that:
by the method, asynchronous data collection is realized only on the functions of uploading and downloading the base station information, asynchronous mobile phone residence time statistics can be realized, loosely-coupled newly-added function processing is realized based on the characteristics of ActiveMQ, fundamental mobile phone residence time statistics is realized under the condition that the efficiency of the basic function of the original base station is not influenced, and an efficient data processing method is provided for big data application such as people flow prediction of the related base station, accurate marketing of a merchant and the like.
Drawings
The invention is further described below with reference to the accompanying drawings:
FIG. 1 is a flow chart of real-time statistics of mobile phone residence time based on ActiveMQ base station;
Detailed Description
Step 1: an ActiveMQ middleware system is built, and the system adopts distributed deployment;
step 2: acquiring each piece of communication signaling information on the basis of the original functions of the base station and the mobile phone communication signaling, forming a producer form according to an appointed condition in a form of cycle or quantity, and reporting to an ActiveMQ;
and step 3: after the consumers of the ActiveMQ receive the message, each consumer is informed to process one by one according to the sequence and the mobile phone number;
and 4, step 4: the consumer terminal acquires the data storage identification number of the latest signaling from the key-value repository based on the base station and the mobile phone number;
and 5: if the data storage identification number of the latest signaling exists, the time range is updated through the identification number for the information on the same mobile phone number and the previous signaling in the same base station, and the time range is used for inquiring the statistical real-time quantity;
step 6: if the data storage identification number of the latest information does not exist, the information is shown to be in different base stations for the same mobile phone number and the previous signaling, the identification number stored in the information of the previous base station of the mobile phone number is obtained through the mobile phone number, the time range is updated, and the time of the previous base station is calculated;
and 7: and adding a piece of data in the new base station for recording the retention time of the new base station, recording the identification number of the added data, updating the corresponding relation of the key-value storage banks of the identification numbers of the base station and the mobile phone, and updating the corresponding relation of the key-value storage banks of the information storage identification numbers of the last base station of the mobile phone number.
In step 3, the communication mode of the ActiveMQ is point-to-point, namely a signaling message can be received only by a consumer, and disappears after receiving, and a plurality of consumers monitor a production end and get first;
in step 4, in order to improve the data processing capability and reduce the data query process, the consumption-side data processing of the retention time is performed, and the support of a key-value repository is added to support the rapid acquisition of the keywords and the values, so that the data processing capability can be rapidly improved;
in step 6, after the mobile phone generally arrives at an area, the mobile phone will actively perform communication signaling interaction to the nearby base station, and will not interact with the original base station any more, so after detecting that the mobile phone has changed the base station, it indicates that the communication of the last base station has been stopped, and the communication with the new base station is the last communication time of the last base station, so as to calculate the communication residence time of the last base station;
in steps 4 and 6, in order to improve the efficiency of updating the residence time range and residence time of the mobile phone in the base station, a key-value repository-based form is adopted to obtain the specific identification number of the data to be updated, so that the time for inquiring from the repository, the time range and residence time to be updated are reduced, and the updating is directly carried out through the obtained identification number;
the invention relates to a method for counting the residence time of a mobile phone of a base station in real time based on ActiveMQ, which is based on the characteristics of realizing loose coupling and synchronous processing of ActiveMQ, and separately carries out real-time counting on the residence time of the mobile phone in each base station after realizing simple base station signaling acquisition, thereby providing usable data after calculation for subsequent application of various pedestrian flows.

Claims (2)

1. A method for real-time statistics of residence time of a base station mobile phone based on ActiveMQ is characterized in that: the method is based on the characteristic that the ActiveMQ realizes loose coupling and synchronism of an application system, on the premise of not influencing the original information uploading and downloading functions of a base station, information for communication between a mobile phone and the base station is accumulated and is transmitted to the ActiveMQ in the form of production information according to the form of period or quantity, the consumption information end of the ActiveMQ counts the accumulated time on the fixed base station by comparing the information of the mobile phone and the base station, and the accumulated time is stored to a specific storage interval in the form of data, so that the real-time statistics of the residence time of the mobile phone of the base station is realized;
the method specifically comprises the following steps:
step 1: an ActiveMQ middleware system is built, distributed deployment is adopted in the system, deployed resources are evaluated by the amount of processed service data, and corresponding computing resources are increased as required;
step 2: on the basis of the original functions of the base station and the mobile phone communication signaling, each piece of information is acquired at the minimum cost, forms a producer form according to the period or quantity form and the appointed condition, and is reported to an ActiveMQ;
and step 3: after the customer end of ActiveMQ receives the message, processing one by one according to the order and the mobile phone number;
and 4, step 4: acquiring a data storage identification number of the latest signaling from a key-value repository based on the base station and the mobile phone number;
and 5: if the data storage identification number of the latest signaling exists, the time range is updated through the identification number for the information on the same mobile phone number and the previous signaling in the same base station, and the time range is used for inquiring the statistical real-time quantity;
step 6: if the data storage identification number of the latest information does not exist, the information is shown to be in the same base station as the previous signaling for the same mobile phone number and is in a different base station from the previous signaling, the identification number stored in the information of the previous base station for the mobile phone number is obtained through the mobile phone number, the time range is updated, and the time of the previous base station is calculated;
and 7: newly adding a piece of data in a new base station, recording the retention time of the new base station, recording the identification number of the newly added data, updating the corresponding relation of the key-value storage banks of the identification numbers of the base station and the mobile phone, and updating the corresponding relation of the key-value storage banks of the information storage identification numbers of the last base station of the mobile phone number;
each base station is used as an ActiveMQ producer, and after the producer acquires the communication signaling, the signaling is transmitted to the ActiveMQ according to the period or when certain data is reached.
2. The method of claim 1, wherein:
in the step 2, communication signaling information between the base station and the mobile phone is acquired, and the support of the original system function is required to be acquired; when the signaling information is stored, the signaling information is sent to a collection system; or the latest signaling information is acquired by time on the signaling storage library; the collection system needs to report to ActiveMQ periodically or after reaching a certain number, report to ActiveMQ.
CN201811073794.9A 2018-09-14 2018-09-14 Real-time statistical method for residence time of base station mobile phone based on ActiveMQ Active CN109195177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811073794.9A CN109195177B (en) 2018-09-14 2018-09-14 Real-time statistical method for residence time of base station mobile phone based on ActiveMQ

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811073794.9A CN109195177B (en) 2018-09-14 2018-09-14 Real-time statistical method for residence time of base station mobile phone based on ActiveMQ

Publications (2)

Publication Number Publication Date
CN109195177A CN109195177A (en) 2019-01-11
CN109195177B true CN109195177B (en) 2021-11-19

Family

ID=64911043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811073794.9A Active CN109195177B (en) 2018-09-14 2018-09-14 Real-time statistical method for residence time of base station mobile phone based on ActiveMQ

Country Status (1)

Country Link
CN (1) CN109195177B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012106980A1 (en) * 2011-02-11 2012-08-16 运软网络科技(上海)有限公司 Virtual desktop method and virtual desktop infrastructure of multidimensional intelligent service point
CN102752466A (en) * 2011-04-21 2012-10-24 东南大学 Intelligent phone notification system in converged communication
CN103150156A (en) * 2012-12-06 2013-06-12 江苏省公用信息有限公司 Method and system, based on geographic model and moving track, for obtaining characteristic crowd in real time
CN104917663A (en) * 2014-03-12 2015-09-16 深圳市赛格导航科技股份有限公司 ActiveMQ server-based positioning information distribution system and method
CN105376311A (en) * 2015-11-11 2016-03-02 北京北信源软件股份有限公司 Method and device for determining page stay duration based on terminal access
CN106341465A (en) * 2016-08-30 2017-01-18 成都西加云杉科技有限公司 Statistical method, device and system of passenger flow and population flow distribution
CN106412044A (en) * 2016-09-23 2017-02-15 郑州云海信息技术有限公司 Storm-based real-time massive cloud application access statistical implementation method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012106980A1 (en) * 2011-02-11 2012-08-16 运软网络科技(上海)有限公司 Virtual desktop method and virtual desktop infrastructure of multidimensional intelligent service point
CN102752466A (en) * 2011-04-21 2012-10-24 东南大学 Intelligent phone notification system in converged communication
CN103150156A (en) * 2012-12-06 2013-06-12 江苏省公用信息有限公司 Method and system, based on geographic model and moving track, for obtaining characteristic crowd in real time
CN104917663A (en) * 2014-03-12 2015-09-16 深圳市赛格导航科技股份有限公司 ActiveMQ server-based positioning information distribution system and method
CN105376311A (en) * 2015-11-11 2016-03-02 北京北信源软件股份有限公司 Method and device for determining page stay duration based on terminal access
CN106341465A (en) * 2016-08-30 2017-01-18 成都西加云杉科技有限公司 Statistical method, device and system of passenger flow and population flow distribution
CN106412044A (en) * 2016-09-23 2017-02-15 郑州云海信息技术有限公司 Storm-based real-time massive cloud application access statistical implementation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Design and Implementation of Intelligent Load-balancing Heterogeneous Data;JiabaoYin;《2015 International Conference on Industrial Informatics-Computing Technology, Intelligent Technology, Industrial Information》;20151231;全文 *
高速公路手得即管理系统中分布式消息系统的应用;方瑜庆;《技术》;20161231;全文 *

Also Published As

Publication number Publication date
CN109195177A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
US20230071831A1 (en) Systems and methods for behavioural and contextual data analytics
Lv et al. Big data driven hidden Markov model based individual mobility prediction at points of interest
CN103068035B (en) A kind of wireless network localization method, Apparatus and system
JP6053027B2 (en) Apparatus, program, and method for searching for user who takes similar movement route
Zhang et al. A Novel Big Data Assisted Analysis Architecture for Telecom Operator
CN105307112A (en) Method and system for acquiring user movement path by analysis
CN106294534B (en) User interest matching pushing system and user interest matching pushing method
CN108668224A (en) Base station location determines method, apparatus, server and storage medium
CN110475014A (en) The recognition methods of user's scene and terminal device
US20160210647A1 (en) Method of determining segmentations of subscribers, network entity using the same, and server using the same
CN109543734A (en) User portrait method and device, storage medium
CN113938928B (en) Communication system for inland lake observation network
CN110933662B (en) Space-time adjoint relation analysis method and system based on data mining
Pinelli et al. Comparing urban sensing applications using event and network-driven mobile phone location data
CN109195177B (en) Real-time statistical method for residence time of base station mobile phone based on ActiveMQ
JP6223302B2 (en) Apparatus, program, and method capable of determining stay of user having portable terminal
KR102069095B1 (en) System and method for energy efficient WiFi people counter
KR20200061666A (en) Method and Apparatus for Providing Population Guidance Service
CN117280739A (en) Multi-resolution network analysis based on UE location
JP6433059B2 (en) Apparatus, program and method for positioning mobile terminal based on communication record
Lima et al. Human Mobility Support for Personalized Data Offloading
Namiot On mining mobile users by monitoring logs
US11991065B2 (en) Method and system to identify network nodes/cells with performance seasonality based on time series of performance data and external reference data
Costa et al. On building human-aware opportunistic communication strategies for cost-effective content delivery
CN111263366B (en) Cloud wireless network centralized evaluation planning method and system based on user behaviors

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