该项目将开发软件,该软件将从传感器中吸收患者阅读,并将其发送到主诊所,医生可以在这里查看数据并远程分析患者健康。我们将使用FTP协议和C#来实现这一目标。
- Visual Studio 2015 IDE
- FTP服务器
电路原理图
将按钮连接到Arduino uno Pin Number 7.使其向上拉并检测到按钮是否压低。
Technical Insights
The software collects the data from sensor and user inputs and then sends them the remote FTP files where a doctor can examine the details. Collecting the patient data is done using serial communication from Arduino, and sending the data to the FTP server is done using the FTP protocol.
In the background, data transfer and storing are done inside Excel files.
框图/算法
这个怎么运作
- Starting the software:
打开软件时,首先输入以下详细信息。
用户名:The particular username for the nursing staff
密码:上面用户名的密码
诊所名称:需要保存数据的诊所的名称。它是将保存FTP文件的远程位置。
设备端口:温度检测单元的端口号
Server address:It is the web address for the FTP server at which the files are stored.
- 下载FTP文件:
如果所有详细信息都是正确的,则该软件将打开,并且该特定诊所的FTP文件将下载到本地存储。
- 从病人那里获取细节
现在,软件用户可以从患者那里详细介绍,按下连接到Arduino的按钮,它将从传感器中读取并自动在详细信息部分中写入。
- 将详细信息提交给FTP服务器
当我们按“发送到医生”按钮时,详细信息将发送到FTP服务器并保存在那里,以便医生可以使用用户名“ sadmin”和密码“ 123”查看详细信息。
- Seeing the entries
Once the data is there, the doctor from anywhere can type the credentials and see the data present there.
Understanding the source code
可以在某些方面理解源代码。
项目中有三种形式。他们的描述如下。
(please see/download the complete software files attached at the end of the article)
登录CS
它处理系统中的登录并检查用户名和密码。另外,在后台,它将FTP文件下载到要通过软件访问的本地存储中。
下载FTP文件是在函数下载ftp函数中完成的,该函数从FTP函数称为。如果所有细节都正确,它将打开主页。
Homepage.cs
Taking the data from the Arduino UNO and sensor is done over serial communication.
Inside a callback function which gets active when any data is received at the serial port, we check for the data if it contains “temp:” then we accept the data and then store it in the software.
数据以这种格式存储在Excel文件中
Superadmin.cs
该表格用于显示存储在远程文件上的数据,该数据仅可供医生访问。它使用OLEDDB连接器,该连接器用于从数据库和Excel文件存储中提取数据。
然后在网格视图样式的表单内显示数据。
So, this is how we can use FTP communication to make a patient’s health register and use it in real life.
你也许也喜欢:
提交以下:1Manbetx ,,,,精选贡献
与本文有关的问题?
询问并讨论edaboard.comand电气技术在线.comforums.
Tell Us What You Think!!
你一定是登录to post a comment.