為使本發明的上述目的、特徵和優點能夠更加明顯易懂,下面結合圖式和具體實施方式對本發明作進一步詳細的說明。
LoRa網路由終端節點、基地台節點和伺服器組成。終端具有LoRa網路連接能力,並接入該LoRa網路。根據該LoRa網路所部署的應用場景的不同,該終端可以包括不同的電子設備,比如,在該LoRa網路應用於城市管理中時,該終端可以包括智慧電錶;在該LoRa網路應用於數位家庭中時,該終端可以包括各種智慧家電等等。
基地台,在LoRa網路中又稱為閘道器或者集中器,具有無線連接彙聚功能,包括終端提供接入LoRa網路的入口,對來自伺服器或終端的資料進行轉發,實現該終端與該伺服器之間的資料互動。當然,基地台也能夠與處於該基地台的信號覆蓋範圍內的其它基地台透過傳輸無線幀的方式進行資料互動。
伺服器可以包括一個伺服器或者伺服器集群,用於根據從基地台或終端獲取到的資料進行業務處理,以及對該基地台或該終端的工作模式和工作狀態進行控制。
目前LoRa網路的定位精度低的重要原因是使用了低頻率低頻寬的無線頻段。本發明實施例的核心構思之一在於,本LoRa定位方案不再採用現有的低頻窄帶LoRa模組(工作頻率包括但不限於470M-510MHz頻段)來進行測距,而是採用利用了高頻LoRa模組(工作頻率包括但不限於2.4GHz頻段)實現測距。雖然低頻窄帶LoRa模組具有功耗低、傳輸距離遠、靈敏度高的特點,但測距精度低。而高頻LoRa模組的功耗較高、傳輸距離較短、靈敏度較高,測距精度較高。另外470M-510MHz頻段的最大發射功率是17dbm,而2.4G頻段的最大發射功率可以達到20dbm以上,傳輸功率更高。
參照圖1,示出了本發明的一種通信網路的定位方法實施例1的步驟流程圖,所述通信網路包括:伺服器、具有第一高頻測距模組的基地台,以及具有第二高頻測距模組的終端,所述方法具體可以包括如下步驟:
步驟101,所述伺服器確定一個或多個第一基地台;
在本發明實施例中,通信網路可以為LoRa網路。伺服器從全網的基地台中選擇一個或多個第一基地台。具體的,第一基地台為能與終端通信的基地台,終端在各個第一基地台的覆蓋範圍內。
在一些特定的區域(例如,園區),基地台和終端的位置都是固定的,伺服器可以直接確定終端在哪些基地台的覆蓋範圍內。
此外,LoRa網路自身有一些機制和協定能使伺服器知道終端在哪些基地台的覆蓋範圍內。
步驟102,所述第一基地台透過自身的第一高頻測距模組,向終端的第二高頻測距模組發送測距請求無線幀;
伺服器可以通知各個第一基地台發送測距請求無線幀。
各個第一基地台按照一定的時序,依次透過自身的第一高頻測距模組向終端的第二高頻測距模組發送測距請求無線幀。
高頻測距模組的工作頻率包括但不限於2.4GHz頻段。
步驟103,所述終端透過自身的第二高頻測距模組,向所述第一基地台的第一高頻測距模組發送針對所述測距請求無線幀的測距應答無線幀;
終端在收到測距請求無線幀後,透過自身的第二高頻測距模組,依次各個第一基地台的第一高頻測距模組發送針測距應答無線幀。
步驟104,所述第一基地台透過自身的第一高頻測距模組,採用所述測距應答無線幀計算所述第一基地台與所述終端的距離資訊,並將所述距離資訊發送到伺服器;
第一基地台在收到測距應答無線幀後,透過自身的第一高頻測距模組,計算第一基地台與終端之間的距離。
高頻測距模組內置計算距離資訊的演算法。具體的,高頻測距模組根據自己發出測距請求無線幀的發送時間t1和收到測距應答無線幀的接送時間t2,再根據測距請求無線幀和測距應答無線幀的持續時間、晶片的固定處理時間,由此可以算出測距2個點間電波的飛行時間,從而算出距離。
各個第一基地台將計算得到的距離資訊發送給伺服器。
步驟105,所述伺服器採用各個第一基地台與所述終端的距離資訊,計算所述終端的位置。
具體的,伺服器預先知道各個第一基地台的位置。伺服器根據各個第一基地台與終端的距離資訊,採用定位演算法(例如,三角定位法)計算終端的位置。
在本發明實施例中,各個第一基地台透過自身的第一高頻測距模組向終端的第二高頻測距模組發送測距請求無線幀,終端透過第二高頻測距模組向各個第一基地台的第一高頻測距模組返回測距應答無線幀。各個第一基地台透過自身的第一高頻測距模組,根據距應答無線幀計算第一基地台與終端的距離資訊,伺服器根據各個第一基地台與終端的距離資訊確定終端的位置。與現有的透過低頻LoRa模組進行定位的方法相比,在本發明實施例中透過高頻測距模組進行定位的方法,可以提高定位精度。
與GPS定位技術比,GPS定位無法支持室內定位,而且GPS定位需要一個較長的時間來搜索GPS衛星。而本發明實施例具有即時性高、支援室內定位等特點。
參照圖2,示出了本發明的一種通信網路的定位方法實施例2的步驟流程圖,所述通信網路包括:伺服器、具有第一高頻測距模組的基地台,以及具有第二高頻測距模組的終端,所述方法具體可以包括如下步驟:
步驟201,所述伺服器確定第二基地台,並向第二基地台發送定位命令請求消息;所述定位命令請求消息包括針對測距請求無線幀的第一標識資訊;
伺服器從全網的基地台中選擇一個能與終端通信的基地台作為第二基地台,例如,選擇與終端的通信信號最好的基地台作為第二基地台。
伺服器向第二基地台發送定位命令請求消息,以開啟定位流程。
步驟202,所述第二基地台根據定位命令請求消息,向所述終端發送定位請求無線幀,所述定位請求無線幀包括所述針對測距請求無線幀的第一標識資訊;
第二基地台接收到定位命令請求消息後,提取定位命令請求消息中的針對測距請求無線幀的第一標識資訊;之後,第二基地台產生定位請求無線幀,並將第一標識資訊添加到定位請求無線幀中;最後,第二基地台將定位請求無線幀發送給終端,以告知終端即將進行定位。
終端在接收到定位請求無線幀後,終端可以從定位請求無線幀分析得到第一標識資訊。進一步的,還可以從定位請求無線幀中分析得到之後流程中的測距請求無線幀的發射功率、頻率參數、頻寬參數、調變參數等。
在本發明實施例中,所述基地台還可以包括第一低頻通信模組,所述終端還可以包括第二低頻通信模組;
所述步驟202可以包括:所述第二基地台透過自身的第一低頻通信模組,向所述終端的第二低頻通信模組發送定位請求無線幀。
在本發明實施例中,第一低頻通信模組和第二低頻通信模組的工作頻率包括但不限於470M-510MHz頻段。
第二基地台可以沒有第一高頻測距模組,第二基地台可以只需透過自身的第一低頻通信模組向終端的第二低頻通信模組發送定位請求無線幀。
步驟203,所述伺服器確定第一基地台,並向所述第一基地台發送測距命令請求消息;所述測距命令請求消息包括針對測距請求無線幀的第二標識資訊;
伺服器從全網基地台中選擇一個或多個第一基地台。具體的,第一基地台為能與終端通信的基地台,終端在各個第一基地台的覆蓋範圍內。
伺服器可以按照一定的時序依次向各個第一基地台發送測距命令請求消息。
步驟204,所述第一基地台採用所述針對測距請求無線幀的第二標識資訊產生測距請求無線幀。
第一基地台接收到測距命令請求消息後,提取測距命令請求消息中的針對測距請求無線幀的第二標識資訊;之後,第一基地台產生測距請求無線幀,並將第二標識資訊添加到測距請求無線幀中。
一般情況下,各個第一基地台收到的第二標識資訊是相同的。
步驟205,所述第一基地台透過自身的第一高頻測距模組,向終端的第二高頻測距模組發送測距請求無線幀;
各個第一基地台可以按照一定的時序,依次透過自身的第一高頻測距模組向終端的第二高頻測距模組發送測距請求無線幀。
步驟206,所述終端將預先獲取的針對所述測距請求無線幀的第一標識資訊與所述針對測距請求無線幀的第二標識資訊進行比較;
終端比較從第二基地台發送的定位命令請求消息中獲取的第一標識資訊,與從第一基地台發送測距請求無線幀中的獲取的第二標識資訊是否相同。
步驟207,若相同,則所述終端透過自身的第二高頻測距模組,向所述第一基地台的第一高頻測距模組發送針對所述測距請求無線幀的測距應答無線幀;
第一標識和第二標識的作用是唯一標識透過高頻測距模組進行通信的雙方。若第一標識和第二標識相同,則證明該次通信是伺服器允許的。終端透過第二高頻測距模組,向相應的第一基地台的第一高頻測距模組返回測距應答無線幀。
若第一標識和第二標識不相同,則終端可以進行丟幀處理,不再返回測距應答無線幀。本發明實施例中,透過標識來判斷是否允許基地台與終端是否允許測距,可以保證允許測距的基地台都是伺服器預先確定的基地台。
步驟208,所述第一基地台透過自身的第一高頻測距模組,採用所述測距應答無線幀,計算所述第一基地台與所述終端的距離資訊,並將所述距離資訊發送到伺服器;
在本發明實施例中,所述步驟208可以包括如下子步驟:
子步驟S11,所述第一基地台透過自身的第一高頻測距模組,確定發送測距請求無線幀的發送時間,以及確定接收到所述測距應答無線幀的接收時間;
子步驟S12,所述第一基地台透過自身的第一高頻測距模組,採用所述發送時間和所述接收時間計算所述第一基地台自身與所述終端的距離資訊。
高頻測距模組內置計算距離資訊的演算法。具體的,高頻測距模組根據自己發出測距請求無線幀的發送時間t1和收到測距應答無線幀的接送時間t2,再根據測距請求無線幀和測距應答無線幀的持續時間、晶片的固定處理時間,由此可以算出測距2個點間電波的飛行時間,從而算出距離。
步驟209,所述伺服器採用各個第一基地台與所述終端的距離資訊,計算所述終端的位置。
具體的,伺服器預先知道各個第一基地台的位置。伺服器根據各個第一基地台與終端的距離資訊,採用定位演算法(例如,三角定位法)計算終端的位置。
在本發明實施例中,各個第一基地台透過自身的第一高頻測距模組向終端的第二高頻測距模組發送測距請求無線幀,終端透過第二高頻測距模組向各個第一基地台的第一高頻測距模組返回測距應答無線幀。各個第一基地台透過自身的第一高頻測距模組,根據距應答無線幀計算第一基地台與終端的距離資訊,伺服器根據各個第一基地台與終端的距離資訊確定終端的位置。與現有的透過低頻LoRa模組進行定位的方法相比,在本發明實施例中透過高頻測距模組進行定位的方法,可以提高定位精度。
與GPS定位技術比,GPS定位無法支持室內定位,而且GPS定位需要一個較長的時間來搜索GPS衛星。而本發明實施例具有即時性高、支援室內定位等特點。
參照圖3,示出了本發明的一種通信網路的定位方法實施例3的步驟流程圖,所述通信網路包括:伺服器、具有第一高頻測距模組的基地台,以及具有第二高頻測距模組的終端,所述方法具體可以包括如下步驟:
步驟301,所述伺服器確定第二基地台,並向第二基地台發送定位命令請求消息;所述定位命令請求消息包括針對測距請求無線幀的第一標識資訊;
伺服器從全網基地台中選擇一個能與終端通信的基地台作為第二基地台,例如,選擇與終端的通信信號最好的基地台作為第二基地台。
伺服器向第二基地台發送定位命令請求消息,以開啟定位流程。
步驟302,所述第二基地台根據定位命令請求消息,向所述終端發送定位請求無線幀,所述定位請求無線幀包括所述針對測距請求無線幀的第一標識資訊;
在本發明實施例中,所述基地台還可以包括第一低頻通信模組,所述終端還可以包括第二低頻通信模組;
所述步驟302可以包括:所述第二基地台透過自身的第一低頻通信模組,向所述終端的第二低頻通信模組發送定位請求無線幀。
在本發明實施例中,第一低頻通信模組和第二低頻通信模組的工作頻率包括但不限於470M-510MHz頻段。
步驟303,所述終端在接收到所述定位請求無線幀後,廣播定位應答無線幀;
在一些情況下,伺服器無法知道終端在全網中的哪些基地台的覆蓋範圍內。此時,可以由終端廣播定位應答無線幀。
在本發明實施例的一種示例中,所述步驟303可以為:所述終端在接收到所述定位請求無線幀後,透過自身的第二高頻測距模組廣播定位應答無線幀;
所述的方法還可以包括:
一個或多個基地台透過自身的第一高頻測距模組,接收所述定位應答無線幀。
在本示例中,終端透過自身的第二高頻測距模組廣播定位應答無線幀。一個或多個基地台能透過自身的第一高頻測距模組,接收該定位應答無線幀。
在本發明實施例的另一種示例中,所述步驟303可以為:所述終端在接收到所述定位請求無線幀後,透過自身的第二低頻通信模組廣播定位應答無線幀;
所述的方法還可以包括:
一個或多個基地台透過自身的第一低頻通信模組,接收所述定位應答無線幀。
在本示例中,終端透過自身的第二低頻通信模組廣播定位應答無線幀。一個或多個基地台能透過自身的第一低頻通信模組,接收該定位應答無線幀。
步驟304,接收到所述定位應答無線幀的一個或多個基地台,根據所述定位應答無線幀向所述伺服器發送定位命令應答消息;
接收到定位應答無線幀的基地台,產生定位命令應答消息,並向伺服器發送定位命令應答消息。
若基地台能接收到定位應答無線幀,則說明終端在該基地台的覆蓋範圍內。
步驟305,所述伺服器將發送所述定位命令應答消息的基地台,確定為第一基地台;
在本發明實施例中,伺服器可以透過步驟303-步驟305的內容,從全網基地台中確定出第一基地台。
步驟306,所述伺服器向所述第一基地台,發送測距命令請求消息;所述測距命令請求消息包括針對測距請求無線幀的第二標識資訊;
伺服器可以按照一定的時序依次向各個第一基地台發送測距命令請求消息。
步驟307,所述第一基地台,採用所述針對測距請求無線幀的第二標識資訊產生測距請求無線幀。
第一基地台接收到測距命令請求消息後,提取測距命令請求消息中的針對測距請求無線幀的第二標識資訊;之後,第一基地台產生測距請求無線幀,並將第二標識資訊添加到測距請求無線幀中。
步驟308,所述第一基地台透過自身的第一高頻測距模組,向終端的第二高頻測距模組發送測距請求無線幀;
各個第一基地台可以按照一定的時序,依次透過自身的第一高頻測距模組向終端的第二高頻測距模組發送測距請求無線幀。
步驟309,所述終端將預先獲取的針對所述測距請求無線幀的第一標識資訊與所述針對測距請求無線幀的第二標識資訊進行比較;
終端比較從第二基地台發送的定位命令請求消息中獲取的第一標識資訊,與從第一基地台發送測距請求無線幀中的獲取的第二標識資訊是否相同。
步驟310,若相同,則所述終端透過自身的第二高頻測距模組,向所述第一基地台的第一高頻測距模組發送針對所述測距請求無線幀的測距應答無線幀;
若第一標識和第二標識相同,則證明該次通信是伺服器允許的。終端透過第二高頻測距模組,向相應的第一基地台的第一高頻測距模組返回測距應答無線幀。
若第一標識和第二標識不相同,則終端可以進行丟幀處理,不再返回測距應答無線幀。
步驟311,所述第一基地台透過自身的第一高頻測距模組,採用所述測距應答無線幀,計算所述第一基地台與所述終端的距離資訊,並將所述距離資訊發送到伺服器;
在本發明實施例中,所述步驟311可以包括如下子步驟:
子步驟S11,所述第一基地台透過自身的第一高頻測距模組,確定發送測距請求無線幀的發送時間,以及確定接收到所述測距應答無線幀的接收時間;
子步驟S12,所述第一基地台透過自身的第一高頻測距模組,採用所述發送時間和所述接收時間計算所述第一基地台自身與所述終端的距離資訊。
步驟312,所述伺服器採用各個第一基地台與所述終端的距離資訊,計算所述終端的位置。
具體的,伺服器預先知道各個第一基地台的位置。伺服器根據各個第一基地台與終端的距離資訊,採用定位演算法(例如,三角定位法)計算終端的位置。
在本發明實施例中,各個第一基地台透過自身的第一高頻測距模組向終端的第二高頻測距模組發送測距請求無線幀,終端透過第二高頻測距模組向各個第一基地台的第一高頻測距模組返回測距應答無線幀。各個第一基地台透過自身的第一高頻測距模組,根據距應答無線幀計算第一基地台與終端的距離資訊,伺服器根據各個第一基地台與終端的距離資訊確定終端的位置。與現有的透過低頻LoRa模組進行定位的方法相比,在本發明實施例中透過高頻測距模組進行定位的方法,可以提高定位精度。
與GPS定位技術比,GPS定位無法支持室內定位,而且GPS定位需要一個較長的時間來搜索GPS衛星。而本發明實施例具有即時性高、支援室內定位等特點。
為了使本領域技術人員能夠更好地理解本發明實施例,下面透過一個例子對本發明實施例加以說明:
參照圖4所示為本發明實施例中一種LoRa網路的定位方法的流程圖。LoRa網路包括:伺服器、基地台1、基地台2、基地台3、基地台4,以及終端。
基地台2包括低頻通信模組、高頻測距模組。
定位流程如下:
1、伺服器向基地台2發送定位命令請求消息;定位命令請求消息包括針對測距請求無線幀的第一標識資訊;
2、基地台2透過自身的低頻通信模組,向終端的低頻通信模組發送定位請求無線幀,定位請求無線幀包括針對測距請求無線幀的第一標識資訊;
3、終端分析低頻通信模組收到的定位請求無線幀以獲取第一標識資訊,並向高頻測距模組發出定位命令;
4、終端透過高頻測距模組廣播定位應答無線幀;
5、基地台1、基地台2、基地台3以及基地台4的高頻測距模組,同時接收到定位應答無線幀,距離較遠的基地台無法收到定位應答無線幀;
6、基地台1、基地台2、基地台3以及基地台4向伺服器發送定位命令應答消息;
7、伺服器向基地台1發送測距命令請求消息,測距命令請求消息包括針對測距請求無線幀的第二標識資訊;
8、基地台1透過自身的高頻測距模組,向終端的高頻測距模組發送測距請求無線幀,測距請求無線幀包括第二標識資訊;
9、終端透過自身的高頻測距模組,接收基地台1透過高頻測距模組發送的測距請求無線幀;終端比較第一標識資訊和第二標識資訊是否相同,若相同,則終端透過自身的高頻測距模組向基地台1的高頻測距模組發送測距應答無線幀;
10、基地台1的高頻測距模組接收到測距應答無線幀,並採用測距應答無線幀計算基地台1與終端之間的距離,然後將基地台1與終端之間的距離發送伺服器;
11、伺服器向基地台2發送測距命令請求消息,測距命令請求消息包括針對測距請求無線幀的第二標識資訊;
12、基地台2透過自身的高頻測距模組,向終端的高頻測距模組發送測距請求無線幀,測距請求無線幀包括第二標識資訊;
13、終端透過自身的高頻測距模組,接收基地台2透過高頻測距模組發送的測距請求無線幀;終端比較第一標識資訊和第二標識資訊是否相同,若相同,則終端透過自身的高頻測距模組向基地台2的高頻測距模組發送測距應答無線幀;
14、基地台2的高頻測距模組接收到測距應答無線幀,並採用測距應答無線幀計算基地台2與終端之間的距離,然後將基地台3與終端之間的距離發送伺服器;
15、伺服器向基地台3發送測距命令請求消息,測距命令請求消息包括針對測距請求無線幀的第二標識資訊;
16、基地台3透過自身的高頻測距模組,向終端的高頻測距模組發送測距請求無線幀,測距請求無線幀包括第二標識資訊;
17、終端透過自身的高頻測距模組,接收基地台3透過高頻測距模組發送的測距請求無線幀;終端比較第一標識資訊和第二標識資訊是否相同,若相同,則終端透過自身的高頻測距模組向基地台3的高頻測距模組發送測距應答無線幀;
18、基地台3的高頻測距模組接收到測距應答無線幀,並採用測距應答無線幀計算基地台3與終端之間的距離,然後將基地台3與終端之間的距離發送伺服器;
19、伺服器向基地台4發送測距命令請求消息,測距命令請求消息包括針對測距請求無線幀的第二標識資訊;
20、基地台4透過自身的高頻測距模組,向終端的高頻測距模組發送測距請求無線幀,測距請求無線幀包括第二標識資訊;
21、終端透過自身的高頻測距模組,接收基地台4透過高頻測距模組發送的測距請求無線幀;終端比較第一標識資訊和第二標識資訊是否相同,若相同,則終端透過自身的高頻測距模組向基地台4的高頻測距模組發送測距應答無線幀;
22、基地台4的高頻測距模組接收到測距應答無線幀,並採用測距應答無線幀計算基地台4與終端之間的距離,然後將基地台4與終端之間的距離發送伺服器;
23、伺服器根據各個基地台的位置,以及各個基地台與終端之間的距離,計算終端的位置。
需要說明的是,對於方法實施例,為了簡單描述,故將其都表述為一系列的動作組合,但是本領域技術人員應該知悉,本發明實施例並不受所描述的動作順序的限制,因為依據本發明實施例,某些步驟可以採用其他順序或者同時進行。其次,本領域技術人員也應該知悉,說明書中所描述的實施例均屬於優選實施例,所涉及的動作並不一定是本發明實施例所必須的。
參照圖5,示出了本發明的一種通信網路的定位系統實施例的結構方塊圖,具體可以包括:伺服器501、具有第一高頻測距模組的基地台502,以及具有第二高頻測距模組的終端503:
所述伺服器501,用於從所述基地台502中確定一個或多個第一基地台;
所述第一基地台,用於透過自身的第一高頻測距模組,向終端的第二高頻測距模組發送測距請求無線幀;
所述終端503,用於透過自身的第二高頻測距模組,向所述第一基地台的第一高頻測距模組發送針對所述測距請求無線幀的測距應答無線幀;
所述第一基地台,還用於透過自身的第一高頻測距模組,採用所述測距應答無線幀計算所述第一基地台與所述終端503的距離資訊,並將所述距離資訊發送到伺服器;
所述伺服器501,還用於採用各個第一基地台與所述終端503的距離資訊,計算所述終端503的位置。
在本發明實施例中,所述測距請求無線幀中包括針對測距請求無線幀的第二標識資訊;
所述終端503,還用於將預先獲取的針對所述測距請求無線幀的第一標識資訊與所述針對測距請求無線幀的第二標識資訊進行比較;若相同,則所述透過自身的第二高頻測距模組,向所述第一基地台的第一高頻測距模組發送針對所述測距請求無線幀的測距應答無線幀。
在本發明實施例中,所述伺服器501,還用於從所述基地台502中確定第二基地台,並向第二基地台發送定位命令請求消息;所述定位命令請求消息包括針對測距請求無線幀的第一標識資訊;
所述第二基地台,用於根據定位命令請求消息,向所述終端503發送定位請求無線幀,所述定位請求無線幀包括所述針對測距請求無線幀的第一標識資訊。
在本發明實施例中,所述終端503,還用於在接收到所述定位請求無線幀後,廣播定位應答無線幀;
接收到所述定位應答無線幀的一個或多個基地台,用於根據所述定位應答無線幀向所述伺服器501發送定位命令應答消息;
所述伺服器501,還用於器將發送所述定位命令應答消息的基地台確定為第一基地台。
在本發明實施例中,所述伺服器501,還用於向所述第一基地台,發送測距命令請求消息;所述測距命令請求消息包括針對測距請求無線幀的第二標識資訊;
所述第一基地台,還用於採用所述針對測距請求無線幀的第二標識資訊產生測距請求無線幀。
在本發明實施例的一種示例中,所述終端503,還用於在接收到所述定位請求無線幀後,透過自身的第二高頻測距模組廣播定位應答無線幀;
所述基地台,還用於透過自身的第一高頻測距模組,接收所述定位應答無線幀。
在本發明實施例中,所述基地台502還包括第一低頻通信模組,所述終端503還包括第二低頻通信模組;
所述第二基地台,還用於透過自身的第一低頻通信模組,向所述終端503的第二低頻通信模組發送定位請求無線幀。
在本發明實施例的另一種示例中,所述終端503,還用於在接收到所述定位請求無線幀後,透過自身的第二低頻通信模組廣播定位應答無線幀;
所述基地台,還用於透過自身的第一低頻通信模組,接收所述定位應答無線幀。
在本發明實施例中,所述第一基地台,還用於透過自身的第一高頻測距模組,確定發送測距請求無線幀的發送時間,以及確定接收到所述測距應答無線幀的接收時間;透過自身的第一高頻測距模組,採用所述發送時間和所述接收時間計算所述第一基地台自身與所述終端503的距離資訊。
對於裝置實施例而言,由於其與方法實施例基本相似,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。
本發明實施例還提供了一種裝置,包括:
一個或多個處理器;和
其上儲存有指令的一個或多個機器可讀媒體,當由所述一個或多個處理器執行時,使得所述裝置執行本發明實施例所述的方法。
本發明實施例還提供了一個或多個機器可讀媒體,其上儲存有指令,當由一個或多個處理器執行時,使得裝置執行本發明實施例所述的方法。
本說明書中的各個實施例均採用遞進的方式描述,每個實施例重點說明的都是與其他實施例的不同之處,各個實施例之間相同相似的部分互相參見即可。
本領域內的技術人員應明白,本發明實施例的實施例可提供為方法、裝置、或電腦程式產品。因此,本發明實施例可採用完全硬體實施例、完全軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本發明實施例可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存媒體(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。
本發明實施例是參照根據本發明實施例的方法、終端設備(系統)、和電腦程式產品的流程圖和/或方方塊圖來描述的。應理解可由電腦程式指令實現流程圖和/或方方塊圖中的每一流程和/或方塊、以及流程圖和/或方方塊圖中的流程和/或方塊的結合。可提供這些電腦程式指令到通用電腦、專用電腦、嵌入式處理機或其他可程式設計資料處理終端設備的處理器以產生一個機器,使得透過電腦或其他可程式設計資料處理終端設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方方塊圖一個方塊或多個方塊中指定的功能的裝置。
這些電腦程式指令也可儲存在能引導電腦或其他可程式設計資料處理終端設備以特定方式工作的電腦可讀記憶體中,使得儲存在該電腦可讀記憶體中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方方塊圖一個方塊或多個方塊中指定的功能。
這些電腦程式指令也可裝載到電腦或其他可程式設計資料處理終端設備上,使得在電腦或其他可程式設計終端設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可程式設計終端設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方方塊圖一個方塊或多個方塊中指定的功能的步驟。
儘管已描述了本發明實施例的優選實施例,但本領域內的技術人員一旦得知了基本創造性概念,則可對這些實施例做出另外的變更和修改。所以,申請專利範圍意欲解釋為包括優選實施例以及落入本發明實施例範圍的所有變更和修改。
最後,還需要說明的是,在本文中,諸如第一和第二等之類的關係術語僅僅用來將一個實體或者操作與另一個實體或操作區分開來,而不一定要求或者暗示這些實體或操作之間存在任何這種實際的關係或者順序。而且,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、物品或者終端設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、物品或者終端設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、物品或者終端設備中還存在另外的相同要素。
以上對本發明所提供的一種通信網路的定位方法和一種通信網路的定位系統,進行了詳細介紹,本文中應用了具體個例對本發明的原理及實施方式進行了闡述,以上實施例的說明只是用於幫助理解本發明的方法及其核心思想;同時,對於本領域的一般技術人員,依據本發明的思想,在具體實施方式及應用範圍上均會有改變之處,綜上所述,本說明書內容不應理解為對本發明的限制。 In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the drawings and specific embodiments. The LoRa network is composed of terminal nodes, base station nodes and servers. The terminal has the ability to connect to the LoRa network and access the LoRa network. According to the different application scenarios deployed by the LoRa network, the terminal can include different electronic devices. For example, when the LoRa network is used in city management, the terminal can include a smart meter; In a digital home, the terminal may include various smart home appliances and the like. The base station, also known as a gateway or concentrator in the LoRa network, has the function of wireless connection aggregation, including the terminal providing the entrance to the LoRa network, forwarding the data from the server or terminal, and realizing the connection between the terminal and the terminal. The data interaction between the servers. Of course, the base station can also perform data interaction with other base stations within the signal coverage of the base station by transmitting wireless frames. The server may include a server or a cluster of servers, and is used for performing business processing according to the data obtained from the base station or the terminal, and controlling the working mode and working status of the base station or the terminal. An important reason for the low positioning accuracy of the current LoRa network is the use of low-frequency and low-bandwidth wireless frequency bands. One of the core ideas of the embodiment of the present invention is that this LoRa positioning solution no longer uses the existing low-frequency narrow-band LoRa module (working frequency includes but not limited to the 470M-510MHz frequency band) for distance measurement, but uses high-frequency LoRa The module (working frequency includes but not limited to 2.4GHz frequency band) realizes distance measurement. Although the low-frequency narrow-band LoRa module has the characteristics of low power consumption, long transmission distance, and high sensitivity, it has low ranging accuracy. The high-frequency LoRa module has higher power consumption, shorter transmission distance, higher sensitivity, and higher ranging accuracy. In addition, the maximum transmission power of the 470M-510MHz frequency band is 17dbm, while the maximum transmission power of the 2.4G frequency band can reach more than 20dbm, and the transmission power is higher. Referring to FIG. 1 , it shows a flow chart of the steps of Embodiment 1 of a positioning method for a communication network of the present invention. The communication network includes: a server, a base station with a first high-frequency ranging module, and a base station with a For the terminal of the second high-frequency ranging module, the method may specifically include the following steps: Step 101, the server determines one or more first base stations; In the embodiment of the present invention, the communication network may be LoRa network. The server selects one or more first base stations from the base stations of the whole network. Specifically, the first base station is a base station capable of communicating with the terminal, and the terminal is within the coverage of each first base station. In some specific areas (for example, a campus), the positions of base stations and terminals are fixed, and the server can directly determine which base stations the terminal is within the coverage of. In addition, the LoRa network itself has some mechanisms and protocols that enable the server to know which base stations the terminal is within the coverage of. Step 102, the first base station sends a ranging request wireless frame to the second high-frequency ranging module of the terminal through its first high-frequency ranging module; the server can notify each first base station to send a measuring from requesting radio frames. Each first base station sequentially sends a ranging request wireless frame to the second high-frequency ranging module of the terminal through its first high-frequency ranging module according to a certain timing. The working frequency of the high-frequency ranging module includes but is not limited to the 2.4GHz frequency band. Step 103, the terminal sends a ranging response wireless frame for the ranging request wireless frame to the first high frequency ranging module of the first base station through its own second high frequency ranging module; After receiving the ranging request wireless frame, the terminal transmits the ranging response wireless frame through its own second high-frequency ranging module to the first high-frequency ranging modules of each first base station in turn. Step 104, the first base station calculates the distance information between the first base station and the terminal by using the ranging response wireless frame through its own first high-frequency ranging module, and stores the distance information Sending to the server; After the first base station receives the ranging response wireless frame, it calculates the distance between the first base station and the terminal through its own first high-frequency ranging module. The high-frequency ranging module has a built-in algorithm for calculating distance information. Specifically, according to the sending time t1 of the wireless frame of the ranging request and the receiving time t2 of receiving the wireless frame of the ranging response, the high-frequency ranging module is based on the duration of the wireless frame of the ranging request and the wireless frame of the ranging response , The fixed processing time of the chip, from which the time of flight of the radio wave between two points can be calculated to calculate the distance. Each first base station sends the calculated distance information to the server. Step 105, the server calculates the position of the terminal by using distance information between each first base station and the terminal. Specifically, the server knows the location of each first base station in advance. According to the distance information between each first base station and the terminal, the server uses a positioning algorithm (for example, triangulation method) to calculate the position of the terminal. In the embodiment of the present invention, each first base station sends a wireless frame of a ranging request to the second high-frequency ranging module of the terminal through its own first high-frequency ranging module, and the terminal transmits a wireless frame of a ranging request through the second high-frequency ranging module. The group returns the radio frame of ranging response to the first high-frequency ranging module of each first base station. Each first base station calculates the distance information between the first base station and the terminal according to the distance response wireless frame through its own first high-frequency ranging module, and the server determines the position of the terminal according to the distance information between each first base station and the terminal . Compared with the existing positioning method through the low-frequency LoRa module, the positioning method through the high-frequency ranging module in the embodiment of the present invention can improve the positioning accuracy. Compared with GPS positioning technology, GPS positioning cannot support indoor positioning, and GPS positioning requires a longer time to search for GPS satellites. However, the embodiments of the present invention have the characteristics of high immediacy and support for indoor positioning. Referring to FIG. 2 , it shows a flow chart of the steps of Embodiment 2 of a positioning method for a communication network of the present invention, the communication network includes: a server, a base station with a first high-frequency ranging module, and a base station with a For the terminal of the second high-frequency ranging module, the method may specifically include the following steps: Step 201, the server determines the second base station, and sends a positioning command request message to the second base station; the positioning command request The message includes the first identification information for the wireless frame of the ranging request; the server selects a base station that can communicate with the terminal as the second base station from the base stations of the entire network, for example, selects the base station with the best communication signal with the terminal as a second base station. The server sends a positioning command request message to the second base station to start a positioning process. Step 202, the second base station sends a positioning request radio frame to the terminal according to the positioning command request message, and the positioning request radio frame includes the first identification information for the ranging request radio frame; the second base station After receiving the positioning command request message, extract the first identification information for the ranging request radio frame in the positioning command request message; after that, the second base station generates a positioning request radio frame, and adds the first identification information to the positioning request radio frame. frame; finally, the second base station sends a positioning request radio frame to the terminal to inform the terminal that positioning is about to be performed. After the terminal receives the radio frame of the positioning request, the terminal can analyze the radio frame of the positioning request to obtain the first identification information. Further, the transmit power, frequency parameter, bandwidth parameter, modulation parameter, etc. of the ranging request radio frame in the subsequent process may also be obtained by analyzing the positioning request radio frame. In the embodiment of the present invention, the base station may further include a first low-frequency communication module, and the terminal may further include a second low-frequency communication module; the step 202 may include: the second base station transmits its own The first low-frequency communication module sends a positioning request wireless frame to the second low-frequency communication module of the terminal. In the embodiment of the present invention, the working frequencies of the first low frequency communication module and the second low frequency communication module include but are not limited to 470M-510MHz frequency band. The second base station may not have the first high-frequency ranging module, and the second base station may only send a positioning request wireless frame to the second low-frequency communication module of the terminal through its own first low-frequency communication module. Step 203, the server determines the first base station, and sends a ranging command request message to the first base station; the ranging command request message includes the second identification information for the ranging request radio frame; the server Select one or more first base stations from the base stations of the whole network. Specifically, the first base station is a base station capable of communicating with the terminal, and the terminal is within the coverage of each first base station. The server may sequentially send ranging command request messages to each first base station according to a certain timing. Step 204, the first base station generates a ranging request radio frame by using the second identification information for the ranging request radio frame. After the first base station receives the ranging command request message, it extracts the second identification information for the ranging request radio frame in the ranging command request message; after that, the first base station generates the ranging request radio frame, and sends the second Identification information is added to the ranging request radio frame. Generally, the second identification information received by each first base station is the same. Step 205, the first base station sends a ranging request wireless frame to the second high-frequency ranging module of the terminal through its first high-frequency ranging module; each first base station can follow a certain timing, Sequentially send a ranging request wireless frame to the second high-frequency ranging module of the terminal through its first high-frequency ranging module. Step 206, the terminal compares the pre-acquired first identification information for the ranging request radio frame with the second identification information for the ranging request radio frame; the terminal compares the positioning information sent from the second base station Whether the first identification information acquired in the command request message is the same as the second identification information acquired in the ranging request radio frame sent from the first base station. Step 207, if they are the same, the terminal sends a ranging request wireless frame for the ranging request to the first high-frequency ranging module of the first base station through its second high-frequency ranging module. Respond to the wireless frame; the function of the first identification and the second identification is to uniquely identify the two parties communicating through the high-frequency ranging module. If the first identifier is the same as the second identifier, it proves that the communication is allowed by the server. The terminal returns a ranging response wireless frame to the corresponding first high-frequency ranging module of the first base station through the second high-frequency ranging module. If the first identifier and the second identifier are not the same, the terminal may perform frame loss processing and not return a ranging response radio frame. In the embodiment of the present invention, it is judged whether the base station and the terminal are allowed to measure distance through the identification, which can ensure that the base stations that allow distance measurement are all base stations that are predetermined by the server. Step 208, the first base station calculates the distance information between the first base station and the terminal through its own first high-frequency ranging module, using the ranging response wireless frame, and calculates the distance information between the first base station and the terminal The information is sent to the server; In the embodiment of the present invention, the step 208 may include the following sub-steps: Sub-step S11, the first base station determines to send a ranging request through its own first high-frequency ranging module The sending time of the wireless frame, and determining the receiving time of receiving the wireless frame of the ranging response; Sub-step S12, the first base station uses the sending time and the received radio frame through its first high-frequency ranging module Calculate distance information between the first base station itself and the terminal based on the receiving time. The high-frequency ranging module has a built-in algorithm for calculating distance information. Specifically, according to the sending time t1 of the wireless frame of the ranging request and the receiving time t2 of receiving the wireless frame of the ranging response, the high-frequency ranging module is based on the duration of the wireless frame of the ranging request and the wireless frame of the ranging response , The fixed processing time of the chip, from which the time of flight of the radio wave between two points can be calculated to calculate the distance. Step 209, the server calculates the position of the terminal by using distance information between each first base station and the terminal. Specifically, the server knows the location of each first base station in advance. According to the distance information between each first base station and the terminal, the server uses a positioning algorithm (for example, triangulation method) to calculate the position of the terminal. In the embodiment of the present invention, each first base station sends a wireless frame of a ranging request to the second high-frequency ranging module of the terminal through its own first high-frequency ranging module, and the terminal transmits a wireless frame of a ranging request through the second high-frequency ranging module. The group returns the radio frame of ranging response to the first high-frequency ranging module of each first base station. Each first base station calculates the distance information between the first base station and the terminal according to the distance response wireless frame through its own first high-frequency ranging module, and the server determines the position of the terminal according to the distance information between each first base station and the terminal . Compared with the existing positioning method through the low-frequency LoRa module, the positioning method through the high-frequency ranging module in the embodiment of the present invention can improve the positioning accuracy. Compared with GPS positioning technology, GPS positioning cannot support indoor positioning, and GPS positioning requires a longer time to search for GPS satellites. However, the embodiments of the present invention have the characteristics of high immediacy and support for indoor positioning. Referring to FIG. 3 , it shows a flow chart of the steps of Embodiment 3 of a positioning method for a communication network of the present invention. The communication network includes: a server, a base station with a first high-frequency ranging module, and a base station with a For the terminal of the second high-frequency ranging module, the method may specifically include the following steps: Step 301, the server determines the second base station, and sends a positioning command request message to the second base station; the positioning command request The message includes the first identification information for the wireless frame of the ranging request; the server selects a base station capable of communicating with the terminal from the base stations of the entire network as the second base station, for example, selects the base station with the best communication signal with the terminal as the second base station. second base station. The server sends a positioning command request message to the second base station to start a positioning process. Step 302, the second base station sends a positioning request radio frame to the terminal according to the positioning command request message, and the positioning request radio frame includes the first identification information for the ranging request radio frame; In an example, the base station may further include a first low-frequency communication module, and the terminal may further include a second low-frequency communication module; the step 302 may include: the second base station communicates through its own first low-frequency communication module; A module that sends a positioning request wireless frame to the second low-frequency communication module of the terminal. In the embodiment of the present invention, the working frequencies of the first low frequency communication module and the second low frequency communication module include but are not limited to 470M-510MHz frequency band. Step 303, the terminal broadcasts a positioning response wireless frame after receiving the positioning request wireless frame; in some cases, the server cannot know which base stations in the entire network the terminal is within the coverage of. At this time, the terminal may broadcast the positioning response radio frame. In an example of an embodiment of the present invention, the step 303 may be: after the terminal receives the positioning request wireless frame, it broadcasts a positioning response wireless frame through its second high-frequency ranging module; The method may further include: one or more base stations receive the positioning response radio frame through their own first high-frequency ranging module. In this example, the terminal broadcasts a positioning response radio frame through its second high-frequency ranging module. One or more base stations can receive the positioning response wireless frame through their own first high-frequency ranging module. In another example of the embodiment of the present invention, the step 303 may be: after the terminal receives the positioning request wireless frame, it broadcasts a positioning response wireless frame through its second low-frequency communication module; The method may further include: one or more base stations receive the positioning response wireless frame through their own first low-frequency communication module. In this example, the terminal broadcasts a positioning response wireless frame through its second low frequency communication module. One or more base stations can receive the positioning response wireless frame through their own first low frequency communication module. Step 304, one or more base stations that have received the wireless frame of the positioning response, send a positioning command response message to the server according to the wireless frame of the positioning response; the base station that has received the wireless frame of the positioning response generates a positioning command A response message, and send a positioning command response message to the server. If the base station can receive the positioning response radio frame, it means that the terminal is within the coverage of the base station. Step 305, the server determines the base station that sent the positioning command response message as the first base station; Determine the first base station. Step 306, the server sends a ranging command request message to the first base station; the ranging command request message includes the second identification information for the ranging request wireless frame; the server can follow a certain sequence Send a ranging command request message to each first base station. Step 307, the first base station generates a ranging request radio frame by using the second identification information for the ranging request radio frame. After the first base station receives the ranging command request message, it extracts the second identification information for the ranging request radio frame in the ranging command request message; after that, the first base station generates the ranging request radio frame, and sends the second Identification information is added to the ranging request radio frame. Step 308, the first base station sends a ranging request wireless frame to the second high-frequency ranging module of the terminal through its first high-frequency ranging module; each first base station can follow a certain sequence, Sequentially send a ranging request wireless frame to the second high-frequency ranging module of the terminal through its first high-frequency ranging module. Step 309, the terminal compares the pre-acquired first identification information for the ranging request radio frame with the second identification information for the ranging request radio frame; the terminal compares the positioning information sent from the second base station Whether the first identification information acquired in the command request message is the same as the second identification information acquired in the ranging request radio frame sent from the first base station. Step 310, if they are the same, the terminal sends the ranging request wireless frame to the first high-frequency ranging module of the first base station through its own second high-frequency ranging module. Respond to the wireless frame; if the first identification is the same as the second identification, it proves that the communication is allowed by the server. The terminal returns a ranging response wireless frame to the corresponding first high-frequency ranging module of the first base station through the second high-frequency ranging module. If the first identifier and the second identifier are not the same, the terminal may perform frame loss processing and not return a ranging response radio frame. Step 311, the first base station calculates the distance information between the first base station and the terminal through its own first high-frequency ranging module, using the ranging response wireless frame, and calculates the distance information between the first base station and the terminal The information is sent to the server; In the embodiment of the present invention, the step 311 may include the following sub-steps: Sub-step S11, the first base station determines to send a ranging request through its own first high-frequency ranging module The sending time of the wireless frame, and determining the receiving time of receiving the wireless frame of the ranging response; Sub-step S12, the first base station uses the sending time and the received radio frame through its first high-frequency ranging module Calculate distance information between the first base station itself and the terminal based on the receiving time. Step 312, the server calculates the position of the terminal by using distance information between each first base station and the terminal. Specifically, the server knows the location of each first base station in advance. According to the distance information between each first base station and the terminal, the server uses a positioning algorithm (for example, triangulation method) to calculate the position of the terminal. In the embodiment of the present invention, each first base station sends a wireless frame of a ranging request to the second high-frequency ranging module of the terminal through its own first high-frequency ranging module, and the terminal transmits a wireless frame of a ranging request through the second high-frequency ranging module. The group returns the radio frame of ranging response to the first high-frequency ranging module of each first base station. Each first base station calculates the distance information between the first base station and the terminal according to the distance response wireless frame through its own first high-frequency ranging module, and the server determines the position of the terminal according to the distance information between each first base station and the terminal . Compared with the existing positioning method through the low-frequency LoRa module, the positioning method through the high-frequency ranging module in the embodiment of the present invention can improve the positioning accuracy. Compared with GPS positioning technology, GPS positioning cannot support indoor positioning, and GPS positioning requires a longer time to search for GPS satellites. However, the embodiments of the present invention have the characteristics of high immediacy and support for indoor positioning. In order to enable those skilled in the art to better understand the embodiment of the present invention, the following describes the embodiment of the present invention through an example: Referring to FIG. 4 , it is a flow chart of a LoRa network positioning method in the embodiment of the present invention. The LoRa network includes: server, base station 1, base station 2, base station 3, base station 4, and terminals. The base station 2 includes a low-frequency communication module and a high-frequency ranging module. The positioning process is as follows: 1. The server sends a positioning command request message to the base station 2; the positioning command request message includes the first identification information for the wireless frame of the ranging request; 2. The base station 2 transmits to the terminal through its own low frequency communication module. The low-frequency communication module sends a positioning request wireless frame, and the positioning request wireless frame includes first identification information for the ranging request wireless frame; 3. The terminal analyzes the positioning request wireless frame received by the low-frequency communication module to obtain the first identification information, And send a positioning command to the high-frequency ranging module; 4. The terminal broadcasts a positioning response wireless frame through the high-frequency ranging module; 5. The high-frequency ranging of base station 1, base station 2, base station 3, and base station 4 The module receives the positioning response wireless frame at the same time, and the remote base station cannot receive the positioning response wireless frame; 6. Base station 1, base station 2, base station 3 and base station 4 send a positioning command response message to the server ; 7. The server sends a ranging command request message to the base station 1. The ranging command request message includes the second identification information for the wireless frame of the ranging request; 8. The base station 1 transmits to the base station 1 through its own high frequency ranging module The high-frequency ranging module of the terminal sends a wireless frame of a ranging request, and the wireless frame of the ranging request includes the second identification information; The wireless frame of the ranging request sent; the terminal compares whether the first identification information and the second identification information are the same, and if they are the same, the terminal sends the ranging to the high-frequency ranging module of the base station 1 through its own high-frequency ranging module Respond to the wireless frame; 10. The high-frequency ranging module of the base station 1 receives the ranging response wireless frame, and uses the ranging response wireless frame to calculate the distance between the base station 1 and the terminal, and then calculates the distance between the base station 1 and the terminal. 11. The server sends a ranging command request message to the base station 2, and the ranging command request message includes the second identification information for the ranging request wireless frame; 12. The base station 2 uses its own high-frequency The ranging module sends a ranging request wireless frame to the high-frequency ranging module of the terminal, and the ranging request wireless frame includes the second identification information; 13. The terminal receives the base station 2 through its own high-frequency ranging module. The wireless frame of the ranging request sent by the high-frequency ranging module; the terminal compares whether the first identification information and the second identification information are the same. The ranging module sends a ranging response wireless frame; 14. The high-frequency ranging module of the base station 2 receives the ranging response wireless frame, and uses the ranging response wireless frame to calculate the distance between the base station 2 and the terminal, and then The distance between the base station 3 and the terminal is sent to the server; 15. The server sends a ranging command request message to the base station 3, and the ranging command request message includes the second identification information for the ranging request wireless frame; 16. The base station 3. Send a ranging request wireless frame to the terminal's high-frequency ranging module through its own high-frequency ranging module, and the ranging request wireless frame includes the second identification information; 17. The terminal uses its own high-frequency ranging module , receiving the ranging sent by the base station 3 through the high-frequency ranging module Requesting a wireless frame; the terminal compares whether the first identification information and the second identification information are the same, and if they are the same, the terminal sends a ranging response wireless frame to the high-frequency ranging module of the base station 3 through its own high-frequency ranging module; 18. The high-frequency ranging module of the base station 3 receives the ranging response wireless frame, and uses the ranging response wireless frame to calculate the distance between the base station 3 and the terminal, and then sends the distance between the base station 3 and the terminal The server; 19. The server sends a ranging command request message to the base station 4, and the ranging command request message includes the second identification information for the wireless frame of the ranging request; 20. The base station 4 uses its own high-frequency ranging module , to send a ranging request wireless frame to the high-frequency ranging module of the terminal, and the ranging request wireless frame includes the second identification information; 21. The terminal uses its own high-frequency ranging module to receive the base station 4 through the high-frequency ranging The wireless frame of the ranging request sent by the module; the terminal compares whether the first identification information and the second identification information are the same, and if they are the same, the terminal sends it to the high-frequency ranging module of the base station 4 through its own high-frequency ranging module The ranging response wireless frame; 22. The high-frequency ranging module of the base station 4 receives the ranging response wireless frame, and uses the ranging response wireless frame to calculate the distance between the base station 4 and the terminal, and then connects the base station 4 to the terminal. The distance between the terminals is sent to the server; 23. The server calculates the position of the terminal according to the positions of each base station and the distance between each base station and the terminal. It should be noted that, for the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action sequence, because According to the embodiment of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention. Referring to Fig. 5, it shows a structural block diagram of a communication network positioning system embodiment of the present invention, which may specifically include: a server 501, a base station 502 with a first high-frequency ranging module, and a second The terminal 503 of the high-frequency ranging module: the server 501 is used to determine one or more first base stations from the base stations 502; The high-frequency ranging module sends a ranging request wireless frame to the second high-frequency ranging module of the terminal; the terminal 503 is used to send a wireless frame to the first base station through its second high-frequency ranging module. The first high-frequency ranging module sends a ranging response wireless frame for the ranging request wireless frame; the first base station is also used to use the first high-frequency ranging module of itself, using the The distance measurement response wireless frame calculates the distance information between the first base station and the terminal 503, and sends the distance information to the server; the server 501 is also used to adopt each first base station and the The distance information of the terminal 503 is used to calculate the position of the terminal 503 . In the embodiment of the present invention, the wireless frame of the ranging request includes the second identification information for the wireless frame of the ranging request; A identification information is compared with the second identification information for the wireless frame of the ranging request; The ranging module sends a ranging response radio frame for the ranging request radio frame. In the embodiment of the present invention, the server 501 is further configured to determine the second base station from the base station 502, and send a positioning command request message to the second base station; the positioning command request message includes The first identification information of the distance request radio frame; the second base station is configured to send the positioning request radio frame to the terminal 503 according to the positioning command request message, and the positioning request radio frame includes the radio address for the ranging request The first identification information of the frame. In the embodiment of the present invention, the terminal 503 is further configured to broadcast a positioning response wireless frame after receiving the positioning request wireless frame; one or more base stations that have received the positioning response wireless frame are used to Sending a positioning command response message to the server 501 according to the positioning response radio frame; the server 501 is further configured to determine the base station sending the positioning command response message as the first base station. In the embodiment of the present invention, the server 501 is further configured to send a ranging command request message to the first base station; the ranging command request message includes the second identification information for the ranging request radio frame ; The first base station is further configured to use the second identification information for the ranging request radio frame to generate a ranging request radio frame. In an example of the embodiment of the present invention, the terminal 503 is further configured to broadcast a positioning response wireless frame through its second high-frequency ranging module after receiving the positioning request wireless frame; the base station , and is also used for receiving the positioning response wireless frame through its own first high-frequency ranging module. In the embodiment of the present invention, the base station 502 also includes a first low-frequency communication module, and the terminal 503 also includes a second low-frequency communication module; the second base station is also used to pass through its own first low-frequency The communication module sends a positioning request wireless frame to the second low-frequency communication module of the terminal 503 . In another example of the embodiment of the present invention, the terminal 503 is further configured to broadcast a positioning response wireless frame through its second low-frequency communication module after receiving the positioning request wireless frame; the base station, It is also used to receive the positioning response wireless frame through its own first low-frequency communication module. In the embodiment of the present invention, the first base station is also used to determine the sending time of the wireless frame of the ranging request through its own first high-frequency ranging module, and determine that the wireless frame of the ranging response is received. The receiving time of the frame: calculate the distance information between the first base station itself and the terminal 503 by using the sending time and the receiving time through its own first high-frequency ranging module. As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment. An embodiment of the present invention also provides an apparatus, including: one or more processors; and one or more machine-readable media having instructions stored thereon, so that when executed by the one or more processors, the The device executes the method described in the embodiment of the present invention. The embodiment of the present invention also provides one or more machine-readable media, on which instructions are stored, and when executed by one or more processors, the device executes the method described in the embodiment of the present invention. Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, devices, or computer program products. Accordingly, embodiments of the invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may employ a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) having computer-usable program code embodied therein form. Embodiments of the present invention are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and a combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to general-purpose computers, special-purpose computers, embedded processors, or processors of other programmable data processing terminal equipment to produce a machine that can be executed by a processor of a computer or other programmable data processing terminal equipment The instructions produce means for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal to operate in a specific manner, so that the instructions stored in the computer-readable memory generate product, the instruction device realizes the function specified in one or more steps of the flow chart and/or one or more blocks of the block diagram. These computer program instructions can also be loaded into a computer or other programmable data processing terminal equipment, so that a series of operation steps are executed on the computer or other programmable data processing terminal equipment to produce computer-implemented processing, so that the computer or other programmable data processing terminal The instructions executed on the terminal device are designed to provide steps for realizing the functions specified in one or more procedures of the flow chart and/or one or more blocks of the block diagram. Having described preferred embodiments of embodiments of the present invention, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, the scope of claims is intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention. Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or terminal equipment comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements identified, or also include elements inherent in such a process, method, article, or end-equipment. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising said element. A positioning method for a communication network and a positioning system for a communication network provided by the present invention have been introduced in detail above. In this paper, specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments It is only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, The contents of this description should not be construed as limiting the present invention.