Alexa Enabled IoT Device Simulation Using C# And AWS Lambda

Sudip Chakraborty, P. S. Aithal
{"title":"Alexa Enabled IoT Device Simulation Using C# And AWS Lambda","authors":"Sudip Chakraborty, P. S. Aithal","doi":"10.47992/ijcsbe.2581.6942.0305","DOIUrl":null,"url":null,"abstract":"Purpose: Nowadays, device operation using voice commands is becoming popular. Several voice command services are available. Among them, Alexa from Amazon is the most popular. Almost Every day, vendors are integrating Alexa into their new products worldwide. We need physical devices for the device operation or understanding of the process flow of Alexa. Sometimes, physical devices are costly, or availability is poor. Here, we demonstrated how to create a simulated Alexa-enabled IoT device. We used several Amazon cloud services to execute the process flow. Alexa's skill is developed inside the Alexa developer console. To process the command, we use the AWS Lambda function. AWS IoT cloud service is used to trigger IoT devices over MQTT. For simulated devices, we are using a C# MQTT client. The researcher trying to simulate an Alexa-enabled device into their project can get some reference information from this work. Design/Methodology/Approach: We create a graphical user interface (GUI) to interact with the user or display the device's status. The GUI is connected with the C# AWS IoT Device Shadow client. We created IoT Things in the AWS cloud. Under the IoT Shadow, we created a Device shadow. The Alexa service triggers the lambda function. The Lambda function updates the Shadow register, which resides inside the cloud. The c# shadow client receives a notification when the device Shadow updates and updates the GUI element that represents the equipment. We can use any Alexa device to send voice commands, like the Alexa mobile app, Echo Dot, or Alexa PC app. Findings/Result: Through this research work, we created and tested virtual devices that can be experiments or research work using Alexa voice commands. It has been tested for a long time. It performed well, and no issue was found. Using more code-level protection it can be robust for practical implementation. Originality/Value: We found several fragmented documents over the web to implement Alexa-enabled virtual devices. After lots of study, we did practical and included the procedure in this research work. From voice input to load trigger, there are lots of steps involved. The complete guidance is not available easily. So through this research work, if someone follows, they can easily create a voice-operated device. This research work may add value to the researcher experimenting with the Alexa command-activated device. Paper Type: Experimental-based Research.","PeriodicalId":470158,"journal":{"name":"International journal of case studies in business, IT, and education","volume":"28 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-09-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International journal of case studies in business, IT, and education","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.47992/ijcsbe.2581.6942.0305","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Purpose: Nowadays, device operation using voice commands is becoming popular. Several voice command services are available. Among them, Alexa from Amazon is the most popular. Almost Every day, vendors are integrating Alexa into their new products worldwide. We need physical devices for the device operation or understanding of the process flow of Alexa. Sometimes, physical devices are costly, or availability is poor. Here, we demonstrated how to create a simulated Alexa-enabled IoT device. We used several Amazon cloud services to execute the process flow. Alexa's skill is developed inside the Alexa developer console. To process the command, we use the AWS Lambda function. AWS IoT cloud service is used to trigger IoT devices over MQTT. For simulated devices, we are using a C# MQTT client. The researcher trying to simulate an Alexa-enabled device into their project can get some reference information from this work. Design/Methodology/Approach: We create a graphical user interface (GUI) to interact with the user or display the device's status. The GUI is connected with the C# AWS IoT Device Shadow client. We created IoT Things in the AWS cloud. Under the IoT Shadow, we created a Device shadow. The Alexa service triggers the lambda function. The Lambda function updates the Shadow register, which resides inside the cloud. The c# shadow client receives a notification when the device Shadow updates and updates the GUI element that represents the equipment. We can use any Alexa device to send voice commands, like the Alexa mobile app, Echo Dot, or Alexa PC app. Findings/Result: Through this research work, we created and tested virtual devices that can be experiments or research work using Alexa voice commands. It has been tested for a long time. It performed well, and no issue was found. Using more code-level protection it can be robust for practical implementation. Originality/Value: We found several fragmented documents over the web to implement Alexa-enabled virtual devices. After lots of study, we did practical and included the procedure in this research work. From voice input to load trigger, there are lots of steps involved. The complete guidance is not available easily. So through this research work, if someone follows, they can easily create a voice-operated device. This research work may add value to the researcher experimenting with the Alexa command-activated device. Paper Type: Experimental-based Research.
使用c#和AWS Lambda进行Alexa支持的物联网设备模拟
用途:如今,使用语音命令操作设备越来越流行。有几种语音命令业务可用。其中,亚马逊的Alexa是最受欢迎的。几乎每天都有供应商将Alexa集成到他们的新产品中。我们需要物理设备来进行设备操作或理解Alexa的流程。有时,物理设备很昂贵,或者可用性很差。在这里,我们演示了如何创建一个模拟的支持alexa的物联网设备。我们使用了几个Amazon云服务来执行流程流。Alexa的技能是在Alexa开发者控制台开发的。为了处理该命令,我们使用AWS Lambda函数。AWS物联网云服务用于通过MQTT触发物联网设备。对于模拟设备,我们使用c# MQTT客户机。试图在他们的项目中模拟启用alexa的设备的研究人员可以从这项工作中获得一些参考信息。设计/方法/方法:我们创建一个图形用户界面(GUI)来与用户交互或显示设备的状态。GUI与c# AWS IoT Device Shadow客户端连接。我们在AWS云中创建了物联网。在物联网阴影下,我们创建了一个设备阴影。Alexa服务触发lambda函数。Lambda函数更新位于云中的Shadow寄存器。当设备影子更新并更新表示设备的GUI元素时,c#影子客户端会收到通知。我们可以使用任何Alexa设备来发送语音命令,如Alexa移动应用程序,Echo Dot或Alexa PC应用程序。发现/结果:通过这项研究工作,我们创建和测试了虚拟设备,可以使用Alexa语音命令进行实验或研究工作。它已经经受了很长时间的考验。它运行良好,没有发现任何问题。使用更多的代码级保护,对于实际实现来说,它可以是健壮的。原创性/价值:我们在网上找到了一些分散的文档来实现支持alexa的虚拟设备。经过大量的研究,我们进行了实践,并将该程序纳入了本研究工作。从语音输入到加载触发,涉及到很多步骤。完整的指导并不容易得到。所以通过这项研究工作,如果有人跟踪,他们可以很容易地创造一个语音操作的设备。这项研究工作可能会为实验Alexa命令激活设备的研究人员增加价值。论文类型:实验研究。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信