Arduino网络协议

问题描述 投票:0回答:1

我正在设计一个arduino板与服务器通信的应用程序。我理解我需要做的第一件事就是设计一个协议,但我不确定如何去做。功能描述如下所示

Arduino将与服务器通信。当RFID标签放置在arduino上时,Arduino必须立即启动与服务器的通信,这将完成,以便服务器打开其数据库,搜索给定的标签,然后根据其中的特权对其进行分类。服务器。即,它将在数据库中搜索给定标记的表,一旦找到,它必须识别标记所在的表,并为arduino提供必要的权限。然后,服务器将向arduino板发送响应,然后关闭连接。所以我想出了协议

 1)Initiation of communication
 2)If Communication is successful,
 arduino sends the received tag to the server and if  not a signal is
 shown on the arduino to state that connection was not feasible.
 3)Server receives the tag, and uses it to verify priviledges and then
  sends a yes or no to the arduino 
  4)Arduino closes communication

我不确定我能否认为这是我的协议或协议设计我需要进一步完善。任何帮助将得到真正的赞赏

arduino protocols network-protocols
1个回答
0
投票

enter image description here

使用Above System体系结构进行开发,您可以使用MFRC512模块从RFID读取信息并使用arduino处理它并将其传递给服务器或云。你可以使用arduino以太网盾或wifi接口与你的服务器进行通信。我想这会对你有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.