有鑑於此,本說明書實施例提供了一種喚醒、資訊推送及雲端資訊處理方法和裝置、計算設備及儲存媒體,以解決現有技術中存在的技術缺陷。
根據本說明書實施例的第一態樣,提供了一種應用程式的喚醒方法,所述方法適於在終端設備上執行,所述方法包括:
監聽終端設備的藍牙模組搜索藍牙廣播包的搜索事件;
當監聽到所述藍牙模組搜索到藍牙廣播包時,判斷所述藍牙廣播包是否符合設定格式;
若所述藍牙廣播包符合所述設定格式,啟動與所述藍牙廣播包對應的應用程式。
根據本說明書實施例的第二態樣,提供了一種資訊推送方法,所述方法適於在發送終端上執行,所述方法包括:
透過發送終端的藍牙模組發射設定格式的藍牙廣播包;
在接收到所述發送終端附近的終端設備發送的基於所述藍牙廣播包的藍牙通信連接請求後,建立所述發送終端與所述終端設備的藍牙通信連接;
向所述終端設備推送基於附近位置的信息資訊。
根據本說明書實施例的第三態樣,提供了一種雲端資訊處理方法,包括:
接收終端設備的應用程式上傳的至少一個發送終端的設備資訊和藍牙廣播包的信號強度資訊,其中,所述發送終端的設備資訊從所述終端設備的藍牙模組搜索到的設定格式的藍牙廣播包中解析得到;
根據所述至少一個發送終端的設備資訊,獲取對應於所述設備資訊的所述終端設備的藍牙廣播包的信號強度資訊;
根據對應於所述設備資訊的所述終端設備的藍牙廣播包的信號強度資訊,判斷所述發送終端的擺放位置是否合理。
根據本說明書實施例的第四態樣,提供了一種雲端資訊處理方法,包括:
接收終端設備的應用程式上傳的至少一個發送終端的設備資訊、位置座標資訊、時間戳記資訊和和藍牙廣播包的信號強度資訊,其中,所述發送終端的設備資訊從所述終端設備的藍牙模組搜索到的設定格式的藍牙廣播包中解析得到;
根據所述至少一個發送終端的設備資訊,獲取對應於所述設備資訊的所述終端設備的位置座標資訊、時間戳記資訊和藍牙廣播包的信號強度資訊;
根據所述終端設備的位置座標資訊、時間戳記資訊和藍牙廣播包的信號強度資訊,判斷所述發送終端的擺放位置是否合理。
根據本說明書實施例的第五態樣,提供了一種應用程式的喚醒裝置,所述裝置適於在終端設備上執行,所述裝置包括:
監聽器,被配置為監聽終端設備的藍牙模組搜索藍牙廣播包的搜索事件;
判斷器,被配置為當監聽到所述藍牙模組搜索到藍牙廣播包時,判斷所述藍牙廣播包是否符合設定格式;
啟動器,被配置為若所述藍牙廣播包符合所述設定格式,啟動與所述藍牙廣播包對應的應用程式。
根據本說明書實施例的第六態樣,提供了一種資訊推送裝置,所述裝置適於在發送終端上執行,所述裝置包括:
發送器,被配置為透過發送終端的藍牙模組發射設定格式的藍牙廣播包;
第二連接器,被配置為在接收到所述發送終端附近的終端設備發送的基於所述藍牙廣播包的藍牙通信連接請求後,建立所述發送終端與所述終端設備的藍牙通信連接;
推送器,被配置為向所述終端設備推送基於附近位置的信息資訊。
根據本說明書實施例的第六態樣,提供了一種雲端資訊處理方法,包括:
接收終端設備的應用程式上傳的至少一個發送終端的設備資訊、位置座標資訊、時間戳記資訊和和藍牙廣播包的信號強度資訊,其中,所述發送終端的設備資訊從所述終端設備的藍牙模組搜索到的設定格式的藍牙廣播包中解析得到;
根據所述至少一個發送終端的設備資訊,獲取對應於所述設備資訊的所述終端設備的位置座標資訊、時間戳記資訊和藍牙廣播包的信號強度資訊;
根據所述終端設備的位置座標資訊、時間戳記資訊和藍牙廣播包的信號強度資訊,判斷所述發送終端的擺放位置是否合理。
根據本說明書實施例的第七態樣,提供了雲端資訊處理裝置,包括:
第三接收器,被配置為接收終端設備的應用程式上傳的至少一個發送終端的設備資訊和藍牙廣播包的信號強度資訊,其中,所述發送終端的設備資訊從所述終端設備的藍牙模組搜索到的設定格式的藍牙廣播包中解析得到;
第一獲取器,被配置為根據所述至少一個發送終端的設備資訊,獲取對應於所述設備資訊的所述終端設備的藍牙廣播包的信號強度資訊;
第一位置判斷器,被配置為根據對應於所述設備資訊的所述終端設備的藍牙廣播包的信號強度資訊,判斷所述發送終端的擺放位置是否合理。
根據本說明書實施例的第八態樣,提供了一種雲端資訊處理裝置,包括:
第四接收器,被配置為接收終端設備的應用程式上傳的至少一個發送終端的設備資訊、位置座標資訊、時間戳記資訊和和藍牙廣播包的信號強度資訊,其中,所述發送終端的設備資訊從所述終端設備的藍牙模組搜索到的設定格式的藍牙廣播包中解析得到;
第二獲取器,被配置為根據所述至少一個發送終端的設備資訊,獲取對應於所述設備資訊的所述終端設備的位置座標資訊、時間戳記資訊和藍牙廣播包的信號強度資訊;
第二位置判斷器,被配置為根據所述終端設備的位置座標資訊、時間戳記資訊和藍牙廣播包的信號強度資訊,判斷所述發送終端的擺放位置是否合理。
根據本說明書實施例的第九態樣,提供了一種計算設備,包括記憶體、處理器及儲存在記憶體上並可在處理器上運行的電腦指令,所述處理器執行所述指令時實現所述的應用程式的喚醒方法、資訊推送方法或者雲端資訊處理方法的步驟。
根據本說明書實施例的第十態樣,提供了一種電腦可讀儲存媒體,其儲存有電腦指令,該指令被處理器執行時實現所述的應用程式的喚醒方法、資訊推送方法或者雲端資訊處理方法的步驟。
根據本說明書實施例的第九態樣,提供了一種電腦可讀儲存媒體,其儲存有電腦指令,該指令被處理器執行時實現應用程式的喚醒方法或資訊推送方法的步驟。
本發明實施例在作為支付物料的發送終端中加入設定格式的藍牙廣播,當使用者的移動設備接近支付物料後,與所述設定格式的藍牙廣播應用程式可以被喚醒,從而實現暖啟動和基於資料獲取的動銷。透過支付物料與使用者移動終端的之間的連動,可以基於不同場景動態選擇應用應用是否進行預載入,既提升了使用者體驗,又尊重使用者的選擇。In view of this, the embodiments of this specification provide a wake-up, information push, and cloud information processing method and device, computing device, and storage medium to solve the technical defects in the prior art.
According to the first aspect of the embodiment of this specification, there is provided a method for waking up an application program, the method is suitable for execution on a terminal device, and the method includes:
Monitor the search event of the Bluetooth module of the terminal device searching for the Bluetooth broadcast packet;
When it is monitored that the Bluetooth module has searched for a Bluetooth broadcast packet, determining whether the Bluetooth broadcast packet conforms to a set format;
If the Bluetooth broadcast package conforms to the set format, start the application corresponding to the Bluetooth broadcast package.
According to a second aspect of the embodiments of this specification, there is provided an information push method, the method is suitable for execution on a sending terminal, and the method includes:
Transmit the Bluetooth broadcast packet of the set format through the Bluetooth module of the sending terminal;
Establishing a Bluetooth communication connection between the sending terminal and the terminal device after receiving a Bluetooth communication connection request based on the Bluetooth broadcast packet sent by a terminal device near the sending terminal;
Push information based on nearby locations to the terminal device.
According to the third aspect of the embodiments of this specification, a cloud information processing method is provided, including:
Receive the device information of at least one sending terminal and the signal strength information of the Bluetooth broadcast packet uploaded by the application program of the terminal device, wherein the device information of the sending terminal is searched from the Bluetooth module of the terminal device in the set format of the Bluetooth broadcast Parsed in the package;
Acquiring, according to the device information of the at least one sending terminal, the signal strength information of the Bluetooth broadcast packet of the terminal device corresponding to the device information;
According to the signal strength information of the Bluetooth broadcast packet of the terminal device corresponding to the device information, it is determined whether the placement position of the sending terminal is reasonable.
According to the fourth aspect of the embodiment of this specification, a cloud information processing method is provided, including:
Receive at least one sending terminal’s device information, location coordinate information, time stamp information, and signal strength information of the Bluetooth broadcast packet uploaded by the application program of the terminal device, wherein the device information of the sending terminal is derived from the Bluetooth module of the terminal device Analyzed from the Bluetooth broadcast packet of the set format found by the group;
Acquiring, according to the device information of the at least one sending terminal, the position coordinate information, time stamp information, and signal strength information of the Bluetooth broadcast packet of the terminal device corresponding to the device information;
According to the position coordinate information of the terminal device, the time stamp information and the signal strength information of the Bluetooth broadcast packet, it is determined whether the placement position of the sending terminal is reasonable.
According to a fifth aspect of the embodiments of the present specification, there is provided a wake-up device for an application program, the device is adapted to be executed on a terminal device, and the device includes:
The listener is configured to monitor the search event of the Bluetooth module of the terminal device searching for the Bluetooth broadcast packet;
A determiner, configured to determine whether the Bluetooth broadcast packet conforms to a set format when it is monitored that the Bluetooth module searches for a Bluetooth broadcast packet;
The launcher is configured to activate the application program corresponding to the Bluetooth broadcast package if the Bluetooth broadcast package conforms to the set format.
According to a sixth aspect of the embodiments of this specification, there is provided an information pushing device, the device being adapted to be executed on a sending terminal, and the device comprising:
The transmitter is configured to transmit a Bluetooth broadcast packet in a set format through the Bluetooth module of the sending terminal;
The second connector is configured to establish a Bluetooth communication connection between the sending terminal and the terminal device after receiving a Bluetooth communication connection request based on the Bluetooth broadcast packet sent by a terminal device near the sending terminal;
The pusher is configured to push information based on nearby locations to the terminal device.
According to the sixth aspect of the embodiment of this specification, a cloud information processing method is provided, including:
Receive at least one sending terminal’s device information, location coordinate information, time stamp information, and signal strength information of the Bluetooth broadcast packet uploaded by the application program of the terminal device, wherein the device information of the sending terminal is derived from the Bluetooth module of the terminal device Analyzed from the Bluetooth broadcast packet of the set format found by the group;
Acquiring, according to the device information of the at least one sending terminal, the position coordinate information, time stamp information, and signal strength information of the Bluetooth broadcast packet of the terminal device corresponding to the device information;
According to the position coordinate information of the terminal device, the time stamp information and the signal strength information of the Bluetooth broadcast packet, it is determined whether the placement position of the sending terminal is reasonable.
According to the seventh aspect of the embodiment of this specification, a cloud information processing device is provided, including:
The third receiver is configured to receive the device information of at least one sending terminal and the signal strength information of the Bluetooth broadcast packet uploaded by the application program of the terminal device, wherein the device information of the sending terminal is from the Bluetooth module of the terminal device Analyzed from the searched Bluetooth broadcast packet of the set format;
The first acquirer is configured to acquire the signal strength information of the Bluetooth broadcast packet of the terminal device corresponding to the device information according to the device information of the at least one sending terminal;
The first location determiner is configured to determine whether the location of the sending terminal is reasonable based on the signal strength information of the Bluetooth broadcast packet of the terminal device corresponding to the device information.
According to an eighth aspect of the embodiment of this specification, a cloud information processing device is provided, including:
The fourth receiver is configured to receive device information, position coordinate information, time stamp information, and signal strength information of the Bluetooth broadcast packet of at least one sending terminal uploaded by the application program of the terminal device, wherein the device information of the sending terminal Parsed from the Bluetooth broadcast packet of the set format searched by the Bluetooth module of the terminal device;
The second acquirer is configured to acquire position coordinate information, time stamp information, and signal strength information of the Bluetooth broadcast packet of the terminal device corresponding to the device information according to the device information of the at least one sending terminal;
The second position determiner is configured to determine whether the placement position of the sending terminal is reasonable based on the position coordinate information of the terminal device, the time stamp information, and the signal strength information of the Bluetooth broadcast packet.
According to the ninth aspect of the embodiments of this specification, a computing device is provided, including a memory, a processor, and computer instructions stored on the memory and running on the processor, and the processor executes the instructions when the instructions are executed. The steps of the application wake-up method, information push method or cloud information processing method.
According to a tenth aspect of the embodiment of the present specification, a computer-readable storage medium is provided, which stores computer instructions, which when executed by a processor, implement the application wake-up method, information push method, or cloud information processing Method steps.
According to a ninth aspect of the embodiments of the present specification, a computer-readable storage medium is provided, which stores computer instructions, and when the instructions are executed by a processor, the steps of the application wake-up method or the information push method are implemented.
In the embodiment of the present invention, a Bluetooth broadcast with a set format is added to the sending terminal as a payment material. When the user's mobile device approaches the payment material, the Bluetooth broadcast application with the set format can be awakened, thereby realizing a warm start and Movable pins for data acquisition. Through the linkage between the payment material and the user's mobile terminal, it is possible to dynamically choose whether to preload the application based on different scenarios, which not only improves the user experience, but also respects the user's choice.
在下面的描述中闡述了很多具體細節以便於充分理解本說明書。但是本說明書能夠以很多不同於在此描述的其它方式來實施,本領域技術人員可以在不違背本說明書內涵的情況下做類似推廣,因此本說明書不受下面公開的具體實施的限制。
圖1是示出了根據本說明書一實施例的計算設備100的結構方塊圖。該計算設備100的部件包括但不限於記憶體110和處理器120。處理器120與記憶體110透過匯流排130相連接,資料庫150用於保存使用者資料。
計算設備100還包括存取設備140,存取設備140使得計算設備100能夠經由一個或多個網路通信。這些網路的示例包括公用交換電話網(PSTN)、局域網(LAN)、廣域網路(WAN)、個域網(PAN)或諸如網際網路的通信網路的組合。存取設備140可以包括有線或無線的任何類型的網路介面(例如,網路介面卡(NIC))中的一個或多個,諸如IEEE802.11無線局域網(WLAN)無線介面、全球微波互聯存取(Wi-MAX)介面、乙太網介面、通用序列匯流排(USB)介面、蜂巢式網路介面、藍牙介面、近場通信(NFC)介面,等等。
在本說明書的一個實施例中,計算設備100的上述以及圖1中未示出的其他部件也可以彼此相連接,例如透過匯流排。應當理解,圖1所示的計算設備結構方塊圖僅僅是出於示例的目的,而不是對本說明書範圍的限制。本領域技術人員可以根據需要,增添或替換其他部件。
計算設備100可以是任何類型的靜止或移動計算裝置,包括移動電腦或移動計算裝置(例如,平板電腦、個人數位助理、膝上型電腦、筆記型電腦、上網本等)、行動電話(例如,智慧手機)、可佩戴的計算設備(例如,智慧手錶、智慧眼鏡等)或其他類型的移動設備,或者諸如桌上型電腦或PC的靜止計算設備。計算設備100還可以是移動式或靜止式的伺服器。
其中,處理器120可以執行圖2所示方法中的步驟。圖2是示出了根據本說明書一實施例的應用程式的喚醒方法的示意性流程圖,所述方法適於在終端設備上執行,包括步驟202、步驟204和步驟206。
步驟202:監聽終端設備的藍牙模組搜索藍牙廣播包的搜索事件。
一種實施方式中,在步驟202之前還包括:預先在所述終端設備的作業系統中註冊藍牙監聽事件。例如,可以在安裝或更新應用程式時,在安裝或更新過程中,向所述終端設備的作業系統中註冊藍牙監聽事件,從而對終端設備的藍牙模組搜索藍牙廣播包的搜索事件進行監聽。
步驟204:當監聽到所述藍牙模組搜索到藍牙廣播包時,判斷所述藍牙廣播包是否符合設定格式。
一種實施方式中,所述終端設備的藍牙模組為BLE(藍牙低能耗)藍牙模組。如圖6、圖7所示,圖6、圖7分別是示出了本說明書一實施例的BLE廣播發送示意圖。圖中的模組只需要2個部分:充當藍牙beacon進行廣播的設備(這裡是支付寶盒等支付物料),ble掃描設備(這裡是移動設備,比如手機、手環)。BLE藍牙模組採用可變連線時間間隔,這個間隔根據具體應用可以設置為幾毫秒到幾秒不等。另外,因為BLE藍牙模組的連接方式較快,因此平時可以處於“非連接”狀態(節省能源),此時鏈路兩端相互間只是知曉對方,只有在必要時才開啟鏈路。
一種實施方式中,所述設定格式為ibeacon格式。當監聽到所述藍牙模組搜索到藍牙廣播包時,判斷搜索到的藍牙廣播包的格式是否符合ibeacon格式。
如圖8、圖9所示,圖8是示出了基於ibeacon的包結構示意圖,圖9是ibeacon的包中資料欄位的結構示意圖。Ibeacon的包結構包括標頭(header,1位元組)、存取位址(access address,4位元組)、PDU(Protocol Data Unit,協定資料單元,2-39位元組)、CRC(Cyclic Redundancy Check,循環冗餘校驗,3位元組)和資料(Data,最多31位元組)等欄位。其中資料欄位包括ibeacon前綴(ibeacon prefix,9位元組)、Proxmity UUID(近通用唯一識別碼,16位元組)、Major(區域編號,2位元組)、Minor(商品編號,2位元組)和TX power(發射功率,1位元組)。一種實施方式中,把發送終端的資訊透過major id(區域編號)、minor id(商品編號)廣播出去,手機識別到設備後,可以鎖定唯一的盒子,進行其他的精準行銷:基於盒子對應的商戶推送相關的優惠券提高到店率、推薦周邊的店鋪。
一種實施方式中,在步驟206之前還包括:
判斷所述藍牙模組搜索到的藍牙廣播包的信號強度RSSI(Received Signal Strength Indicator,接收信號的強度指示)是否不小於第一設定閾值和/或所述藍牙廣播包的信號持續時間是否不小於第二設定閾值;若判斷結果為所述信號強度不小於所述第一設定閾值和/或所述信號持續時間不小於所述第二設定閾值則執行步驟206;若判斷結果為所述信號強度小於所述第一設定閾值和/或所述信號持續時間小於所述第二設定閾值則跳轉至步驟202。這是由於如果收到的信號強度值過小和或者時間過短,說明只是路過,未來沒有停留和後續消費的可能,這時候則不啟動程式應用。
步驟206:若所述藍牙廣播包符合所述設定格式,啟動與所述藍牙廣播包對應的應用程式。
一種實施方式中,在步驟206之後還包括:對所述藍牙廣播包進行解析得到發送終端的設備資訊;基於所述設備資訊建立所述終端設備與所述發送終端的藍牙通信連接。從而在發送終端(如支付寶盒等支付物料)與使用者終端設備(如智慧手機等移動終端)的應用程式之間建立起可以進行連動的通信鏈路,便於優惠券等信息資訊的推送。
一種實施方式中,在所述基於所述設備資訊建立所述終端設備與所述發送終端的藍牙通信連接步驟之後還包括:接收所述發送終端發送的基於所述發送終端位置的信息資訊,並將所述信息資訊保存至所述應用程式。
一種實施方式中,在將所述信息資訊保存至所述應用程式時,根據所述信息資訊的類別將所述信息資訊保存至所述應用程式的相應模組。如可以將店鋪的優惠券保存到應用程式的卡券模組。
一種實施方式中,在啟動所述應用程式時僅預載入所述應用程式的基礎模組,其中基礎模組可以根據具體需要靈活設置,例如可以是使用者最常使用的模組,如錢包應用模組。
一種實施方式中,步驟206包括:若所述藍牙廣播包符合設定格式,判斷所述藍牙廣播包對應的應用程式之前的關閉是否是使用者主動關閉;若判斷結果不是使用者主動關閉,則啟動所述應用程式。
一種實施方式中,所述判斷所述藍牙廣播包對應的應用程式之前的關閉是否是使用者主動關閉步驟包括:查詢所述移動終端中的應用程式介面檔或日誌檔,如果在所述應用程式介面檔或所述日誌檔中沒有對應所述應用程式關閉的行為記錄,則判定所述應用程式不是使用者主動關閉。
一種實施方式中,所述判斷所述藍牙廣播包對應的應用程式之前的關閉是否是使用者主動關閉步驟包括:獲取所述應用程式的保活時間,根據所述保活時間判斷所述應用程式在後臺的執行時間是否不小於第三設定閾值且所述移動終端處於息屏狀態;如果判斷結果為是,則判定所述應用程式不是使用者主動關閉。
一種實施方式中,在所述若所述藍牙廣播包符合設定格式,判斷所述藍牙廣播包對應的應用程式之前的關閉是否是使用者主動關閉步驟之後還包括:若判斷結果是使用者主動關閉,則不啟動所述應用程式。
一種實施方式中,在所述對所述藍牙廣播包進行解析得到發送終端的設備資訊步驟之後還包括:將所述移動終端搜索到的所述發送終端的藍牙廣播包的信號強度發送至所述發送終端;或將所述發送終端的設備資訊上傳至雲端伺服器;或將所述發送終端的設備資訊和所述移動終端搜索到的所述發送終端的藍牙廣播包的信號強度上傳至雲端伺服器。
本發明實施例在作為支付物料的發送終端中加入設定格式的藍牙廣播,當使用者的移動設備接近支付物料後,與所述設定格式的藍牙廣播應用程式可以被喚醒,從而實現暖啟動和基於資料獲取的動銷。透過支付物料與使用者移動終端的之間的連動,可以基於不同場景動態選擇應用應用是否進行預載入,既提升了使用者體驗,又尊重使用者的選擇。
其中,處理器120可以執行圖3所示方法中的步驟。圖3是示出了根據本說明書一實施例的資訊推送方法的示意性流程圖,所述方法適於在發送終端上執行,包括步驟302、步驟304和步驟306。
步驟302:透過發送終端的藍牙模組發射設定格式的藍牙廣播包。
一種實施方式中,所述設定格式為ibeacon格式。
一種實施方式中,所述發送終端的藍牙模組為BLE藍牙模組。
步驟304:在接收到所述發送終端附近的終端設備發送的基於所述藍牙廣播包的藍牙通信連接請求後,建立所述發送終端與所述終端設備的藍牙通信連接。
步驟306:向所述終端設備推送基於附近位置的信息資訊。
一種實施方式中,在步驟304之後還包括:
接收所述終端設備發送的所述藍牙廣播包的信號強度資訊;
根據接收到的多個所述終端設備發送的所述藍牙廣播包的資訊強度資訊,判斷所述終端設備接收到的所述藍牙廣播包的信號強度的最大值是否小於第四設定閾值;
若判斷結果為所述藍牙廣播包的信號強度的最大值小於第四設定閾值,則判定所述發送終端的擺放位置不合理。
本發明實施例在作為支付物料的發送終端中加入設定格式的藍牙廣播,當使用者的移動設備接近支付物料後,與所述設定格式的藍牙廣播應用程式可以被喚醒,從而實現暖啟動和基於資料獲取的動銷。透過支付物料與使用者移動終端的之間的連動,可以基於不同場景動態選擇應用應用是否進行預載入,既提升了使用者體驗,又尊重使用者的選擇。
其中,處理器120可以執行圖4所示方法中的步驟。圖4是示出了根據本說明書一實施例的資訊推送方法的示意性流程圖,包括步驟402、步驟404和步驟406。
步驟402:接收終端設備的應用程式上傳的發送終端的設備資訊和藍牙廣播包的信號強度資訊,其中,所述發送終端的設備資訊從所述終端設備的藍牙模組搜索到的設定格式的藍牙廣播包中解析得到;
步驟404:根據所述發送終端的設備資訊,獲取對應於所述設備資訊的所述終端設備的藍牙廣播包的信號強度資訊;
步驟406:根據對應於所述設備資訊的所述終端設備的藍牙廣播包的信號強度資訊,判斷所述發送終端的擺放位置是否合理。
一種實施方式中,步驟406包括:
根據發送設備的設備資訊獲取終端設備上傳的對應於所述設備資訊的藍牙廣播包的信號強度資訊;根據對應於所述設備資訊的藍牙廣播包的信號強度資訊,判斷所述終端設備接收到的所述藍牙廣播包的信號強度最大值是否小於第四設定閾值;若判斷結果為所述終端設備接收到的所述藍牙廣播包的信號強度最大值小於第四設定閾值,則判定所述發送終端的擺放位置不合理。
圖5是示出了本說明書一個實施例的雲端資訊處理方法流程示意圖。如圖5所示,該方法包括:
步驟502:接收終端設備的應用程式上傳的至少一個發送終端的設備資訊、位置座標資訊、時間戳記資訊和和藍牙廣播包的信號強度資訊,其中,所述發送終端的設備資訊從所述終端設備的藍牙模組搜索到的設定格式的藍牙廣播包中解析得到;
步驟504:根據所述至少一個發送終端的設備資訊,獲取對應於所述設備資訊的所述終端設備的位置座標資訊、時間戳記資訊和藍牙廣播包的信號強度資訊;
步驟506:根據所述終端設備的位置座標資訊、時間戳記資訊和藍牙廣播包的信號強度資訊,判斷所述發送終端的擺放位置是否合理。
一種實施方式中,步驟506包括:
獲取多個終端設備上傳的對應於所述發送終端的位置座標資訊、時間戳記資訊和藍牙廣播包的信號強度資訊,得到每個所述終端設備在靠近所述發送終端過程中的靠近軌跡;根據多個所述終端設備的靠近軌跡得到多個所述終端設備靠近所述發送終端的使用者靠近路線圖;以所述發送終端為圓心將所述使用者靠近路線圖分為n等份,統計所述靠近軌跡的軌跡起點最多的區域中靠近軌跡的第一平均距離與所述靠近軌跡的軌跡起點最少的區域中靠近軌跡的第二平均距離,其中,n為自然數;判斷所述第一平均距離與所述第二平均距離的差值是否大於第五設定閾值或所述第一平均距離與所述第二平均距離的比值是否大於第六設定閾值;若判斷結果為是則判定所述發送終端的擺放位置合理,否則判定所述發送終端的排放位置不合理。
一種實現方式中,所述根據多個終端設備上傳的對應於所述發送終端的位置座標資訊和藍牙廣播包的信號強度資訊,得到每個所述終端設備在靠近所述發送終端過程中的靠近軌跡步驟包括:
針對每個終端設備,根據該終端設備上傳的時間戳記資訊和位置座標資訊得到該終端設備靠近所述發送終端的最早時間及對應的位置座標,將所述最早時間對應的位置座標作為該終端設備的軌跡起點;根據該終端設備上傳的位置座標資訊、時間戳記資訊和藍牙廣播包的信號強度資訊,得到該終端設備接收到的藍牙廣播包的信號強度最先達到第七設定閾值時對應的位置座標,將所述最先達到第七設定閾值時對應的位置座標該終端設備的軌跡終點;根據所述軌跡起點和所述軌跡終點以及該終端設備介於所述軌跡起點和所述軌跡終點之間的位置座標資訊,得到該終端設備的靠近軌跡。
一種實現方式中,還可以根據使用者在靠近過程中的感興趣位置為發送終端的所有者提供展示建議,具體包括:
獲取與同一發送終端發生靠近行為的多個終端設備上傳的各自的位置座標資訊和時間戳記資訊;根據所述位置座標資訊和所述時間戳記資訊得到每個所述終端設備在所述靠近行為中停留時間超過第八設定閾值(如1分鐘)的興趣位置座標;基於所述興趣位置向所述終端設備的關聯設備發送基於所述興趣位置的展示建議資訊。
本發明實施例在作為支付物料的發送終端中加入設定格式的藍牙廣播,當使用者的移動設備接近支付物料後,與所述設定格式的藍牙廣播應用程式可以被喚醒,從而實現暖啟動和基於資料獲取的動銷。透過支付物料與使用者移動終端的之間的連動,可以基於不同場景動態選擇應用應用是否進行預載入,既提升了使用者體驗,又尊重使用者的選擇。
相對應,本說明書還提供了裝置實施例,所述裝置實施例可以透過軟體實現,也可以透過硬體或者軟硬體結合的方式實現。以軟體實現為例,作為一個邏輯意義上的裝置,是透過其所在設備的處理器將非易失性記憶體中對應的電腦程式指令讀取到記憶體中運行形成的。從硬體層面而言,本說明書應用程式的喚醒裝置所在設備的一種硬體結構可以包括處理器、網路介面、記憶體以及非易失性記憶體之外,實施例中裝置所在的設備通常根據該應用程式喚醒的實際功能,還可以包括其他硬體,對此不再贅述。
參見圖11,圖11為本說明書一實施例提供的應用程式的喚醒、資訊推送系統模組圖。該系統包括應用程式800的喚醒裝置500、資訊推送裝置600和雲端資訊處理裝置700。
應用程式的喚醒裝置500對應了圖2所示實施例,所述裝置適於在終端設備上執行,所述裝置500包括:
監聽器510,被配置為監聽終端設備的藍牙模組搜索藍牙廣播包的搜索事件;
第一判斷器520,被配置為當監聽到所述藍牙模組搜索到藍牙廣播包時,判斷所述藍牙廣播包是否符合設定格式;
啟動器530,被配置為若所述藍牙廣播包符合所述設定格式,啟動與所述藍牙廣播包對應的應用程式。
一個可選的實施例中,裝置500還包括:
註冊器,被配置為預先在所述終端設備的作業系統中註冊藍牙監聽事件。
一個可選的實施例中,裝置500還包括:
解析器,被配置為對所述藍牙廣播包進行解析得到發送終端的設備資訊;
第一連接器,被配置為基於所述設備資訊建立所述終端設備與所述發送終端的藍牙通信連接。
一個可選的實施例中,裝置500還包括:
第一接收器,被配置為接收所述發送終端發送的基於所述發送終端位置的信息資訊,並將所述信息資訊保存至所述應用程式。
一個可選的實施例中,裝置500還包括:
第二判斷器,被配置為判斷所述藍牙模組搜索到的藍牙廣播包的信號強度是否不小於第一設定閾值和/或所述藍牙廣播包的信號持續時間是否不小於第二設定閾值;
所述啟動器還被配置為若所述第一判斷器的判斷結果為所述信號強度不小於所述第一設定閾值和/或所述信號持續時間不小於所述第二設定閾值則啟動與所述藍牙廣播包對應的應用程式;
所述監聽器還被配置為若所述第一判斷器的判斷結果為所述信號強度小於所述第一設定閾值和/或所述信號持續時間小於所述第二設定閾值則繼續監聽所述藍牙模組的藍牙搜索事件。
參閱圖11,資訊推送裝置600對應了圖3所示實施例,所述裝置適於在發送終端上執行,所述裝置600包括:
發送器610,被配置為透過發送終端的藍牙模組發射設定格式的藍牙廣播包;
第二連接器620,被配置為在接收到所述發送終端附近的終端設備發送的基於所述藍牙廣播包的藍牙通信連接請求後,建立所述發送終端與所述終端設備的藍牙通信連接;
推送器630,被配置為向所述終端設備推送基於附近位置的信息資訊。
一個可選的實施例中,裝置600還包括:
第二接收器,被配置為接收所述終端設備發送的所述藍牙廣播包的信號強度資訊;
第二判斷器,被配置為根據接收到的多個所述終端設備發送的所述藍牙廣播包的資訊強度資訊,判斷所述終端設備接收到的所述藍牙廣播包的信號強度的最大值是否小於第四設定閾值;
第一判定器,被配置為若判斷結果為所述藍牙廣播包的信號強度的最大值小於第四設定閾值,則判定所述發送終端的擺放位置不合理。
繼續參閱圖11,雲端資訊處理裝置700對應了圖4所示實施例,所述裝置適於在雲端伺服器上執行,所述裝置700包括:
第三接收器710,被配置為接收終端設備的應用程式上傳的發送終端的設備資訊,其中,所述發送終端的設備資訊從所述終端設備的藍牙模組搜索到的設定格式的藍牙廣播包中解析得到;
第一獲取器720,被配置為獲取發送同一所述設備資訊的應用程式的使用者身份資訊和行為資訊;
關聯器730,被配置為基於多個使用者身份資訊的屬性特徵和行為資訊的屬性特徵,將使用者的身份資訊和行為資訊相關聯。
本說明書一個實施例還提供了一種雲端資訊處理裝置,包括:
第四接收器,被配置為接收終端設備的應用程式上傳的至少一個發送終端的設備資訊、位置座標資訊、時間戳記資訊和和藍牙廣播包的信號強度資訊,其中,所述發送終端的設備資訊從所述終端設備的藍牙模組搜索到的設定格式的藍牙廣播包中解析得到;
第二獲取器,被配置為根據所述至少一個發送終端的設備資訊,獲取對應於所述設備資訊的所述終端設備的位置座標資訊、時間戳記資訊和藍牙廣播包的信號強度資訊;
第二位置判斷器,被配置為根據所述終端設備的位置座標資訊、時間戳記資訊和藍牙廣播包的信號強度資訊,判斷所述發送終端的擺放位置是否合理。
上述實施例闡明的裝置、模組或單元,具體可以由電腦晶片或實體實現,
或者由具有某種功能的產品來實現。一種典型的實現設備為電腦,電腦的具體形式可以是個人電腦、膝上型電腦、蜂巢式電話、相機電話、智慧型電話、個人數位助理、媒體播放機、導航設備、電子郵件收發設備、遊戲控制台、平板電腦、可穿戴設備或者這些設備中的任意幾種設備的組合。
上述裝置中各個單元的功能和作用的實現過程具體詳見上述方法中對應步驟的實現過程,在此不再贅述。
對於裝置實施例而言,由於其基本對應於方法實施例,所以相關之處參見方法實施例的部分說明即可。以上所描述的裝置實施例僅僅是示意性的,其中所述作為分離部件說明的單元可以是或者也可以不是物理上分開的,作為單元顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部模組來實現本說明書方案的目的。本領域普通技術人員在不付出進步性勞動的情況下,即可以理解並實施。
本說明書一實施例還提供一種計算設備,包括記憶體、處理器及儲存在記憶體上並可在處理器上運行的電腦指令,所述處理器執行所述指令時實現所述的應用程式的喚醒方法或資訊推送方法或雲端資訊處理方法的步驟。
本說明書一實施例還提供一種電腦可讀儲存媒體,其儲存有電腦指令,該指令被處理器執行時實現所述的應用程式的喚醒方法或資訊推送方法或雲端資訊處理方法的步驟。
上述為本實施例的一種電腦可讀儲存媒體的示意性方案。需要說明的是,該儲存媒體的技術方案與上述的自動化測試方法的技術方案屬於同一構思,儲存媒體的技術方案未詳細描述的細節內容,均可以參見上述自動化測試方法的技術方案的描述。
所述電腦指令包括電腦程式代碼,所述電腦程式代碼可以為原始程式碼形式、物件代碼形式、可執行檔或某些中間形式等。所述電腦可讀媒體可以包括:能夠攜帶所述電腦程式代碼的任何實體或裝置、記錄媒體、U盤、移動硬碟、磁碟、光碟、電腦記憶體、唯讀記憶體(ROM, Read-Only Memory)、隨機存取記憶體(RAM, Random Access Memory)、電載波信號、電信信號以及軟體分發媒體等。需要說明的是,所述電腦可讀媒體包含的內容可以根據司法管轄區內立法和專利實踐的要求進行適當的增減,例如在某些司法管轄區,根據立法和專利實踐,電腦可讀媒體不包括電載波信號和電信信號。
需要說明的是,對於前述的各方法實施例,為了簡便描述,故將其都表述為一系列的動作組合,但是本領域技術人員應該知悉,本說明書並不受所描述的動作順序的限制,因為依據本說明書,某些步驟可以採用其它順序或者同時進行。其次,本領域技術人員也應該知悉,說明書中所描述的實施例均屬於較佳實施例,所涉及的動作和模組並不一定都是本說明書所必須的。
在上述實施例中,對各個實施例的描述都各有側重,某個實施例中沒有詳述的部分,可以參見其它實施例的相關描述。
以上公開的本說明書較佳實施例只是用於幫助闡述本說明書。可選實施例並沒有詳盡敘述所有的細節,也不限制該發明僅為所述的具體實施方式。顯然,根據本說明書的內容,可作很多的修改和變化。本說明書選取並具體描述這些實施例,是為了更好地解釋本說明書的原理和實際應用,從而使所屬技術領域技術人員能很好地理解和利用本說明書。本說明書僅受申請專利範圍及其全部範圍和等效物的限制。In the following description, many specific details are explained in order to fully understand this specification. However, this specification can be implemented in many other ways different from those described here, and those skilled in the art can make similar promotion without departing from the connotation of this specification, so this specification is not limited by the specific implementation disclosed below.
FIG. 1 is a block diagram showing the structure of a computing device 100 according to an embodiment of the present specification. The components of the computing device 100 include but are not limited to a memory 110 and a processor 120. The processor 120 and the memory 110 are connected through the bus 130, and the database 150 is used to store user data.
The computing device 100 also includes an access device 140 that enables the computing device 100 to communicate via one or more networks. Examples of these networks include public switched telephone networks (PSTN), local area networks (LAN), wide area networks (WAN), personal area networks (PAN), or a combination of communication networks such as the Internet. The access device 140 may include one or more of any type of wired or wireless network interface (for example, a network interface card (NIC)), such as the IEEE802.11 wireless local area network (WLAN) wireless interface, and the Global Interconnect for Microwave Take (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, cellular network interface, Bluetooth interface, near field communication (NFC) interface, etc.
In an embodiment of this specification, the above-mentioned components of the computing device 100 and other components not shown in FIG. 1 may also be connected to each other, for example, through a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 1 is for illustrative purposes only, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
The computing device 100 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (for example, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (for example, smart Mobile phones), wearable computing devices (for example, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 100 may also be a mobile or stationary server.
The processor 120 may execute the steps in the method shown in FIG. 2. FIG. 2 is a schematic flowchart showing a method for waking up an application according to an embodiment of this specification. The method is suitable for execution on a terminal device and includes step 202, step 204, and step 206.
Step 202: Monitor the search event of the Bluetooth module of the terminal device searching for the Bluetooth broadcast packet.
In an implementation manner, before step 202, the method further includes: pre-registering a Bluetooth monitoring event in the operating system of the terminal device. For example, when an application is installed or updated, during the installation or update process, a Bluetooth monitoring event can be registered in the operating system of the terminal device, so as to monitor the search event of the Bluetooth module of the terminal device searching for Bluetooth broadcast packets.
Step 204: When it is monitored that the Bluetooth module searches for a Bluetooth broadcast packet, it is determined whether the Bluetooth broadcast packet conforms to a set format.
In an implementation manner, the Bluetooth module of the terminal device is a BLE (Bluetooth Low Energy) Bluetooth module. As shown in Fig. 6 and Fig. 7, Fig. 6 and Fig. 7 are respectively schematic diagrams showing BLE broadcast transmission according to an embodiment of this specification. The module in the picture only needs 2 parts: a device that serves as a Bluetooth beacon for broadcasting (here is payment materials such as Alipay boxes), and a ble scanning device (here is a mobile device, such as a mobile phone, bracelet). The BLE Bluetooth module uses a variable connection time interval, which can be set from a few milliseconds to a few seconds depending on the specific application. In addition, because the BLE Bluetooth module has a faster connection method, it can be in a "non-connected" state (energy saving). At this time, both ends of the link only know each other, and the link is only opened when necessary.
In one embodiment, the setting format is ibeacon format. When it is monitored that the Bluetooth module searches for a Bluetooth broadcast packet, it is judged whether the format of the searched Bluetooth broadcast packet conforms to the ibeacon format.
As shown in Figure 8 and Figure 9, Figure 8 is a schematic diagram showing the structure of a package based on ibeacon, and Figure 9 is a schematic diagram of the structure of the data field in the ibeacon package. The packet structure of Ibeacon includes header (header, 1 byte), access address (4 bytes), PDU (Protocol Data Unit, 2-39 bytes), CRC ( Cyclic Redundancy Check, Cyclic Redundancy Check, 3 bytes) and data (Data, up to 31 bytes) and other fields. The data fields include ibeacon prefix (ibeacon prefix, 9 bytes), Proxmity UUID (near universal unique identifier, 16 bytes), Major (area number, 2 bytes), Minor (product number, 2 digits) Tuple) and TX power (transmit power, 1 byte). In one implementation, the information of the sending terminal is broadcast through major id (area number) and minor id (product number). After the mobile phone recognizes the device, it can lock the unique box for other precise marketing: based on the merchant corresponding to the box Push related coupons to increase the store rate and recommend surrounding stores.
In an implementation manner, before step 206, the method further includes:
Determine whether the signal strength RSSI (Received Signal Strength Indicator, received signal strength indicator) of the Bluetooth broadcast packet searched by the Bluetooth module is not less than a first set threshold and/or whether the signal duration of the Bluetooth broadcast packet is not less than A second set threshold; if the judgment result is that the signal strength is not less than the first set threshold and/or the signal duration is not less than the second set threshold, then go to step 206; if the judgment result is the signal strength If it is less than the first set threshold and/or the signal duration is less than the second set threshold, then jump to step 202. This is because if the received signal strength value is too small or the time is too short, it means that it is just passing by, and there is no possibility of staying and subsequent consumption in the future. At this time, the program application will not be activated.
Step 206: If the Bluetooth broadcast package conforms to the set format, start the application corresponding to the Bluetooth broadcast package.
In an implementation manner, after step 206, the method further includes: analyzing the Bluetooth broadcast packet to obtain device information of the sending terminal; and establishing a Bluetooth communication connection between the terminal device and the sending terminal based on the device information. As a result, a linkable communication link is established between the sending terminal (such as payment materials such as Alipay box) and the application program of the user terminal device (such as a mobile terminal such as a smart phone) to facilitate the push of coupons and other information.
In one embodiment, after the step of establishing a Bluetooth communication connection between the terminal device and the sending terminal based on the device information, the method further includes: receiving information based on the location of the sending terminal from the sending terminal, and Save the information to the application.
In one implementation, when the information is saved in the application, the information is saved in the corresponding module of the application according to the category of the information. For example, store coupons can be saved to the coupon module of the application.
In one embodiment, only the basic module of the application is pre-loaded when the application is started, and the basic module can be flexibly set according to specific needs, for example, it may be the module most frequently used by the user, such as a wallet Application modules.
In one embodiment, step 206 includes: if the Bluetooth broadcast package conforms to the set format, determining whether the previous shutdown of the application corresponding to the Bluetooth broadcast package is the user's active shutdown; if the result of the determination is not the user's active shutdown, then start The application.
In one embodiment, the step of judging whether the previous closing of the application corresponding to the Bluetooth broadcast package is the user's active closing includes: querying the application interface file or log file in the mobile terminal, if the application is in the application If there is no behavior record corresponding to the closing of the application in the interface file or the log file, it is determined that the application is not actively closed by the user.
In one embodiment, the step of judging whether the previous closing of the application corresponding to the Bluetooth broadcast package is a user active closing includes: obtaining the keep-alive time of the application, and judging the application according to the keep-alive time Whether the execution time in the background is not less than the third set threshold and the mobile terminal is in the screen rest state; if the judgment result is yes, it is judged that the application program is not actively closed by the user.
In one embodiment, after the step of determining whether the previous closing of the application corresponding to the Bluetooth broadcasting package is the user active closing step, if the Bluetooth broadcast package conforms to the set format, the method further includes: if the result of the determination is that the user actively closes , The application will not be activated.
In one embodiment, after the step of analyzing the Bluetooth broadcast packet to obtain the device information of the sending terminal, the method further includes: sending the signal strength of the Bluetooth broadcast packet of the sending terminal searched by the mobile terminal to the Sending terminal; or uploading the device information of the sending terminal to the cloud server; or uploading the device information of the sending terminal and the signal strength of the Bluetooth broadcast packet of the sending terminal searched by the mobile terminal to the cloud server Device.
In the embodiment of the present invention, a Bluetooth broadcast with a set format is added to the sending terminal as a payment material. When the user's mobile device approaches the payment material, the Bluetooth broadcast application with the set format can be awakened, thereby realizing a warm start and Movable pins for data acquisition. Through the linkage between the payment material and the user's mobile terminal, it is possible to dynamically choose whether to preload the application based on different scenarios, which not only improves the user experience, but also respects the user's choice.
The processor 120 may execute the steps in the method shown in FIG. 3. FIG. 3 is a schematic flowchart showing a method for pushing information according to an embodiment of the present specification. The method is suitable for execution on a sending terminal, and includes step 302, step 304, and step 306.
Step 302: Transmit the Bluetooth broadcast packet of the set format through the Bluetooth module of the sending terminal.
In one embodiment, the setting format is ibeacon format.
In an implementation manner, the Bluetooth module of the sending terminal is a BLE Bluetooth module.
Step 304: After receiving a Bluetooth communication connection request based on the Bluetooth broadcast packet sent by a terminal device near the sending terminal, establish a Bluetooth communication connection between the sending terminal and the terminal device.
Step 306: Push information based on nearby locations to the terminal device.
In an implementation manner, after step 304, the method further includes:
Receiving the signal strength information of the Bluetooth broadcast packet sent by the terminal device;
Judging whether the maximum value of the signal strength of the Bluetooth broadcast packet received by the terminal device is less than a fourth set threshold according to the received information strength information of the Bluetooth broadcast packet sent by the multiple terminal devices;
If the determination result is that the maximum value of the signal strength of the Bluetooth broadcast packet is less than the fourth set threshold, it is determined that the placement position of the sending terminal is unreasonable.
In the embodiment of the present invention, a Bluetooth broadcast with a set format is added to the sending terminal as a payment material. When the user's mobile device approaches the payment material, the Bluetooth broadcast application with the set format can be awakened, thereby realizing a warm start and Movable pins for data acquisition. Through the linkage between the payment material and the user's mobile terminal, it is possible to dynamically choose whether to preload the application based on different scenarios, which not only improves the user experience, but also respects the user's choice.
The processor 120 may execute the steps in the method shown in FIG. 4. FIG. 4 is a schematic flowchart showing an information push method according to an embodiment of the present specification, including step 402, step 404, and step 406.
Step 402: Receive the device information of the sending terminal and the signal strength information of the Bluetooth broadcast packet uploaded by the application program of the terminal device, wherein the device information of the sending terminal is searched from the Bluetooth module of the terminal device in the set format of Bluetooth Parsed in the broadcast package;
Step 404: Acquire signal strength information of the Bluetooth broadcast packet of the terminal device corresponding to the device information according to the device information of the sending terminal;
Step 406: According to the signal strength information of the Bluetooth broadcast packet of the terminal device corresponding to the device information, determine whether the location of the sending terminal is reasonable.
In one embodiment, step 406 includes:
Obtain the signal strength information of the Bluetooth broadcast packet corresponding to the device information uploaded by the terminal device according to the device information of the sending device; determine the signal strength information of the Bluetooth broadcast packet corresponding to the device information Whether the maximum signal strength of the Bluetooth broadcast packet is less than a fourth set threshold; if the judgment result is that the maximum signal strength of the Bluetooth broadcast packet received by the terminal device is less than the fourth set threshold, then it is determined that the sending terminal The placement position of is unreasonable.
FIG. 5 is a schematic flowchart showing a cloud information processing method according to an embodiment of this specification. As shown in Figure 5, the method includes:
Step 502: Receive at least one sending terminal’s device information, location coordinate information, time stamp information, and signal strength information of the Bluetooth broadcast packet uploaded by the application program of the terminal device, wherein the device information of the sending terminal is from the terminal device Parsed from the Bluetooth broadcast packet of the setting format searched by the Bluetooth module;
Step 504: According to the device information of the at least one sending terminal, obtain position coordinate information, time stamp information, and signal strength information of the Bluetooth broadcast packet of the terminal device corresponding to the device information;
Step 506: Determine whether the location of the sending terminal is reasonable according to the position coordinate information, the time stamp information and the signal strength information of the Bluetooth broadcast packet of the terminal device.
In one implementation, step 506 includes:
Acquiring position coordinate information, time stamp information, and Bluetooth broadcast packet signal strength information uploaded by multiple terminal devices corresponding to the sending terminal, and obtaining the approach trajectory of each terminal device in the process of approaching the sending terminal; The approaching trajectories of the multiple terminal devices obtain the approaching route map of the multiple terminal devices approaching the sending terminal; the user approaching route map is divided into n equal parts with the sending terminal as the center, and statistics The first average distance close to the trajectory in the region with the most trajectory starting points close to the trajectory and the second average distance close to the trajectory in the region with the least trajectory starting points close to the trajectory, where n is a natural number; determining the first Whether the difference between the average distance and the second average distance is greater than the fifth set threshold or whether the ratio of the first average distance to the second average distance is greater than the sixth set threshold; if the result of the judgment is yes, then the judgment is The placement position of the sending terminal is reasonable, otherwise it is determined that the discharge position of the sending terminal is unreasonable.
In an implementation manner, according to the position coordinate information corresponding to the sending terminal and the signal strength information of the Bluetooth broadcast packet uploaded by a plurality of terminal devices, the approach of each terminal device in the process of approaching the sending terminal is obtained The trajectory steps include:
For each terminal device, obtain the earliest time that the terminal device is close to the sending terminal and the corresponding location coordinates according to the time stamp information and location coordinate information uploaded by the terminal device, and use the location coordinates corresponding to the earliest time as the terminal device The starting point of the trajectory; according to the position coordinate information uploaded by the terminal device, the time stamp information and the signal strength information of the Bluetooth broadcast packet, the position corresponding to when the signal strength of the Bluetooth broadcast packet received by the terminal device first reaches the seventh set threshold is obtained Coordinates, the position coordinates corresponding to the first reaching the seventh set threshold are the trajectory end points of the terminal device; according to the trajectory start point and the trajectory end point and the terminal device is between the trajectory start point and the trajectory end point The position and coordinate information of the terminal can be used to obtain the approach track of the terminal device.
In an implementation manner, it is also possible to provide display suggestions for the owner of the sending terminal according to the user's interested position in the approaching process, which specifically includes:
Obtain the respective position coordinate information and time stamp information uploaded by multiple terminal devices that have approached with the same sending terminal; according to the position coordinate information and the time stamp information, obtain that each terminal device is in the approaching behavior The coordinates of the location of interest whose stay time exceeds an eighth set threshold (for example, 1 minute); and based on the location of interest, sending the display suggestion information based on the location of interest to the associated device of the terminal device.
In the embodiment of the present invention, a Bluetooth broadcast with a set format is added to the sending terminal as a payment material. When the user's mobile device approaches the payment material, the Bluetooth broadcast application with the set format can be awakened, thereby realizing a warm start and Movable pins for data acquisition. Through the linkage between the payment material and the user's mobile terminal, it is possible to dynamically choose whether to preload the application based on different scenarios, which not only improves the user experience, but also respects the user's choice.
Correspondingly, this specification also provides device embodiments. The device embodiments can be implemented through software, or through hardware or a combination of software and hardware. Take software implementation as an example. As a logical device, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory through the processor of the device where it is located. From the perspective of hardware, a hardware structure of the device where the wake-up device of the application in this specification is located can include a processor, a network interface, a memory, and a non-volatile memory. The device in the embodiment is usually According to the actual function of the application wake-up, it can also include other hardware, which will not be repeated.
Refer to FIG. 11, which is a module diagram of an application wake-up and information push system provided by an embodiment of this specification. The system includes an application 800 wake-up device 500, an information push device 600, and a cloud information processing device 700.
The device 500 for waking up the application program corresponds to the embodiment shown in FIG. 2. The device is adapted to be executed on a terminal device, and the device 500 includes:
The listener 510 is configured to listen for search events in which the Bluetooth module of the terminal device searches for Bluetooth broadcast packets;
The first determiner 520 is configured to determine whether the Bluetooth broadcast packet conforms to a set format when it is monitored that the Bluetooth module searches for a Bluetooth broadcast packet;
The launcher 530 is configured to activate the application program corresponding to the Bluetooth broadcast package if the Bluetooth broadcast package conforms to the set format.
In an optional embodiment, the apparatus 500 further includes:
The register is configured to register Bluetooth monitoring events in the operating system of the terminal device in advance.
In an optional embodiment, the apparatus 500 further includes:
A parser, configured to parse the Bluetooth broadcast packet to obtain device information of the sending terminal;
The first connector is configured to establish a Bluetooth communication connection between the terminal device and the sending terminal based on the device information.
In an optional embodiment, the apparatus 500 further includes:
The first receiver is configured to receive information based on the location of the sending terminal sent by the sending terminal, and save the information to the application.
In an optional embodiment, the apparatus 500 further includes:
The second determiner is configured to determine whether the signal strength of the Bluetooth broadcast packet searched by the Bluetooth module is not less than a first set threshold and/or whether the signal duration of the Bluetooth broadcast packet is not less than a second set threshold;
The starter is also configured to start and if the judgment result of the first judger is that the signal strength is not less than the first set threshold and/or the signal duration is not less than the second set threshold The application program corresponding to the Bluetooth broadcast package;
The monitor is further configured to continue to monitor the signal if the result of the judgment of the first judge is that the signal intensity is less than the first set threshold and/or the signal duration is less than the second set threshold. Bluetooth search event of the Bluetooth module.
Referring to FIG. 11, an information pushing device 600 corresponds to the embodiment shown in FIG. 3, and the device is adapted to be executed on a sending terminal, and the device 600 includes:
The transmitter 610 is configured to transmit a Bluetooth broadcast packet in a set format through the Bluetooth module of the transmitting terminal;
The second connector 620 is configured to establish a Bluetooth communication connection between the sending terminal and the terminal device after receiving a Bluetooth communication connection request based on the Bluetooth broadcast packet sent by a terminal device near the sending terminal;
The pusher 630 is configured to push information based on nearby locations to the terminal device.
In an optional embodiment, the apparatus 600 further includes:
The second receiver is configured to receive the signal strength information of the Bluetooth broadcast packet sent by the terminal device;
The second determiner is configured to determine whether the maximum value of the signal strength of the Bluetooth broadcast packet received by the terminal device is based on the received information strength information of the Bluetooth broadcast packet sent by the plurality of terminal devices Less than the fourth set threshold;
The first determiner is configured to determine that the placement position of the sending terminal is unreasonable if the determination result is that the maximum value of the signal strength of the Bluetooth broadcast packet is less than a fourth set threshold.
Continuing to refer to FIG. 11, the cloud information processing device 700 corresponds to the embodiment shown in FIG. 4. The device is suitable for execution on a cloud server, and the device 700 includes:
The third receiver 710 is configured to receive the device information of the sending terminal uploaded by the application program of the terminal device, wherein the device information of the sending terminal is searched from the Bluetooth module of the terminal device and the Bluetooth broadcast packet in the set format Parsed in;
The first obtainer 720 is configured to obtain user identity information and behavior information of the application that sends the same device information;
The associator 730 is configured to associate the user's identity information with the behavior information based on the attribute characteristics of the multiple user identity information and the attribute characteristics of the behavior information.
An embodiment of the present specification also provides a cloud information processing device, including:
The fourth receiver is configured to receive device information, position coordinate information, time stamp information, and signal strength information of the Bluetooth broadcast packet of at least one sending terminal uploaded by the application program of the terminal device, wherein the device information of the sending terminal Parsed from the Bluetooth broadcast packet of the set format searched by the Bluetooth module of the terminal device;
The second acquirer is configured to acquire position coordinate information, time stamp information, and signal strength information of the Bluetooth broadcast packet of the terminal device corresponding to the device information according to the device information of the at least one sending terminal;
The second position determiner is configured to determine whether the placement position of the sending terminal is reasonable based on the position coordinate information of the terminal device, the time stamp information, and the signal strength information of the Bluetooth broadcast packet.
The devices, modules, or units explained in the above embodiments can be specifically implemented by computer chips or entities,
Or realized by a product with a certain function. A typical implementation device is a computer. The specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email receiving and sending device, and a game. Console, tablet, wearable device, or a combination of any of these devices.
For the implementation process of the functions and roles of each unit in the above-mentioned device, please refer to the implementation process of the corresponding steps in the above-mentioned method for details, which will not be repeated here.
For the device embodiment, since it basically corresponds to the method embodiment, the relevant part can refer to the part of the description of the method embodiment. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement it without making progressive work.
An embodiment of the present specification also provides a computing device, including a memory, a processor, and computer instructions stored on the memory and capable of running on the processor. When the processor executes the instructions, the application program is executed. The steps of the wake-up method or the information push method or the cloud information processing method.
An embodiment of the present specification also provides a computer-readable storage medium that stores computer instructions that, when executed by a processor, implement the steps of the application wake-up method, information push method, or cloud information processing method.
The foregoing is an exemplary solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned automated test method. For details of the technical solution of the storage medium that are not described in detail, please refer to the description of the technical solution of the above-mentioned automated test method.
The computer instruction includes computer program code, and the computer program code may be in the form of original program code, object code, executable file, or some intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only) Only Memory), Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal, software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.
It should be noted that for the foregoing method embodiments, for simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that this specification is not limited by the described sequence of actions. Because according to this specification, some steps can be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the involved actions and modules are not necessarily all required by the specification.
In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific embodiments described. Obviously, many modifications and changes can be made according to the content of this manual. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of this specification, so that those skilled in the art can understand and use this specification well. This specification is only limited by the scope of the patent application and its full scope and equivalents.