iot

阿里云IOT C-SDK 源码分析系列(3):IOT_Linkkit_Connect 接口源码分析

♀尐吖头ヾ 提交于 2020-02-08 10:07:50
从字面意思也能看出 该函数是 设备 向 云服务器 发起连接的功能函数,但是“连接”功能知识它的主要功能,它还实现了一些其他的参数初始化,比如特别重要的 底层 HAL 接口函数的绑定。该函数 原型如下: IOT_Linkkit_Connect 原型 int IOT_Linkkit_Connect(int devid); 接口说明 对于主设备来说, 将会建立设备与云端的通信. 对于子设备来说, 将向云端注册该子设备(如果需要的话), 并添加主子设备拓扑关系 参数说明 参数 数据类型 方向 说明 devid int 输入 设备ID 返回值说明 值 说明 0 成功 < 0 失败 我们还是通过树形结构来分析一下 网关主设备调用 该函数的实现原理: 简单概括的说,IOT_Linkkit_Connect 函数的关键功能是: 1、找到 _mqtt_connection 的地址。 2、执行_mqtt_connection 的 _mqtt_connect 函数,而_mqtt_connect 函数的功能主要有: ① 通过 IOT_MQTT_Construct 实现底层HAL 接口函数的 绑定,并且将 HAL函数集指针 赋值给 全局变量 g_mqtt_client ② 将绑定的底层HAL接口函数集指针 再赋值给 _mqtt_connection->context ③ 然后调用底层 HAL 接口的 TCP

如何在Raspberry Pi 3B中安装Windows 10 IoT Core

蓝咒 提交于 2020-02-08 00:22:36
Windows 10 IoT Core简介 Windows 10 IoT 是微软专门为物联网生态打造的操作系统,Windows 10 IoT Core则是Windows 10 IoT 操作系统的核心版本,功能相对精简。使用Windows 10 IoT可以打造属于自己的物联网生态系统。 Windows 10 IoT的版本介绍 Windows 10 IoT 企业版 Windows 10 IoT 企业版将 Windows 10 企业版功能广泛应用于零售、制造、医疗、金融和其他行业的设备上。Windows 10 IoT 企业版设备运行功能强大的业务线应用并以安全、可靠且简化的方式执行专用功能,以支持关键任务型行业设备。 Windows 10 IoT 企业版同时支持通用 Windows 应用和经典 Windows 应用,还提供很多创新性功能:针对现代安全威胁的高级保护,充分的部署灵活性、更新选项和支持选项,以及全面的基础结构、设备和应用管理功能。对于需要可管理性、一致性和可预测性的公司,请选择 Windows 10 IoT 企业版和 Windows 10 企业版。 Windows 10 IoT 移动企业版 Windows 10 IoT 移动企业版为需要自然的用户体验以及企业级安全和可管理性的业务线移动设备提供 Windows 10 移动企业版的功能。它即时的应用访问

IOT设备连接上云

 ̄綄美尐妖づ 提交于 2020-02-06 12:46:36
如何让我的设备连接上云?参考如下路径。 云 物联网平台 创建产品 定义物模型 Topic定义 创建设备 设备端开发 虚拟设备调试 真实设备开发 规则引擎 数据流转 场景联动 设备管理 云端开发 设备分组 文件管理 子设备管理 服务端订阅 数据解析 监控运维 IoT Studio Web可视化开发 移动可视化开发 服务开发 数据分析 数据开发 数据管理 IoT数据存储 其他数据源接入 流数据分析 空间可视化 二维数据可视化 三维数据可视化 端 Link Kit SDK 选择设备类型和连接方式 WiFi设备 以太网设备 蜂窝网设备 子设备通过网关代理连云 DTU 选择需要的SDK C Java Python NodeJS Android iOS AliOS Things 获取源码 选择开发方式 使用IAR开发 使用Keil MDK开发 使用AliOS Studio开发 使用Docker开发 使用命令性工具开发 管 Link WAN 购买LoRa认证网关 注册网关 创建凭证 分享网络 通过物联网平台关联LoRaWAN节点 物联网平台 创建产品 定义物模型 购买LoRa认证设备 边 创建边缘实例和网关 生成下载命令 本地登录网关,复制命令,一键下载配置并启动Link IoT Edge 边缘实例查看网关状态 子设备接入 函数计算 云端函数计算 边缘函数计算 边缘流数据分析 消息路由 场景联动

How to get event for different baudrate?

