Arduino网络协议

时间:2013-11-28 19:20:36

标签: arduino protocols network-protocols

我正在设计一个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

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

1 个答案:

答案 0 :(得分:0)

enter image description here

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