So far, we have published three tutorialson using our new NanoBeacon BLE Scanner mobile app. We covered the following topics:
到目前為止,我們已經(jīng)發(fā)布了三個關(guān)于使用我們新的NanoBeacon BLE掃描器移動應(yīng)用程序的教程。我們涵蓋了以下主題:
- Introduction to the NanoBeacon BLE Scanner mobile app
- NanoBeacon BLE掃描器移動應(yīng)用程序介紹
- Installation and setup
- 安裝和設(shè)置
- Overview of the different features of the app
- 該應(yīng)用程序的不同功能概述
- How to use the mobile app to discover your IN100 tags
- 如何使用移動應(yīng)用程序來發(fā)現(xiàn)您的IN100標(biāo)簽
- 設(shè)備過濾器的概述
- iOS應(yīng)用程序和Android應(yīng)用程序之間的差異
- 檢測觸發(fā)的廣播集的應(yīng)用程序通知
In this tutorial, we will cover the “Logs” and “Monitor” features of the mobile app (available in the latest version of the app)
在本教程中,我們將介紹移動應(yīng)用程序的 "日志 "和 "監(jiān)控 "功能(在應(yīng)用程序的最新版本中可用)。
Let’s get started!
讓我們開始吧!
Logging Feature 記錄功能
First, make sure you have the latest version of the app (whether that’s for iOS or Android).
首先,確保你有最新版本的應(yīng)用程序(無論是iOS還是Android)。
Once you have the latest version installed, go ahead and launch the app.
一旦你安裝了最新版本,就去啟動該應(yīng)用程序。
For a simple test case, we’ll be configuring the IN100 with the following parameters:
對于一個簡單的測試案例,我們將用以下參數(shù)配置IN100:
- One advertising set
- 一個廣播集
- Advertising Data
- 廣播數(shù)據(jù)
- Advertising data format: Custom
- 廣播數(shù)據(jù)格式:自定義
- Device Name: “IN100”
- 設(shè)備名稱:"IN100"
- Manufacturer Specific Data: VCC, Internal Temp
- 制造商特定數(shù)據(jù):VCC,內(nèi)部溫度
- Advertising Parameters
- 廣播參數(shù)
- Advertising Interval: 100 ms
- 廣播間隔:100毫秒
Once you have the parameters set as above, make sure you probe and connect to the device, then click “Run in RAM.”
一旦你設(shè)置了上述參數(shù),確保你探測并連接到設(shè)備,然后點擊 "在RAM中運行"。
Finally, import your IN100 configuration from NanoBeacon Config Tool (via the QR code) into the mobile app.
最后,將你的IN100配置從NanoBeacon配置工具(通過QR碼)導(dǎo)入移動應(yīng)用程序。
Now that we have the configuration imported into the mobile app, we should see the following in the “Configuration” view:
現(xiàn)在我們已經(jīng)將配置導(dǎo)入移動應(yīng)用程序,我們應(yīng)該在 "配置 "視圖中看到以下內(nèi)容:
Verify that the configuration is correct, and then navigate to the “Scanner” view.
驗證配置是否正確,然后導(dǎo)航到 "掃描器 "視圖。
Once in the Scanner view, enable the filter “Only show project configuration matches”:
一旦進(jìn)入 "掃描器 "視圖,啟用過濾器 "只顯示項目配置匹配":
Now, exit the filter view and refresh the scan. You should see the following on screen:
現(xiàn)在,退出過濾器視圖并刷新掃描。你應(yīng)該在屏幕上看到以下內(nèi)容:
Now, click on the “View Data” text to see the detailed real-time advertising data:
現(xiàn)在,點擊 "查看數(shù)據(jù) "文本,查看詳細(xì)的實時廣播數(shù)據(jù):
From here, notice the “Logs” button in the top right corner of the screen. Click on it, and now you should see a real-time log of the captured data. Basically, this shows the history of all the advertising data captured by the app. Once in this view, you’ll also notice that there’s an export button in the top right-hand corner of the screen:
在這里,注意屏幕右上角的 "日志 "按鈕。點擊它,現(xiàn)在你應(yīng)該看到捕獲數(shù)據(jù)的實時日志。基本上,這顯示了該應(yīng)用程序捕獲的所有廣播數(shù)據(jù)的歷史。一旦進(jìn)入這個視圖,你還會注意到,在屏幕的右上角有一個導(dǎo)出按鈕:
This allows you to export the full log via email, clipboard, and other methods supported by your device:
這允許你通過電子郵件、剪貼板和你的設(shè)備支持的其他方法導(dǎo)出完整的日志:
The exported format is in CSV (comma-separated values), so you can easily import it into Excel or any other spreadsheet app you choose.
導(dǎo)出的格式是CSV(omma-separated values),所以你可以很容易地把它導(dǎo)入Excel或你選擇的任何其他電子表格應(yīng)用程序。
You’ll also notice two other icons in the bottom right-hand corner of the screen, the trash icon()and the stop icon ( ). These allow you to stop/continue/start the logging and also clear the logs, respectively.
你還會注意到屏幕右下角的另外兩個圖標(biāo),即垃圾箱圖標(biāo)()和停止圖標(biāo)。和停止圖標(biāo)()。這兩個圖標(biāo)分別允許你停止/繼續(xù)/啟動日志記錄,也可以清除日志。
Here’s what the exported log data looks like in Excel:
下面是導(dǎo)出的日志數(shù)據(jù)在Excel中的樣子:
As you can see, this is a very powerful feature that allows you to take your data outside the app and perform any data analysis you wish!
正如你所看到的,這是一個非常強大的功能,允許你把你的數(shù)據(jù)帶到應(yīng)用程序之外,并執(zhí)行任何你想要的數(shù)據(jù)分析!
Now, this is great for continuous advertising data sets where you’ll always find the advertising set captured by the mobile app, but what about triggered advertising sets (if you’re unfamiliar with the concept of Triggered advertising sets in NanoBeacon, I encourage you to read our last tutorial on the topic, found here).
現(xiàn)在,這對連續(xù)的廣播數(shù)據(jù)集來說是很好的,你總能找到由移動應(yīng)用程序捕獲的廣播集,但觸發(fā)的廣播集呢(如果你不熟悉NanoBeacon中觸發(fā)的廣播集的概念,我鼓勵你閱讀我們關(guān)于這個主題的最后一個教程,在這里找到)。
Let’s see how we can view logs for triggered advertising sets!
讓我們看看如何查看被觸發(fā)的廣播集的日志!
Monitor View 監(jiān)控視圖
If you’ve used previous versions of the mobile app, you’ll notice that this is a new view that was just added recently.
如果你使用過以前版本的移動應(yīng)用程序,你會注意到這是最近剛添加的一個新視圖。
The view allows you to see the last captured advertising data sets as well as the history/logs of the captured data. This can be very powerful, especially in the case of Triggered advertising sets, where the advertising sets are not always present. It is also a much more convenient way to view the logs for all configured advertising sets outside of the Scanner view.
該視圖允許你看到最后捕獲的廣播數(shù)據(jù)集,以及捕獲數(shù)據(jù)的歷史/日志。這可能是非常強大的,特別是在觸發(fā)式廣播集的情況下,廣播集并不總是存在。這也是一個更方便的方法,可以在掃描器視圖之外查看所有配置的廣播集的日志。
For our configuration example that we used in this tutorial, if we navigate to the Monitor view, we’ll notice the single advertising set that we configured:
對于我們在本教程中使用的配置例子,如果我們導(dǎo)航到監(jiān)視器視圖,我們會注意到我們配置的單一廣播集:
If we click on it, we’ll be taken to a view that’s identical to the one found when you click on “View Data” in the Scanner view. The data shown here is updated in real-time:
如果我們點擊它,我們將被帶到一個與你在掃描器視圖中點擊 "查看數(shù)據(jù) "時發(fā)現(xiàn)的相同的視圖。這里顯示的數(shù)據(jù)是實時更新的:
You’ll also notice you have the “Logs” button which will allow you to view the history of the data captured by the mobile app:
你還會注意到你有 "日志 "按鈕,這將使你能夠查看移動應(yīng)用程序捕獲的數(shù)據(jù)的歷史:
One cool experiment to run is to turn off your IN100 device (or simply take it out of range), verify that the device is no longer being discovered in the Scanner view, and then navigate to the Monitor view to see the log data for the advertising set.
一個很酷的實驗是關(guān)閉你的IN100設(shè)備(或者干脆把它帶出范圍),在掃描器視圖中驗證該設(shè)備不再被發(fā)現(xiàn),然后導(dǎo)航到監(jiān)視器視圖,查看廣播集的日志數(shù)據(jù)。
You’ll also be able to see the data included in the last-captured advertising set and see the timestamp it was captured at.
你還可以看到最后捕獲的廣播集所包含的數(shù)據(jù),并看到它被捕獲的時間戳。
Summary 總結(jié)In this tutorial, we focused on the Logging feature of the app and showed how you can view the logs in two ways:
在本教程中,我們重點介紹了應(yīng)用程序的日志功能,并展示了如何以兩種方式查看日志:
- From the Scanner view —> View Data —> Logs
- 從掃描器視圖->查看數(shù)據(jù)->日志
- From Monitor view —> click on Advertising Set of interest —> Logs
- 從監(jiān)控視圖->點擊感興趣的廣播集->日志
Stay tuned for more tutorials covering new features that get added to the mobile app!
請繼續(xù)關(guān)注更多涵蓋移動應(yīng)用程序新增功能的教程!
-
BLE
+關(guān)注
關(guān)注
12文章
660瀏覽量
59391 -
掃描器
+關(guān)注
關(guān)注
0文章
164瀏覽量
11908
發(fā)布評論請先 登錄
相關(guān)推薦
評論