iot

【阿里云IoT+YF3300】2.阿里云IoT云端通信Alink协议介绍

本秂侑毒 提交于 2020-01-02 09:29:13
如果单单只有MQTT协议,也许很难支撑起阿里这个IoT大厦。Alink协议的出现,不仅仅是数据从传感端搬到云端,它就如基因图谱,它勾画了一个大厦的骨架,有了它,才有了IoT Studio,才有了大数据分析,才有了后续的一切可能。 MQTT从我的角度来说,相当于以前编程思想中的面向过程,而Alink 的出现,则把编程思想由原来的面向过程带到了面向对象的时代。 最早了解Alink协议是在2017年年底,那个时候Alink协议才0.6版,仅有比较核心的功能,并且有些协议描述的,当时平台上还没有支持完善。不过不到一年多的时间,Alink协议越来越完善了,功能也越来越强大了。 最新的Alink协议,在阿里云物联网平台上的帮助页面,有比较详细的描述: https://help.aliyun.com/document_detail/90459.html?spm=a2c4g.11186623.6.660.4b969bb89pkGOd 。 为了便于初次接触Alink协议的人理解,我这里还是简要做一些说明。 在官方文档,Alink有一个比较明确的定义: Alink 协议是针对物联网开发领域设计的一种数据交换规范,数据格式是JSON,用于设备端和物联网平台的双向通信,更便捷地实现和规范了设备端和物联网平台之间的业务数据交互。 关于Alink协议有几个很重要的概念和内容需要熟悉。 第一个最最重要的概念就是

Azure IoT Hub Certificate

别来无恙 提交于 2020-01-01 14:57:41
问题 I'm trying to publish some data on the Azure IoT hub using Mqtt. I've succesfully published some data, using a SAS token. But my customer wants a x509 self generated & self signed certificate. Azure is supporting this, but doesn't give much information about it. (https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-security#supported-x509-certificates) A self-generated and self-signed X-509 certificate. A device manufacturer or in-house deployer can generate these certificates and

Azure IoT Hub Certificate

北慕城南 提交于 2020-01-01 14:57:30
问题 I'm trying to publish some data on the Azure IoT hub using Mqtt. I've succesfully published some data, using a SAS token. But my customer wants a x509 self generated & self signed certificate. Azure is supporting this, but doesn't give much information about it. (https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-security#supported-x509-certificates) A self-generated and self-signed X-509 certificate. A device manufacturer or in-house deployer can generate these certificates and

Intel Edison MRAA module not working

本小妞迷上赌 提交于 2019-12-30 18:23:07
问题 I recently downloaded the Intel XDK IOT version and used the LED pin 13 Blink sample. I then uploaded the program onto the Edison, but it came up with a few errors; One of them being that it could not find the MRAA module. The sample code that came with it was: main.js: var mraa = new require("mraa"); //require mraa console.log('MRAA Version: ' + mraa.getVersion()); //write the mraa version to the Intel XDK console var myOnboardLed = new mraa.Gpio(13); //LED hooked up to digital pin 13 (or

Ensure that target device has developer mode enabled. Could not obtain a developer license due to error

旧巷老猫 提交于 2019-12-30 17:23:53
问题 I am following this tutorial and get the following error: Severity Code Description Project File Line Suppression State Error DEP0100 : Please ensure that target device has developer mode enabled. Could not obtain a developer license due to error 800704C7. I am not sure how to do so in the Raspberry Pi 3 (which I have fed its public IP in front of Target Machine in the Debug tab of Properties in the solution explorer . I am debugging on the remote machine selecting ARM as the screenshot below

Ensure that target device has developer mode enabled. Could not obtain a developer license due to error

感情迁移 提交于 2019-12-30 17:22:22
问题 I am following this tutorial and get the following error: Severity Code Description Project File Line Suppression State Error DEP0100 : Please ensure that target device has developer mode enabled. Could not obtain a developer license due to error 800704C7. I am not sure how to do so in the Raspberry Pi 3 (which I have fed its public IP in front of Target Machine in the Debug tab of Properties in the solution explorer . I am debugging on the remote machine selecting ARM as the screenshot below

AWS IoT Android application over MQTT throws MqttException (0) - java.io.IOException: Already connected

依然范特西╮ 提交于 2019-12-30 10:19:28
问题 I am trying to use 'Authenticate using Cognito-Identity with Cognito user pool' in my Android application. My Cognito user pool authentication works well, when I run that separately and I had seen a JWTToken as well. When I run the the 'PubSub' sample application with Unauthenticated role, it worked as expected. When I integrate these two features in one application, the application threw following error. W/System.err: MqttException (0) - java.io.IOException: Already connected W/System.err:

树莓派连接阿里云物联网平台(nodejs)

淺唱寂寞╮ 提交于 2019-12-26 07:15:33
陈拓 chentuo@ms.xab.ac.cn 2019/12/14-2019/12/20 1. 阿里云物联网平台设置 见参考文档《阿里云物联网平台基本设置》 https://blog.csdn.net/chentuo2000/article/details/103559553 2. 在树莓派上安装Node.js LTS工具包 PC Win7操作树莓派3B+。 LTS官网描述,https://nodejs.org/en/about/releases/ Node.js的主要版本进入当前发布状态为六个月,这使库作者有时间为其添加支持。六个月后,奇数版本(9、11等)将不再受支持,而偶数版本(10、12等)将变为“活动LTS”状态,并可以用于一般用途。 LTS的发布状态为“长期支持”,通常可以保证关键错误在30个月内得到修复。生产应用程序应仅使用Active LTS或Maintenance LTS版本。 查看最新版本: https://nodejs.org/en/download/ 安装最新版本的Node.js LTS 先根据最新版本号执行命令: curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - …… 根据提示执行命令:sudo apt-get install -y nodejs 测试:node

Windows universal app Rest API Raspberry Pi

笑着哭i 提交于 2019-12-25 14:23:53
问题 I have Windows Core running on a Raspberry PI. How do I create a rest API in a Windows universal app to run on it? I want to be able send remote commands to the Raspberry PI from a mobile device. I did several search and couldn't find much information. Thanks. 回答1: As noted here there's a Restup open source project for this and NuGet package for it There's also some experimental (ie fun side project) from Damian on the ASP.NET team about hosting DNX (the host process for your ASP.NET Core

How to convert date time in hex in android

为君一笑 提交于 2019-12-25 10:50:32
问题 I need to convert date and time in hex code for writing it on IOT device. Here is my code private String getDateTimeToHexa() { Calendar mCalendar = Calendar.getInstance(); TimeZone gmtTime = TimeZone.getTimeZone(TimeZone.getDefault().getDisplayName()); mCalendar.setTimeZone(gmtTime); final Date date = mCalendar.getTime(); return Long.toHexString(date.getTime()); } It is returning 11 digits hex code I need 8 digits, just like date and time in hex is 47C7EDE0 for this date 12:34:56 29/Feb/2008