TWI787642B - distance sensing method - Google Patents
distance sensing method Download PDFInfo
- Publication number
- TWI787642B TWI787642B TW109127365A TW109127365A TWI787642B TW I787642 B TWI787642 B TW I787642B TW 109127365 A TW109127365 A TW 109127365A TW 109127365 A TW109127365 A TW 109127365A TW I787642 B TWI787642 B TW I787642B
- Authority
- TW
- Taiwan
- Prior art keywords
- electronic device
- distance
- processing unit
- unit
- short
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 14
- 238000012545 processing Methods 0.000 claims abstract description 111
- 238000004891 communication Methods 0.000 claims abstract description 58
- 238000013459 approach Methods 0.000 abstract description 2
- 230000000875 corresponding effect Effects 0.000 description 20
- 230000002596 correlated effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 241000251468 Actinopterygii Species 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 201000010099 disease Diseases 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 208000015181 infectious disease Diseases 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000011664 nicotinic acid Substances 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
Images
Landscapes
- Crystals, And After-Treatments Of Crystals (AREA)
- Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)
- Radar Systems Or Details Thereof (AREA)
- Telephone Function (AREA)
Abstract
一種距離感測方法,藉由一距離感測系統實施,該距離感測系統包含第一電子裝置及第二電子裝置。第二電子裝置的第二處理單元經由第二短距離無線通訊單元發出一無線訊號。當第一電子裝置的第一處理單元經由第一短距離無線通訊單元接收到來自該第二電子裝置的該無線訊號,該處理單元根據該無線訊號的訊號強度產生一指示該第一電子裝置與該第二電子裝置之間的估測距離的一距離估測值。當該第一電子裝置的該第一處理單元判斷該距離估測值小於一預設距離,該第一處理單元經由該第一輸出單元輸出一提示,以在第二電子裝置靠近第一電子裝置時,發出該提示給第一電子裝置的使用者。 A distance sensing method is implemented by a distance sensing system, and the distance sensing system includes a first electronic device and a second electronic device. The second processing unit of the second electronic device sends a wireless signal through the second short-distance wireless communication unit. When the first processing unit of the first electronic device receives the wireless signal from the second electronic device through the first short-distance wireless communication unit, the processing unit generates a message indicating the first electronic device and the first electronic device according to the signal strength of the wireless signal. A distance estimate of the estimated distance between the second electronic devices. When the first processing unit of the first electronic device judges that the estimated distance is less than a preset distance, the first processing unit outputs a prompt via the first output unit, so that the second electronic device approaches the first electronic device , the prompt is sent to the user of the first electronic device.
Description
本發明是有關於一種感測方法,特別是指一種藉由距離感測系統實施的距離感測方法。 The present invention relates to a sensing method, in particular to a distance sensing method implemented by a distance sensing system.
在疫情爆發時,人們不論是在室內或室外都應該保持適當的社交距離,以降低疾病在人與人之間的相互傳染。 During an outbreak, people should maintain an appropriate social distance whether indoors or outdoors to reduce the mutual transmission of diseases between people.
然而,目前皆只能依靠人們自行留意與身旁的人之間的距離,因此,有可能出現因一時疏忽而與他人靠得太近的情況,而面臨較大的染疫的風險。 However, at present, people can only rely on people to pay attention to the distance between themselves and the people around them. Therefore, it is possible to get too close to others due to momentary negligence, and face a greater risk of infection.
因此,本發明的目的,即在提供一種能解決上述問題的一距離感測系統。 Therefore, the purpose of the present invention is to provide a distance sensing system that can solve the above problems.
於是,本發明所提供的距離感測系統包含一第一電子裝置及一第二電子裝置。 Therefore, the distance sensing system provided by the present invention includes a first electronic device and a second electronic device.
該第一電子裝置包含一第一短距離無線通訊單元、一第一輸出單元,及一電連接於該第一短距離無線通訊單元與該第一輸出單元的一第一處理單元。 The first electronic device includes a first short-distance wireless communication unit, a first output unit, and a first processing unit electrically connected to the first short-distance wireless communication unit and the first output unit.
該第二電子裝置包含一第二短距離無線通訊單元,及一 電連接於該第二短距離無線通訊單元的一第二處理單元,該第二處理單元經由該第二短距離無線通訊單元發出一無線訊號;當該第一電子裝置的該第一處理單元經由該第一短距離無線通訊單元接收到來自該第二電子裝置的該無線訊號,該第一處理單元根據該無線訊號的訊號強度產生一指示該第一電子裝置與該第二電子裝置之間的估測距離的一距離估測值;當該第一電子裝置的該第一處理單元判斷該距離估測值小於一預設距離,該第一處理單元經由該第一輸出單元輸出一提示。 The second electronic device includes a second short-distance wireless communication unit, and a A second processing unit electrically connected to the second short-distance wireless communication unit, the second processing unit sends a wireless signal through the second short-distance wireless communication unit; when the first processing unit of the first electronic device passes through The first short-distance wireless communication unit receives the wireless signal from the second electronic device, and the first processing unit generates a message indicating the communication between the first electronic device and the second electronic device according to the signal strength of the wireless signal. An estimated distance value of the estimated distance; when the first processing unit of the first electronic device determines that the estimated distance value is less than a preset distance, the first processing unit outputs a prompt via the first output unit.
在一些實施態樣中,該第一電子裝置還包含一電連接於該第一處理單元的第一儲存單元,該第一儲存單元儲存有一對照表,該對照表包含多個距離參數值及多個分別對應於該等距離參數值的裝置數量範圍;該第一電子裝置的該第一處理單元在判斷該距離估測值是否小於該預設距離之前,該第一處理單元根據接收到的該無線訊號的數量產生一當前裝置數量,並根據該當前裝置數量及該對照表將該預設距離的值設成與該等距離參數值其中一者相同,其中,該距離參數值對應的該裝置數量涵蓋該當前裝置數量。 In some implementations, the first electronic device further includes a first storage unit electrically connected to the first processing unit, the first storage unit stores a lookup table, and the lookup table includes a plurality of distance parameter values and a plurality of a range of device numbers respectively corresponding to the equidistance parameter values; before the first processing unit of the first electronic device determines whether the estimated distance value is less than the preset distance, the first processing unit according to the received The number of wireless signals generates a current device number, and the value of the preset distance is set to be the same as one of the equidistance parameter values according to the current device number and the comparison table, wherein the distance parameter value corresponds to the device Quantity covers the current device quantity.
在一些實施態樣中,該對照表的該等距離參數值與該等裝置數量範圍呈正相關。 In some implementation aspects, the equidistance parameter value of the comparison table is positively correlated with the number range of the devices.
在一些實施態樣中,所述距離感測系統包含多個第二電子裝置,當該第一電子裝置的該第一處理單元經由該第一短距離無 線通訊單元接收到來自該等第二電子裝置其中多者的該無線訊號,該第一處理單元僅根據該等無線訊號其中訊號強度最強者產生該距離估測值。 In some implementation aspects, the distance sensing system includes a plurality of second electronic devices, when the first processing unit of the first electronic device passes through the first short-distance wireless The wireless communication unit receives the wireless signals from more than one of the second electronic devices, and the first processing unit generates the distance estimation value only according to the wireless signal with the strongest signal strength.
在一些實施態樣中,所述距離感測系統包含M個第二電子裝置,M為大於1的整數,當該第一電子裝置的該第一處理單元經由該第一短距離無線通訊單元接收到來自該等第二電子裝置其中多者的該無線訊號,該第一處理單元僅根據該等無線訊號其中訊號強度最強的N個無線訊號產生該距離估測值,N為大於1且不大於M的整數;當該第一電子裝置的該第一處理單元判斷該等距離估測值皆小於該預設距離,該第一處理單元經由該第一輸出單元輸出該提示。 In some implementation aspects, the distance sensing system includes M second electronic devices, M is an integer greater than 1, when the first processing unit of the first electronic device receives When receiving the wireless signals from more than one of the second electronic devices, the first processing unit only generates the distance estimation value based on N wireless signals with the strongest signal strength among the wireless signals, where N is greater than 1 and not greater than An integer of M; when the first processing unit of the first electronic device determines that the estimated equidistance values are all smaller than the preset distance, the first processing unit outputs the prompt via the first output unit.
在一些實施態樣中,該第一電子裝置還包含一電連接於該第一處理單元的第一儲存單元,及一電連接於該第一處理單元的第一定位單元,該第一定位單元用於產生一定位結果,當該定位單元能計算出該第一電子裝置的當前位置時,該定位結果指示出該第一電子裝置的當前位置,當該定位單元無法計算出該第一電子裝置的當前位置時,該定位結果指示出無法定位,該第一儲存單元儲存有一對照表,該對照表包含二個距離參數值、及二個分別對應於該等距離參數值的室內外參數,該等室內外參數分別指示室內及室外;該第一電子裝置的該第一處理單元在判斷該距離估測值是否小 於該預設距離之前,該第一處理單元根據該定位結果產生一指示該第一電子裝置是位於室內或室外的室內外分析結果,其中,當該定位結果指示出該第一電子裝置的當前位置時,該第一處理單元所產生的該室內外分析結果指示出該第一電子裝置位於室外,當該定位結果指示出無法定位時,該第一處理單元所產生的該室內外分析結果指示出該第一電子裝置位於室內;該第一電子裝置的該第一處理單元根據該室內外分析結果及該對照表將該預設距離的值設成與該等距離參數值其中一者相同,其中,該距離參數值對應的該室內外參數與該室內外分析結果相同。 In some implementation aspects, the first electronic device further includes a first storage unit electrically connected to the first processing unit, and a first positioning unit electrically connected to the first processing unit, the first positioning unit For generating a positioning result, when the positioning unit can calculate the current position of the first electronic device, the positioning result indicates the current position of the first electronic device, when the positioning unit cannot calculate the current position of the first electronic device When the current position of the location is determined, the positioning result indicates that positioning cannot be performed, and the first storage unit stores a comparison table, the comparison table includes two distance parameter values, and two indoor and outdoor parameters corresponding to the equidistance parameter values, the The indoor and outdoor parameters respectively indicate indoor and outdoor; the first processing unit of the first electronic device is judging whether the estimated distance value is small Before the preset distance, the first processing unit generates an indoor-outdoor analysis result indicating that the first electronic device is located indoors or outdoors according to the positioning result, wherein, when the positioning result indicates that the current position of the first electronic device is position, the indoor and outdoor analysis result generated by the first processing unit indicates that the first electronic device is located outdoors, and when the positioning result indicates that it cannot be located, the indoor and outdoor analysis result generated by the first processing unit indicates It is determined that the first electronic device is located indoors; the first processing unit of the first electronic device sets the value of the preset distance to be the same as one of the equidistance parameter values according to the indoor and outdoor analysis results and the comparison table, Wherein, the indoor and outdoor parameters corresponding to the distance parameter value are the same as the indoor and outdoor analysis results.
在一些實施態樣中,指示出室內的該室內外參數所對應的該距離參數值大於指示出室外的該室內外參數所對應的該距離參數值。 In some implementation aspects, the distance parameter value corresponding to the indoor and outdoor parameter indicating indoor is greater than the distance parameter value corresponding to the indoor and outdoor parameter indicating outdoor.
在一些實施態樣中,所述距離感測系統還包含電連接該第一電子裝置的一遠端伺服器,該第一電子裝置還包含一電連接於該第一處理單元的第一定位單元,該第一定位單元用於產生指示該第一電子裝置的當前位置的一定位結果該第一電子裝置接收來自該遠端伺服器的多個區域資料,並於判斷出該定位結果所指示的當前位置涵蓋於該等區域資料其中一者所指示的區域時,經由該第一輸出單元輸出一提示。 In some implementation aspects, the distance sensing system further includes a remote server electrically connected to the first electronic device, and the first electronic device further includes a first positioning unit electrically connected to the first processing unit The first positioning unit is used to generate a positioning result indicating the current position of the first electronic device. The first electronic device receives a plurality of area data from the remote server, and determines the location indicated by the positioning result. When the current location covers the area indicated by one of the area data, a prompt is output through the first output unit.
在一些實施態樣中,該第一電子裝置及該第二電子裝置 皆為一無人機,該第一電子裝置還包含電連接於該第一處理單元的一第一驅動單元;當該第一電子裝置的該第一處理單元判斷該距離估測值小於該預設距離,該第一處理單元控制該驅動單元加速或減速運轉。 In some implementations, the first electronic device and the second electronic device All are drones, the first electronic device further includes a first drive unit electrically connected to the first processing unit; when the first processing unit of the first electronic device determines that the estimated distance is less than the preset distance, the first processing unit controls the drive unit to accelerate or decelerate.
本發明的另一目的在於提供一種距離感測方法,藉由一距離感測系統實施,該距離感測系統包含一第一電子裝置及一第二電子裝置,該第一電子裝置包含一第一短距離無線通訊單元、一第一輸出單元,及一電連接於該第一短距離無線通訊單元與該第一輸出單元的一第一處理單元,該第二電子裝置包含一第二短距離無線通訊單元,及一電連接於該第二短距離無線通訊單元的一第二處理單元,該第二處理單元經由該第二短距離無線通訊單元發出一無線訊號。 Another object of the present invention is to provide a distance sensing method implemented by a distance sensing system, the distance sensing system includes a first electronic device and a second electronic device, the first electronic device includes a first A short-distance wireless communication unit, a first output unit, and a first processing unit electrically connected to the first short-distance wireless communication unit and the first output unit, the second electronic device includes a second short-distance wireless A communication unit, and a second processing unit electrically connected to the second short-distance wireless communication unit, the second processing unit sends a wireless signal through the second short-distance wireless communication unit.
該距離感測方法包含:當該第一電子裝置的該第一處理單元經由該第一短距離無線通訊單元接收到來自該第二電子裝置的該無線訊號,該第一處理單元根據該無線訊號的訊號強度產生一指示該第一電子裝置與該第二電子裝置之間的估測距離的一距離估測值。 The distance sensing method includes: when the first processing unit of the first electronic device receives the wireless signal from the second electronic device through the first short-distance wireless communication unit, the first processing unit according to the wireless signal The signal strength yields a distance estimate indicating the estimated distance between the first electronic device and the second electronic device.
當該第一電子裝置的該第一處理單元判斷該距離估測值小於一預設距離,該第一處理單元經由該第一輸出單元輸出一提示。 When the first processing unit of the first electronic device determines that the estimated distance is less than a preset distance, the first processing unit outputs a prompt via the first output unit.
本發明的功效在於:本發明之距離感測系統藉由該第一電子裝置接收該無線訊號,並根據該無線訊號產生對應之該距離估測值,並當判斷出該距離估測值小於該預設距離時,輸出該提示,以提醒該第一電子裝置的使用者目前與其他人距離太近,再者,該第一電子裝置根據該當前裝置數量、該室內外分析結果及該對照表將該預設距離的值設成與該等距離參數值其中一者相同,以使該第一電子裝置能夠依據當前所處的環境改變該預設距離的值。 The effect of the present invention is that the distance sensing system of the present invention receives the wireless signal through the first electronic device, and generates the corresponding estimated distance value according to the wireless signal, and when it is judged that the estimated distance value is less than the When the distance is preset, the prompt is output to remind the user of the first electronic device that the distance between him and other people is too close; furthermore, the first electronic device according to the current number of devices, the indoor and outdoor analysis results and the comparison table The value of the preset distance is set to be the same as one of the equidistance parameter values, so that the first electronic device can change the value of the preset distance according to the current environment.
10:第一電子裝置 10: The first electronic device
11:第一短距離無線通訊單元 11: The first short-distance wireless communication unit
12:第一輸出單元 12: The first output unit
13:第一處理單元 13: The first processing unit
14:第一儲存單元 14: The first storage unit
15:第一定位單元 15: The first positioning unit
16:第一驅動單元 16: The first drive unit
20:第二電子裝置 20: Second electronic device
21:第二短距離無線通訊單元 21: The second short-distance wireless communication unit
22:第二處理單元 22: Second processing unit
200:遠端伺服器 200: remote server
300:通訊網路 300: communication network
S21~S26:步驟 S21~S26: Steps
S31~S34:步驟 S31~S34: steps
本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中:圖1是本發明的距離感測系統的一第一實施例的一硬體連接示意圖;圖2是該實施例執行之一第一距離感測程序的一流程圖;圖3是該實施例執行之一第二距離感測程序的一流程圖;及圖4是本發明的距離感測系統的一第二實施例的一硬體連接示意圖。 Other features and effects of the present invention will be clearly presented in the implementation manner with reference to the drawings, wherein: Fig. 1 is a schematic diagram of a hardware connection of a first embodiment of the distance sensing system of the present invention; Fig. 2 is This embodiment executes a flowchart of a first distance sensing program; FIG. 3 is a flowchart of a second distance sensing program executed by this embodiment; and FIG. 4 is a flowchart of the distance sensing system of the present invention A schematic diagram of hardware connection of the second embodiment.
在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。 Before the present invention is described in detail, it should be noted that in the following description, similar elements are denoted by the same numerals.
參閱圖1,本發明之距離感測系統的一第一實施例,適於
透過通訊網路300電連接一遠端伺服器200,並包含一第一電子裝置10及多個第二電子裝置20。
Referring to Fig. 1, a first embodiment of the distance sensing system of the present invention is suitable for
A
該第一實施例中的第一實施態樣,適用於防疫警示,因此該遠端伺服器200儲存多個區域資料,而該每一區域資料為染疫者或染疫高風險者曾駐足的地方。
The first implementation mode in the first embodiment is suitable for epidemic prevention warnings, so the
於此實施態樣中,該第一電子裝置10例如為一智慧型手機、一平板電腦或一智慧手錶等可攜式電子裝置,並包含一第一短距離無線通訊單元11、一第一輸出單元12、電連接該第一短距離無線通訊單元11及該第一輸出單元12的一第一處理單元13,及電連接該第一處理單元13的一第一儲存單元14及一第一定位單元15。
In this embodiment, the first
該第一短距離無線通訊單元11用於以藍牙(Bluetooth)或近場通訊(Near-field communication,NFC)等近距離無線通訊技術收發訊號。
The first short-range
該第一輸出單元12例如為一蜂鳴器或一震動器。
The
該第一儲存單元14例如為一非揮發性記憶體(Non-Volatile Memory,NVM),並儲存有一對照表,該對照表包含多個距離參數值、多個分別對應於該等距離參數值的裝置數量範圍,及對應該等距離參數值的二個室內外參數。該等室內外參數分別指示室內及室外,且每一距離參數值對應該等室內外參數之
其中一者。
The
特別說明的是,該對照表的該等距離參數值與該等裝置數量範圍呈反相關,且指示出室內的該室內外參數所對應的該距離參數值大於指示出室外的該室內外參數所對應的該距離參數值。 It is particularly noted that the equidistance parameter value of the comparison table is inversely correlated with the range of the number of devices, and the distance parameter value corresponding to the indoor and outdoor parameter indicating indoor is greater than that indicated by the indoor and outdoor parameter indicating outdoor. Corresponding to the distance parameter value.
應注意的是,在其他實施態樣中,該對照表的該等距離參數值與該等裝置數量範圍也可以是呈正相關,且指示出室內的該室內外參數所對應的該距離參數值也能是小於指示出室外的該室內外參數所對應的該距離參數值,並不以此實施例為限。 It should be noted that, in other implementation forms, the equidistance parameter value of the comparison table may also be positively correlated with the range of the number of devices, and it indicates that the distance parameter value corresponding to the indoor and outdoor parameters is also It can be smaller than the value of the distance parameter corresponding to the indoor and outdoor parameter indicating outdoor, and it is not limited to this embodiment.
該對照表例如為:
該第一定位單元15例如為一GPS晶片,並用於產生一定位結果,當該定位單元能計算出該第一電子裝置10的當前位置時,該定位結果指示出該第一電子裝置10的當前位置,當該定位單元無法計算出該第一電子裝置10的當前位置時,該定位結果指示出無法定位。
The
該第一處理單元13例如為該第一電子裝置10內部的中央處理器(Central Processing Unit,CPU),並能透過該第一短距離無線通訊單元11收發無線訊號,並控制該第一輸出單元12發出為鈴響或震動的一提示。
The
於該第一實施例中,該每一第二電子裝置20例如為一智慧型手機、一平板電腦或一智慧手錶等可攜式電子裝置,並包含一第二短距離無線通訊單元21及電連接該第二短距離無線通訊單元21的一第二處理單元22。
In the first embodiment, each second
該第二短距離無線通訊單元21用於以藍牙(Bluetooth)或近場通訊(Near-field communication,NFC)等近距離無線通訊技術收發訊號。
The second short-range
該第二處理單元22例如為該第二電子裝置20內部的中央處理器(Central Processing Unit,CPU),並能透過該第二短距離無線通訊單元21收發無線訊號。
The
參閱圖1及圖2,以下說明第一實施例執行之一第一距離感測程序的步驟。 Referring to FIG. 1 and FIG. 2 , the steps of a first distance sensing procedure performed by the first embodiment are described below.
於步驟S21中,該第二處理單元22經由該第二短距離無線通訊單元21發出一無線訊號。接著執行步驟S22。
In step S21 , the
於步驟S22中,當該第一電子裝置10的該第一處理單元13經由該第一短距離無線通訊單元11接收到來自該等第二電子裝置20其中多者的該無線訊號,該第一處理單元13根據接收到的該無線訊號的數量產生一當前裝置數量,並根據該第一定位單元15所產生的該定位結果產生一指示該第一電子裝置10是位於室內或室外的室內外分析結果。
In step S22, when the
更進一步地說,當該定位結果指示出該第一電子裝置10的當前位置時,該第一處理單元13所產生的該室內外分析結果指示出該第一電子裝置10位於室外,當該定位結果指示出無法定位(由於該第一電子裝置10在室內,因此導致該第一定位單元15無法定位)時,該第一處理單元13所產生的該室內外分析結果指示出該第一電子裝置10位於室內。
Furthermore, when the positioning result indicates the current location of the first
更明確地說,當一使用者帶著該第一電子裝置10進入一室內公共場所時,該第一電子裝置10會接收到來自周圍在訊號可接收範圍內(例如藍牙的訊號可接收範圍大約為10公尺)的該等第二電子裝置20所發出的該無線訊號,並計算所接收到的該無線訊號的數量進而推算出在訊號可接收範圍內的第二電子裝置20的數量,也就是推算位在該使用者周圍的人數。除了計算無線訊號的數量外,該第一電子裝置10還透過該第一定位單元15產生該定位結果,以判斷該第一電子裝置10目前是位於室內或室外。接著執行步驟S23。
More specifically, when a user enters an indoor public place with the first
於步驟S23中,在該第一電子裝置10的該第一處理單元13產生出該當前裝置數量及該室內外分析結果後,該第一電子裝置10的該第一處理單元13根據該當前裝置數量、該室內外分析結果及該對照表將該預設距離的值設成與該等距離參數值其中一者相同,其中,該距離參數值對應的該室內外參數與該室內外分析結果
相同,且該距離參數值對應的該裝置數量涵蓋該當前裝置數量。
In step S23, after the
也就是說,該第一電子裝置10會根據該當前裝置數量及該室內外分析結果,並依照上表,將該預設距離設定為符合該第一電子裝置10當前所處環境的情況的該距離參數值,也就是依照該使用者當前所處的環境調整該使用者與其他人之間應保持的距離。接著執行步驟S24。
That is to say, the first
於步驟S24中,該第一電子裝置10僅根據該等無線訊號其中訊號強度最強者產生指示出發出該無線訊號的該第二電子裝置與該第一電子裝置10之間的距離的該距離估測值。
In step S24, the first
更明確地說,本實施例中,該第一電子裝置10是根據接收到的該無線訊號的接收訊號強度指示(received signal strength indicator,RSSI)產生該距離估測值。接著執行步驟S25。
More specifically, in this embodiment, the first
於步驟S25中,該第一電子裝置10產生出對應於訊號強度最強的該無線訊號的該距離估測值後,該第一電子裝置10判斷該距離估測值是否小於該預設距離,若是,便接著執行步驟S26,若否,則回到步驟S24。
In step S25, after the first
於步驟S26中,當該第一電子裝置10的該第一處理單元13判斷該距離估測值小於該預設距離,該第一處理單元13經由該第一輸出單元12輸出該提示。
In step S26 , when the
需進一步說明的是,由於該第一電子裝置10所接收到的
訊號強度最強的該無線訊號理應是與其距離最接近的該第二電子裝置20所發出的,因此,該第一電子裝置10僅需判斷對應訊號強度最強的該無線訊號的該距離估測值是否小於該預設距離即可判斷出是否有任何第二電子裝置20在該預設距離內,也就是判斷出是否該使用者目前是否和其他人的距離小於該預設距離。並且,當該第一電子裝置10的該第一處理單元13判斷該距離估測值小於該預設距離時,透過該第一輸出單元12發出鈴響或是震動來提醒該使用者目前與他人距離太近。
It should be further explained that, since the first
此外,在該第一電子裝置10執行上述步驟S21~S26的同時,該第一電子裝置10的該第一處理單元13也會接收來自該遠端伺服器200的該等區域資料,並於判斷出該定位結果所指示的當前位置涵蓋於該等區域資料其中一者所指示的區域時,經由該第一輸出單元12輸出提醒該使用者盡快離開該區域的一提示。
In addition, while the first
在第一實施例的一第二實施態樣,用於供商店行銷,於此實施態樣中,該等第二電子裝置20分別擺設於多個商店(圖未示)之中,且當該第一電子裝置10的該第一處理單元13判斷該其中一第二電子裝置20所對應的該距離估測值小於該預設距離,該第一處理單元13經由該第一輸出單元12輸出該提示。該提示指示出該第二電子裝置20為裝設於該商店內部的一吉祥物或一神祕人物的一裝置,因此該第一電子裝置10能獲得點數,進而在點數累積至一定
程度時(例如為10點)向店家換取贈品。該吉祥物通常會擺在商店中較為醒目的地方,供客戶靠近以獲取點數,而該神秘人物則通常在較隱密、較不易被察覺的地方,讓客戶或玩家在逛街戶購物的過程中能有尋寶的體驗。
In a second implementation of the first embodiment, it is used for store marketing. In this implementation, the second
參閱圖1及圖3,第一實施例的一第三實施態樣,是用於進行軍隊攻城的遊戲。於此實施態樣中,該距離感測系統包含一第一電子裝置10及M個第二電子裝置20,M為大於1的整數。該第一電子裝置10與該M個第二電子裝置20皆與上述實施例相同,因此不再贅述。
Referring to Fig. 1 and Fig. 3, a third embodiment of the first embodiment is a game for army siege. In this embodiment, the distance sensing system includes a first
於步驟S31,該第一電子裝置10的該第一處理單元13經由該第一短距離無線通訊單元11接收到來自該M個第二電子裝置20其中多者的該無線訊號。接著執行步驟S32。
In step S31 , the
於步驟S32,當該第一處理單元13接收到該等無線訊號時,該第一處理單元13僅根據該等無線訊號其中訊號強度最強的N個無線訊號產生該距離估測值,N為大於1且不大於M的整數。舉例來說,若該第一處理單元13接收到10個無線訊號(M=10),也就是該第一處理單元13之訊號可接收範圍內有10個第二電子裝置20,該第一處理單元13僅根據其中訊號強度的最強的3個(N=3)無線訊號產生出3個距離估測值。接著執行步驟S33。
In step S32, when the
於步驟S33中,當該第一電子裝置10產生出N個距離估測
值,該第一電子裝置10判斷該N個距離估測值是否皆小於該預設距離,若是,便接著執行步驟S34,若否,則返回步驟S32。
In step S33, when the first
於步驟S34中,該第一處理單元13經由該第一輸出單元12輸出該提示。
In step S34 , the
更明確地說,當該使用者透過該第一電子裝置10與其他配戴第二電子裝置20的玩家進行軍隊攻城的遊戲時,該第一電子裝置10接收到位於訊號可接收範圍內的該等第二電子裝置20所發出的該無線訊號,並計算接收到的該等無線訊號其中N個所對應的N個距離估測值。並且,當該第一電子裝置10判斷出訊號強度最強的該N個無線訊號所對應的該N個距離估測值皆小於該預設距離,也就是該使用者目前被N個配戴第二電子裝置20的玩家包圍,因此,該第一處理單元13經由該第一輸出單元12輸出該使用者已出局的該提示。
More specifically, when the user plays an army siege game with other players wearing the second
參閱圖4,以下說明本發明之距離感測系統的一第二實施例,包含一第一電子裝置10及多個第二電子裝置20。於此實施例中,該第一電子裝置10與該等第二電子裝置20例如為無人機、無人自駕車,或仿生魚,但不以上述為限。
Referring to FIG. 4 , a second embodiment of the distance sensing system of the present invention is described below, including a first
該第一電子裝置10包含一第一短距離無線通訊單元11、一第一輸出單元12、電連接該第一短距離無線通訊單元11及該第一輸出單元12的一第一處理單元13,及電連接該第一處理單
元13的一第一儲存單元14、一第一定位單元15及一第一驅動單元16。該第二電子裝置20包含一第二短距離無線通訊單元21及電連接該第二短距離無線通訊單元21的一第二處理單元22。
The first
該第一短距離無線通訊單元11、該第一輸出單元12、該第一處理單元13、該第一儲存單元14、該一第一定位單元15、該第二短距離無線通訊單元21及該第二處理單元22皆與上述第一實施例中的該第一短距離無線通訊單元11、該第一輸出單元12、該第一處理單元13、該第一儲存單元14、該一第一定位單元15、該第二短距離無線通訊單元21及該第二處理單元22相同,於此便不再贅述。
The first short-distance
該第一驅動單元16例如為一馬達,用以作為動力來源以使該無人機移動。
The
與第一實施例不同的地方在於,當該第一電子裝置10的該第一處理單元13判斷出判斷該距離估測值小於該預設距離時,該第一處理單元13控制該驅動單元加速或減速運轉。
The difference from the first embodiment is that when the
也就是說,當該第一電子裝置10的該第一處理單元13判斷該等第二電子裝置20其中一者與其距離太近時,該第一電子裝置10的該第一處理單元13便控制該第一驅動單元16加速運轉或減速運轉,並控制該第一驅動單元16進行轉向,以避免碰撞發生。
That is to say, when the
綜上所述,本發明之距離感測系統藉由該第一電子裝置
10接收該無線訊號,並根據該無線訊號產生對應之該距離估測值,並當判斷出該距離估測值小於該預設距離時,輸出該提示,以在該使用者與其他人距離太近時給予提示,再者,該第一電子裝置10根據該當前裝置數量、該室內外分析結果及該對照表將該預設距離的值設成與該等距離參數值其中一者相同,以使該第一電子裝置10的該第一處理單元13能夠依據該第一電子裝置10當前所處的環境改變該預設距離的值。因此,確實能達成本發明之目的。
In summary, the distance sensing system of the present invention uses the first
惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。 But the above-mentioned ones are only embodiments of the present invention, and should not limit the scope of the present invention. All simple equivalent changes and modifications made according to the patent scope of the present invention and the content of the patent specification are still within the scope of the present invention. Within the scope covered by the patent of the present invention.
10:第一電子裝置 10: The first electronic device
11:第一短距離無線通訊單元 11: The first short-distance wireless communication unit
12:第一輸出單元 12: The first output unit
13:第一處理單元 13: The first processing unit
14:第一儲存單元 14: The first storage unit
15:第一定位單元 15: The first positioning unit
20:第二電子裝置 20: Second electronic device
21:第二短距離無線通訊單元 21: The second short-distance wireless communication unit
22:第二處理單元 22: Second processing unit
200:通訊網路 200: communication network
300:遠端伺服器 300: remote server
Claims (2)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW109127365A TWI787642B (en) | 2020-08-12 | 2020-08-12 | distance sensing method |
| US17/344,182 US11418913B2 (en) | 2020-06-12 | 2021-06-10 | System and method for distance detection |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW109127365A TWI787642B (en) | 2020-08-12 | 2020-08-12 | distance sensing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202207175A TW202207175A (en) | 2022-02-16 |
| TWI787642B true TWI787642B (en) | 2022-12-21 |
Family
ID=81323567
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW109127365A TWI787642B (en) | 2020-06-12 | 2020-08-12 | distance sensing method |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI787642B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TW201500249A (en) * | 2013-06-21 | 2015-01-01 | Inventec Appliances Corp | Dangerous area warning system and method thereof |
| US20160209495A1 (en) * | 2015-01-15 | 2016-07-21 | Mediatek Inc. | Method of Distance Measurement between Wireless Communication Devices in Wireless Communication System |
| CN108227731A (en) * | 2016-12-15 | 2018-06-29 | 比亚迪股份有限公司 | Unmanned plane collision-proof method and device |
| CN109544992A (en) * | 2018-12-20 | 2019-03-29 | 吉林大学 | A kind of vehicle collision prewarning system based on GPS and ZigBee |
| US20190373411A1 (en) * | 2011-03-23 | 2019-12-05 | Freelinc Holdings, Llc | Proximity based social networking cross-reference to related application |
| CN111461276A (en) * | 2020-05-19 | 2020-07-28 | 上海永力信息科技股份有限公司 | Personnel safety distance protection bracelet based on wireless radio frequency technology |
-
2020
- 2020-08-12 TW TW109127365A patent/TWI787642B/en active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20190373411A1 (en) * | 2011-03-23 | 2019-12-05 | Freelinc Holdings, Llc | Proximity based social networking cross-reference to related application |
| US20200186963A1 (en) * | 2011-03-23 | 2020-06-11 | Freelinc Holdings, Llc | Proximity based social networking |
| TW201500249A (en) * | 2013-06-21 | 2015-01-01 | Inventec Appliances Corp | Dangerous area warning system and method thereof |
| US20160209495A1 (en) * | 2015-01-15 | 2016-07-21 | Mediatek Inc. | Method of Distance Measurement between Wireless Communication Devices in Wireless Communication System |
| CN108227731A (en) * | 2016-12-15 | 2018-06-29 | 比亚迪股份有限公司 | Unmanned plane collision-proof method and device |
| CN109544992A (en) * | 2018-12-20 | 2019-03-29 | 吉林大学 | A kind of vehicle collision prewarning system based on GPS and ZigBee |
| CN111461276A (en) * | 2020-05-19 | 2020-07-28 | 上海永力信息科技股份有限公司 | Personnel safety distance protection bracelet based on wireless radio frequency technology |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202207175A (en) | 2022-02-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWM600396U (en) | Distance sensing system | |
| US11458395B2 (en) | Method for displaying information in a virtual environment | |
| US10128699B2 (en) | Systems and methods of providing wireless power using receiver device sensor inputs | |
| US20190182611A1 (en) | Computer Performance of Executing Binaural Sound | |
| US9271103B2 (en) | Audio control based on orientation | |
| CN110554773B (en) | Haptic device for producing directional sound and haptic sensation | |
| US20170277254A1 (en) | Pressure sensing to identify fitness and comfort of virtual reality headset | |
| US20150245164A1 (en) | Interaction between wearable devices via broadcasted sensor-related data | |
| CN109550248B (en) | Virtual object position identification method and device, mobile terminal and storage medium | |
| JP2021528131A (en) | Virtual pet breeding methods, equipment, equipment and computer programs | |
| CN109844691A (en) | Dynamic enhances real world sound to virtual reality audio mixing | |
| US20220076487A1 (en) | Method and apparatus for displaying heat map, computer device, and readable storage medium | |
| JP2012165962A (en) | Game system, mobile communication terminal, and program | |
| US20180015362A1 (en) | Information processing method and program for executing the information processing method on computer | |
| US20200084537A1 (en) | Automatically movable speaker to track listener or optimize sound performance | |
| US20210092547A1 (en) | Sharing Locations where Binaural Sound Externally Localizes | |
| US20190356985A1 (en) | Environmental sensing for a unique portable speaker listening experience | |
| CN114205701A (en) | Noise reduction method, terminal device and computer readable storage medium | |
| CN108880975B (en) | Information display method, device and system | |
| JP6190497B1 (en) | Information processing method and program for causing computer to execute information processing method | |
| CN109089137A (en) | Caton detection method and device | |
| TWI787642B (en) | distance sensing method | |
| WO2017054165A1 (en) | Interactive device selection method and apparatus | |
| CN113514060A (en) | 6DoF positioning and tracking device and method and electronic equipment | |
| JP2006164212A (en) | Information processing apparatus and method, recording medium, and program |