Outdoor & Indoor signal measuring Solution End User Guide V1.1
- 1. 简介//名字已修改,以下内容中“LA66”全部替换成“LA66USB LoRaWAN Adapter”
- 2. 如何构建?
- 3. How To Use?//图片显示问题已修复,硬件使用方法已放到小节头(即插即用,自动判断室内外)
1. 简介//名字已修改,以下内容中“LA66”全部替换成“LA66USB LoRaWAN Adapter”
1.1 什么是室外和室内信号测量解决方案?
为了帮助客户确定最佳的传感器放置位置,我们设计了一键式信号强度测量解决方案。您只需要一个 LA66 USB LoRaWAN 适配器和一个 Dragino 帐户。
室外信号测量解决方案支持使用多个网关同时进行测试。它允许显示单个网关信号图和来自多个网关的组合信号叠加。
对于室内信号测量,由于布局复杂,障碍物众多,用户需要步行到合适的位置才能开始测量。然后可以在室内地图上标记测量点,并灵活地选择添加或删除标记。
两个控制面板都支持数据导出。
1.2 产品特点
- 广泛的支持
- 只需一个 LA66 USB LoRaWAN 适配器和一个 Dragino 帐户,网关和 LNS 即可自由匹配高精度测量//格式已修正
- 高精度传感器
- 可靠的数据读数
- 实时测量
- 用于切换接收数据或停止接收数据的按钮
- 连续测量
- 用户友好的界面
- 直观的仪表板设计
1.3 产品参数
- 移动支持:用于移动监控的专用移动应用程序
- 设备手册:LA66 USB LoRaWAN 适配器用户手册
2. 如何构建?
2.1 网络结构//图片已替换
网络结构由终端节点和网关组成,它们共同测量信号强度。您可以替换您使用的 gateway 和 Network Server。(应该支持 LoRaWAN)
2.1 获取账户
首先,请联系您当地的代表以获取客户账户或向 support@dragino.cc 发送邮件
2.2 获取设备及配置//新增烧录固件详细说明(一般情况下用出厂自带的默认固件即可)
1.联系您当地的代表,为您的信号测量解决方案购买必要的设备。这些设备包括:
- 终端节点:LA66 USB LoRaWAN 适配器
- 网关(如果需要):用于数据传输。
2.刻录LA66 USB LoRaWAN适配器的引导加载程序和固件
- 引导加载程序: 默认情况下,我们运送的 LA66 USB LoRaWAN 适配器带有引导加载程序(更多详细信息:https://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20USB%20LoRaWAN%20Adapter%20User%20Manual/#H1.10A0UpgradeFirmwareofLA66USBLoRaWANAdapter:~:text=is%20as%20below%3A-,1.10%C2%A0%20Upgrade%20Firmware%20of%20LA66%20USB%20LoRaWAN%20Adapter,-1.10.1%20Update%20method)
- 固件:如果您的设备没有 bootloader,请通过以下方式为其烧录一个 bootloader:https://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20USB%20LoRaWAN%20Adapter%20User%20Manual/#H1.10A0UpgradeFirmwareofLA66USBLoRaWANAdapter:~:text=20model/%23H3.2.1UpdateafirmwareviaDraginoSensorManagerUtility.exe-,1.10.2%20Update%20method%3A%C2%A0For%20LA66%20without%20bootloader,-Explanation%3A
使用前确保所有设备都在 Dragino 上预先注册//移至章末另起一节
2.3 Register Devices & Gateways on LNS
2.3.1 Register Device
1.Have a check of package box to get DEVEUI/ APPEUI/ APPKEY(OTTAKEY)
2.Register on LNS and replace decoding
- Decoding for ChirpStack:
return {
data: Decode(input.fPort, input.bytes, input.variables)
};
}
function bytesToString(bytes) {
return decodeURIComponent(bytes.map(b => '%' + b.toString(16).padStart(2, '0')).join(''));
}
function Decode(fPort, bytes, variables) {
var data = {};
if (bytes.length >= 9) {
data.flag = bytes[0];
data.Node_type = "Caculate AVG";
data.latitude = parseFloat(((bytes[1] << 24 >>> 0 | bytes[2] << 16 | bytes[3] << 8 | bytes[4]) / 1e6).toFixed(6));
data.longitude = parseFloat(((bytes[5] << 24 >>> 0 | bytes[6] << 16 | bytes[7] << 8 | bytes[8]) / 1e6).toFixed(6));
// 剩余字节为 title(如果存在)
if (bytes.length > 9) {
const titleBytes = bytes.slice(9);
data.title = bytesToString(titleBytes);
}
}
return data;
}
- Decoding for TTN:
function format(shijianchuo){
//shijianchuo是整数,否则要parseInt转换
var time = new Date(shijianchuo);
var y = time.getFullYear();
var m = time.getMonth()+1;
var d = time.getDate();
var h = time.getHours();
var mm = time.getMinutes();
var s = time.getSeconds();
return y+'-'+add0(m)+'-'+add0(d)+' '+add0(h)+':'+add0(mm)+':'+add0(s);
}
function Decoder(bytes) {
var data={};
var doorflg
if (bytes[0]===1){
doorflg = "indoor"
}
else{
doorflg = "outdoor"
}
if (bytes.length==13){
data.doorflg = doorflg
data.latitude=parseFloat(((bytes[1]<<24|bytes[2]<<16|bytes[3]<<8|bytes[4])/1000000).toFixed(6));
data.longitude=parseFloat(((bytes[5]<<24|bytes[6]<<16|bytes[7]<<8|bytes[8])/1000000).toFixed(6));
timestamp1=bytes[9]<<24|bytes[10]<<16|bytes[11]<<8|bytes[12];
data.timestamp=timestamp1;
data.beijintime=format((timestamp1+28800)*1000);
return data;
}
else if(bytes.length==9){
data.doorflg = doorflg
data.Node_type = "Caculate AVG"
data.latitude=parseFloat(((bytes[1]<<24|bytes[2]<<16|bytes[3]<<8|bytes[4])/1000000).toFixed(6));
data.longitude=parseFloat(((bytes[5]<<24|bytes[6]<<16|bytes[7]<<8|bytes[8])/1000000).toFixed(6));
return data;
}
}
- If you using other LNS, you can code yourself(The first nine bits of the uploaded data are the flag bit + position, and the rest are the title) or send mail to support@dragino.cc)
2.2.2 Register Gateway(If you use Dragino's gateway)//删除网关配置介绍
2.4 LNS Connection Method//已更新标题
Choose LNS: After log in Dragino platform, click the button "Import-Dragino-map"and choose the LNS you using.
Example of TTN//已增添详细文字说明
Account & Passwork: Imput your TTN account and password to use API port.
MQTT Address: Imput public address (Don't imput Port)
Example of ChirpStack//已增添详细文字说明
MQTT Address: Your MQTT server address or the cloud server address you use
Subscribe Topic: The default for Topic is: application/chirpstack application id/device/+/event/up(Replace"chirpstack application id" with the one which is actually used)
SSL Certificates: Copy the contents of the certificates and paste them into the linked file below, a total of three certificates are required(Integrated Certificate File demo Download Address: https://github.com/ThingsEye-io/te-platform/tree/main/chirpstack)
Check:Whether the device is connected to the platform through LNS
Check: Whether the device profile is Caculate AVG. Change it if it not.
3. How To Use?//图片显示问题已修复,硬件使用方法已放到小节头(即插即用,自动判断室内外)
3.1 Outdoor_signal dashboard
Outdoors_signal supports viewing both the signal coverage of a single gateway and the combined coverage of all gateways.
3.1.1 Create the gateway layer.
This solution is pre-configured. Under normal circumstances, when the device successfully uploads information through gateways, it will automatically generate the corresponding assets and put them in the Layer.
The layer will be named after the gateway's IMEI, and you can set a label. At the same time, there will be a dashboard that collects all gateway signals and displays them in an overlay named after the user's registered email address.
The following are special cases:
1.Can't see new gateway layers:
Click the center button on the right to add a gateway layer. (Please create all devices that can accept the current LA66 USB LoRaWAN Adapter frequency band; otherwise, the received data will not be displayed.)
For example, here we created a gateway with the ID a84041fdfe27e8fa
You can click here to modify the gateway layer ID (it must correspond one-to-one with the gateway ID that will receive the data).
👉
By the way, you can click here to delete the gateway layer.
Click row of gateway layer will turn to the detail page, this page will be blank before gateway upload data.
👉
Click the top-left corner to return.
2.Can't see new gateway layers, and displayed "Asset with such name already exists!":
Turn to Assets to have a check weather it profiles is "Outdoors_signal" or "AL_Zone" .
If not, have a set.
3.1.2 Measuring
Insert the LA66 USB LoRaWAN Adapter into phone or tablet, press the button to switch to ON and start detection. Click the button in the top-right corner of the main page to start receiving data. Data will be uploaded every 6 seconds based on the tablet's location. Simply move the tablet to measure signal strength from different places.
👇
When the gateway received the first set of data, the current gateway will appear in the left-side list of the gateway interface. When received the second set of data, the current signal strength will be displayed on the right-side map.
The measured data will be displayed in translucent dots of different colors, green represents a good signal, and red represents a poor signal.
You can click here to edit the device remarks.
You can click here to delete the device (deletion is irreversible, please proceed with caution).
All data collected by the gateways will also be displayed in All_signal simultaneously.
3.1.3 Turn OFF to stop measuring
Once the current location's detection is complete, press the button again to switch to OFF and pause detection.
👇
3.2 Indoors_signal dashboard
Indoors_signal supports measuring and marking the signal strength of all locations on the indoor floor plan.
3.2.1 Import the map
Drag the map image here and click √ to import.
3.2.2 Measuring
1.Mark on map where you want to measuring than click Yes.
2.Move to the measurement point, insert the LA66 USB LoRaWAN Adapter , and press the button to switch to ON, then you can see the new data renewing.
3.Mark the next place which to be measured than move to the measurement point.Repeat the above steps to measure(Remeber: Mark point before move.)
4.Click button to Off to stop measuring.
3.2.3 Delete point
Click the marking points, then click yes.
4. Use of Tablet
For added convenience, you can use a tablet to access the platform.