taggles corella模块的客户端库
corella_lib的Python项目详细描述
科雷拉
Corella低功耗广域网(LPWAN)模块允许开发人员将一系列物联网设备连接到Taggle网络。
Taggle网络是一种基于澳大利亚在916-928MHz低干扰潜在设备(LIPD)级许可频段内运行的世界领先技术的LPWAN解决方案,Taggle Systems开发了该解决方案,以提供可用的最低成本、最低功耗、最长距离和最高容量的LPWAN解决方案之一。Taggle网络基于从端点节点到Taggle接收器网络的单向传输,特别适合于具有低数据速率要求的电池供电端点应用,例如自动抄表、用于智能农业和环境监测的无线传感器,以及对成本敏感的智能城市应用。
Corella基于流行的XBEE模块格式,并提供一个带有简单的“AT”命令式接口的串行端口,以便将模块快速集成到实验室原型和批量生产的物联网设备中。该模块有一个通过形状记忆合金连接器的单一无线电发射输出,并可以提供一个2DBI波偶极子天线,使快速连接到标签网络。
所有接收功能都由taggle网络无缝地处理,用户的接收数据通过一个定制的web门户呈现。根据连接到标记网络的端点数量和每个端点的消息频率,可以使用一系列数据计划。
要求
corella_u lib需要python>;=3.5。
用法
# Import Corellafromcorella_lib.serialimportCorella# Initialize Corellacorella=Corella('<device-port-goes-here>')# Send a message through Taggle network with packet IDcorella.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.connectedTrue
# 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.battery3.21
# Get device current temperature in degrees Celsius>>>corella.curr_temp58.0
# Get device max temperature in degrees Celsius>>>corella.max_temp58.0
# Get device min temperature in degrees Celsius>>>corella.min_temp31.0
# Turn off device LEDs>>>corella.turn_off_leds()True
# Turn on device LEDs>>>corella.turn_on_leds()True
文档
文档可在http://corella.taggle.com.au获得。