iot

UWP AppServiceConnection - SendResponseAsync returns AppServiceResponseStatus.Failure

一世执手 提交于 2019-12-08 12:48:28
问题 I'm trying to create a UWP service app on the Raspberry Pi3 which provides the access to the on board UART. I'm facing an issue about the AppConnection Request/response. this is the service method that handles the incoming requests from client apps internal class Inbound { public static async void OnRequestReceived(AppServiceConnection sender, AppServiceRequestReceivedEventArgs args) { var messageDeferral = args.GetDeferral(); var response = new ValueSet(); bool success = false; var msg =

MQTT connection consumes less power

纵饮孤独 提交于 2019-12-08 11:27:27
问题 MQTT is claimed to consume less power for keeping the connection open between broker and client. I believe application layer need not do anything special to persist a TCP connection and MQTT is an application layer protocol. So, how does MQTT improvises in this area? 回答1: HTTP(S) doesn't keep a connection open - so to get the "effect" of a continuous connection, the HTTPS client has to keep making poll requests, each of which involves creating the TCP connection and negotiating SSL/TLS

Mosquitto Secure MQTT connection

好久不见. 提交于 2019-12-08 07:29:12
问题 My Question is regarding TLS/SSL MQTT connection. I've installed moaquitto broker from this website. http://www.eclipse.org/mosquitto/download/ and done with simple subscribe/publish using paho eclipse library in java. then I created X509 certificates using bouncycastle in java. but now I am stuck at server configurations regarding these certificates.I need to use different certificates for different topics on same broker. What I found is the following mosquitto-auth-plug. https://github.com

IoT using Google Cloud Service IoT solutions (Weave): How to connect Raspberry Pi and lighting the LED?

感情迁移 提交于 2019-12-08 04:43:20
问题 I am trying to connect my raspberri pi with Google IoT Cloud solutions using Weave. I have done it already using AWS and IBM Bluemix, but could not find a way to do the same using Google Cloud. As per their documentation, it seems that some of the fies have been deprecated or not been updated. Moreover, they have been written in C language and I am not much of a C guy. I used Python for both the IBM Bluemix and AWS to connect my Pi to IoT and then establish the subscriber and exchange

AWS IoT login from android MQTT client using IAM is not working

纵饮孤独 提交于 2019-12-07 20:25:29
问题 I have been trying to connect my android application to AWS IoT portal. I have created an IAM account, which has a username and password. I have gone through the documentation but I could not see any proper guideline. I read somewhere that I can access the IoT devices through IAM/Cognito/using a certificate. Since I am an Android user I can't(I don't want to) use a device certificate. Can I use my IAM credentials to access my AWS IoT devices? I have downloaded all sample application and I

How JuBo Works: The Basics

倾然丶 夕夏残阳落幕 提交于 2019-12-07 14:41:37
JuBo是一个数据驱动、具有学习能力的物联网关。JuBo的目标是让智能设备快捷高效的联网。JuBo是开源的, 项目地址 ( https://github.com/jubolin) 这只是一个概述,更多内容请参见 JuBo Wiki 对于JuBo来说,所有的智能设备或者传感器都被定义为Thing,设备的功能被定义为Service,功能的属性定义为Property。Thing + Service + Property唯一确定了一个设备的某个功能属性,是JuBo中最小的控制单元。例如电灯提供了照明功能,有亮度和颜色两个属性,那么在JuBo中就表现为bulb + lighting + brightless和bulb + lighting + color两条记录。所有对这个电灯的管理、控制和智能都是基于这两条记录的。也就是说,JuBo所有的功能都是基于设备功能属性记录的,即数据驱动的。 智能设备接入 设备接入需要完成以下步骤: 确定设备对外提供的功能属性(这个工作在开发阶段完成) 设备通过对应物联网协议的Connector连接上JuBo 初始化并注册设备(设备描述、厂家描述等信息) 注册所有功能属性并订阅(Sub)设备本身的功能属性 功能属性记录保存在数据库中,数据库只能通过DDP Service操作 使用者控制设备 在Web页面或CLI修改某个功能属性 修改值保存到数据库中

Android Ble GATT_ERROR 133 getting often with samsung devices

浪尽此生 提交于 2019-12-07 11:56:46
问题 I am working on BLE Applications, I have tested with different devices like Nexus, Moto, Samsung, LG. I am getting the GATT Error 133 in Samsung Devices alone(Samsung A5 2016). Trying to connect 10 times it gets connected only 2 or 3 times.Please Help me out. 来源: https://stackoverflow.com/questions/40465373/android-ble-gatt-error-133-getting-often-with-samsung-devices

【IoT】窄带物联网NB-IoT技术基础浅析

断了今生、忘了曾经 提交于 2019-12-07 11:56:00
物联网时代虽然还未呈现爆发式增长,但各大企业均开始布局,而 NB-IoT 也应运而生,未来已来。 1、功能组网 NB-IoT模组设备端: 智能设备采用了 NB-IOT 芯片,它和中国电信物联网开放平台之间通过 CoAP 协议通讯; CoAP 报文的 payload 里是设备的应用数据。 APP 应用端: server 通过 http/https 协议和平台通讯,通过调用平台的开放 API 来控制设备,平台把设备上报的数据推送给应用服务器; 平台支持对设备数据进行协议解析,转换成标准的 json 格式数据。 2、整体业务 NB-IOT 系统主要包含 NB-IoT 设备、 NB-IOT 控制器、物联网开放平台、垂直行业应用 NB-IoT 设备: 通过无线网络连接到(电信或移动等)物联网开放平台,采用 CoAP 协议接入。将设备读数,告警等信息上报到平台,如水表、燃气表等。 NB-IOT 控制器: 实现对 NB-IoT 终端的移动性管理与会话管理;为 NB-IoT 终端建立用户面承载,传递上下行业务数据。 物联网开放平台: 实现对各种 NB-IoT 设备数据的统一管理,同时向第三方应用系统开放接口,让各种应用能快速构建自己的物联网业务。 垂直行业应用: 实现对 NB-IoT 设备的业务管理,包括业务发放、业务控制和呈现等, 由第三方基于(电信或移动)物联网开放平台开放接口进行开发。 来源

【IoT】物联网NB-IoT之电信物联网开放平台对接流程浅析

不问归期 提交于 2019-12-07 11:55:33
电信物联网开放平台对接流程如下图所示: 1、创建 APP 应用 登录中国电信物联网开放平台对接测试环境SP Portal( https://180.101.147.135:8843 ),初次登录需要修改初始密码。 选择【应用管理】->【应用】点击右上角“+创建应用”。 典型的 NB-IoT 应用的参数设置可参考如下设置: 所属行业: 公用事业(NB-IoT) 关联API包: 基础API包和公用事业(NB-IoT) API包 平台能力: 规则引擎 数据存储时间: 当超过了数据存储时间以后,应用将不能再获取到已上报的数据。 短信服务器: 使用户可以通过短信服务器实现与工程师的紧密联络。服务器可以选择平台已经支持的服务器之一,也可以选择第三方服务器。 邮件服务器: 使用户可以通过邮件服务器实现与工程师的紧密联络。服务器可以选择平台已经支持的服务器之一,也可以选择第三方服务器。 CA证书: 第三方应用通过HTTPS对接中国电信物联网开放平台时服务器下发的证书,用于身份识别和电子信息加密,实现双向认证。证书文件限制为不超过1M的PEM格式文件。当第三方应用通过HTTP对接中国电信物联网开放平台时,不需要上传CA证书。 2、设置 NB-IoT 参数 点击已经创建好的应用,并对NB-IoT参数进行设置。 目前平台支持设置如下三种模式: PSM模式: power saving mode,省电模式

IOT物联网导论复习

岁酱吖の 提交于 2019-12-07 11:55:04
复习物联网导论第一天 目录 1物联网概述 2感知识别: 3网络构建: 4管理服务 5综合应用: 一.名词解释: 1物联网概述 IOT: 物联网 ( Internet of Things ) WSN:无线传感器网络(Wireless Sensor Networks) RFID:射频识别技术(Radio Frequency Identification ) 2感知识别: RFID:射频识别技术(Radio Frequency Identification ) GPS: 全球定位系统 (Global Positioning System) PDA:掌上电脑(Personal Digital Assistant) 3网络构建: ISO: 国际标准化组织(International Organization for Standardization,ISO) MAC: 物理地址、硬件地址 (Media Access Control Address) IP:互联网协议地址(Internet Protocol) TCP:传输控制协议(Transmission Control Protocol) UDP:用户数据报协议(User Datagram Protocol) FTP:文件传输协议(File Transfer Protocol) HTTP: 超文本传输协议(HyperText Transfer