我正在设计一个应用程序,在这个应用程序上,arduino板与服务器进行通信。我知道我需要做的第一件事就是设计一个协议,但我不太确定该如何去做。该功能的说明如下所示
Arduino将与服务器通信。当RFID标签放置在arduino上时,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我不知道我是否可以得出结论,这是我的协议,或在协议设计,我需要进一步完善。任何帮助都将是非常感谢的
发布于 2017-12-20 13:40:34

使用以上系统架构进行开发,您可以使用MFRC512模块读取来自RFID的信息,并使用arduino对其进行处理,并将其传递给服务器或云。您可以使用arduino以太网屏蔽或wifi接口与您的服务器进行通信。我想这会对你有帮助。
https://stackoverflow.com/questions/20273452
复制相似问题