Taggles Corella模块的客户端库
项目描述
Corella
Corella低功耗广域网(LPWAN)模块允许开发者将一系列物联网设备连接到Taggle网络。
Taggle网络是一种基于世界领先的澳大利亚开发技术的LPWAN解决方案,在916-928MHz低干扰潜力设备(LIPD)许可频段中运行,由Taggle Systems开发,提供了一种成本最低、功耗最低、范围最广、容量最高的LPWAN解决方案。Taggle网络基于端点节点到Taggle接收网络的单向传输,特别适合于低数据速率要求、电池供电的端点应用,如自动抄表、智能农业和环境监测的无线传感器,以及成本敏感的智能城市应用。
Corella基于流行的XBee模块格式,提供了一种简单的“AT”命令风格的单个串行端口接口,以允许快速将模块集成到实验室原型和大量生产的物联网设备中。该模块通过SMA连接器具有单个无线电发射输出,并提供一个2dBi - 波瓣偶极天线,以实现快速连接到Taggle网络。
所有接收功能都由Taggle网络无缝处理,用户的接收数据通过自定义网络门户展示。根据连接到Taggle网络端点数量以及每个端点的消息频率,提供多种数据计划。
要求
corella_lib需要Python >= 3.5。
安装
要安装corella_lib,请使用pip
$ pip install corella_lib
使用方法
# Import Corella
from corella_lib.serial import Corella
# Initialize Corella
corella = Corella('<device-port-goes-here>')
# Send a message through Taggle network with packet ID
corella.send(<packet-id-goes-here>, '<12-bytes-data-goes-here>')
示例
# Initialize Corella
>>> corella = Corella('/dev/ttyAMA0')
# Send a message through Taggle network with packet ID 2
>>> corella.send(2, 'temp:23C')
True
# Check if the device is connected
>>> corella.connected
True
# Get device ID
>>> corella.id
'130065'
# Get device version information
>>> corella.version
{'F.W': '1.1.01', 'H.W': 'REV_A'}
# Get device firmware version
>>> corella.firmware_version
'1.0.31'
# Get device hardware version
>>> corella.hardware_version
'REV_A'
# Get device diagnostics information
>>> corella.diagnostics
{'CURR_TEMP': '32', 'BATT': '3.21V', 'MAX_TEMP': '58', 'MIN_TEMP': '31'}
# Get device supply voltage
>>> corella.battery
3.21
# Get device current temperature in degrees Celsius
>>> corella.curr_temp
58.0
# Get device max temperature in degrees Celsius
>>> corella.max_temp
58.0
# Get device min temperature in degrees Celsius
>>> corella.min_temp
31.0
# Turn off device LEDs
>>> corella.turn_off_leds()
True
# Turn on device LEDs
>>> corella.turn_on_leds()
True
文档
文档可在http://corella.taggle.com.au找到。
项目详情
关闭
corella_lib-0.2.1.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 4cc4292ff19275e7284c597e0679b0250272b38a1161403392f2312f73098f8a |
|
MD5 | 6632fe2861b12bc0eac3eabedefebf4c |
|
BLAKE2b-256 | 29b37c26c231807f443e7351e46ddfc49bad5eba976e3d93b9877032ebcc2937 |