巧了我就是萌 提交于 2020-02-04 22:19:57
问题 I am working on native android application. In this application I am connecting hardware devices using usb cable, for this connection I used below library: https://github.com/felHR85/UsbSerial I have 3 different hardware devices and each device has different baudrate. I have one scan button in app. If user click on it then I need to check which device is connected and print its information. To implement this, I create 3 methods. Each method have same code with different baudrate. When user

How to get event for different baudrate?

人走茶凉 提交于 2020-02-04 22:18:32
问题 I am working on native android application. In this application I am connecting hardware devices using usb cable, for this connection I used below library: https://github.com/felHR85/UsbSerial I have 3 different hardware devices and each device has different baudrate. I have one scan button in app. If user click on it then I need to check which device is connected and print its information. To implement this, I create 3 methods. Each method have same code with different baudrate. When user

华为物联网操作系统LiteOS内核教程02-HelloWorld

↘锁芯ラ 提交于 2020-01-27 06:47:52
1. 创建HelloWorld工程 打开IoT Studio,点击创建IoT Studio工程: 填写工程设置,需要注意一下几点: 工程名称和目录中不可以有中文或者空格 SDK版本选择 最新 的IoT_LINK版本,当前最新1.0.0 硬件平台选择 STM32L431RC_BearPi 示例工程选择 hello_world_demo 创建完成之后进入IoT Studio界面如图: 2. IoT_LINK SDK 在创建工程时,会选择 SDK 版本,如图: Huawei IoT link SDK Huawei IoT link SDK(下文统一简称SDK)是部署在具备广域网能力、对功耗/存储/计算资源有苛刻限制的终端设备上的轻量级互联互通中间件,您只需调用API接口,便可实现设备快速接入到物联网平台以及数据上报和命令接收等功能。 SDK提供端云协同能力,集成了MQTT、LwM2M、CoAP、mbedtls、LwIP 全套 IoT 互联互通协议栈,且在这些协议栈的基础上,提供了开放 API,用户只需关注自身的应用,而不必关注协议内部实现细节,直接使用SDK封装的API,通过连接、数据上报、命令接收和断开四个步骤就能简单快速地实现与华为OceanConnect云平台的安全可靠连接。使用SDK,用户可以大大减少开发周期,聚焦自己的业务开发,快速构建自己的产品。 SDK和LiteOS的关系

Implementing IoT PowerBI table schema

一世执手 提交于 2020-01-25 01:56:07
问题 I'm currently implementing an IoT solution that has a bunch of sensors sending information in JSON format through a gateway. I was reading about doing this on azure but couldn't quite figure out how the JSON scheme and the Event Hubs work to display the info on PowerBI? Can I create a schema and upload it to PowerBI then connect it to my device? 回答1: there's multiple sides to this. To start with, the IoT ingestion in Azure is done tru Event Hubs as you've mentioned. If your gateway is able to

GCP IoT connection Timeout - 10s

 ̄綄美尐妖づ 提交于 2020-01-25 00:24:07
问题 I'm using GCP for my IoT project. I'm trying to connect to IoT Core but the server has a 10s timeout. I connects with use GSM network so is very slow and I can't make transaction in 10s with using TLS protocol. Is possible to change timeout for more time than 10s? Best regards! Patryk 来源: https://stackoverflow.com/questions/58505252/gcp-iot-connection-timeout-10s

Google IoT - Right mode to receive notifications (subscribe working)

跟風遠走 提交于 2020-01-24 01:05:29
问题 I am following this tutorial and I already have my code publishing messages to /devices/sm1/events topic, in which sm1 is my device id. I would like to know how to subscribe to this topic since the tutorial says to use /devices/sm1/config but I am getting empty messages. I already tried use the same "path" used in publishing ( /devices/sm1/events ), but it also did not work. It is strange that the name I gave to the topic was sm1 and the topic associated to my device is on GoogleIoT console

【目录】《国内物联网平台》和《国外物联网平台》系列文章

柔情痞子 提交于 2020-01-23 10:25:20
现将《国内物联网平台》和《国外物联网平台》系列文章的标题整理如下。 国内 (1) 百度物接入IoT Hub (2) 阿里云物联网套件 (3) QQ物联·智能硬件开放平台 (4) 京东微联 (5) 机智云IoT物联网云服务平台及智能硬件自助开发平台 (6) 庆科云FogCloud (7) Ablecloud物联网自助开发和大数据云平台 (8) 中移物联网开放平台OneNet (9) 云智易物联网云平台 国外 (1) 亚马逊AWS IoT (2) 微软Azure IoT (3) IBM Watson IoT (4) Ayla Networks (5) Exosite Murano (6) Electric Imp (7) FogHorn (8) Telit 来源: https://www.cnblogs.com/ibrahim/p/iot-platform-outline.html