虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

multi-Protocol

  • 基于RS-485总线的MODBUS通信协议在单片机上的实现

    以仓库智能改造为背景,主要介绍单片机和上位机之间通信网络和通信协议的选择,MODBUS协议通信指令和功能码使用,重点阐述了基于RS-485总线的MODBUS通信协议在上位机和单片机之间的串行通信,实现上位机对单片机设备的远程控制和信息采集的功能。Based on the intelligent warehouse transformation as the background,mainly introduces between MCU and PC communication network and the choice of communication protocol,instruction and the function code using the MODBUS protocol communication,expounds the MODBUS communication protocol based on RS-485 bus serial communication between PC and single chip microcomputer,PC remote control of single chip computer equipment and the function of information collection.

    标签: RS-485总线 modbus 单片机

    上传时间: 2022-03-26

    上传用户:

  • 多功能电子药箱的设计与实现

    基于药物治疗在临床治疗中的重要性,分析目前服药提醒装置存在的不足,以STM32F103VET6单片机为控制核心,设计了一种多功能电子药箱。该系统包括显示模块、语音模块和数据存储模块。显示模块通过触摸屏电路和LED指示灯电路,与语音模块相配合,实现了服药提醒及指导的功能;数据存储模块通过EEPROM存储电路,能够实现掉电时服药信息不丢失的功能。并且为了实现电子药箱的智能化控制,开发了手机APP,两者之间可通过WIFI进行数据通信。经测试,该药箱能够有效地帮助慢性病患者按时、定量、正确服用药物,适合在家庭中推广使用,具有较高的应用价值和实践意义。Based on the importance of drug therapy in clinical treatment, this paper analyzes the shortcomings of current drug reminder devices, and designs a multi-function electronic medicine box with STM32 F103 VET6 microcontroller as the control core. The system includes a display module, a voice module, and a data storage module. The display module cooperates with the voice module through the touch screen circuit and the LED indicator circuit to realize the function of reminding and guiding the medicine;the data storage module can realize the function of not losing the medication information when the power is off through the EEPROM storage circuit.After testing, the medicine box can effectively help chronic diseases patients to take drugs on time, in a quantitative and correct manner,and is suitable for popularization in the family, and has high application value and practical significance.

    标签: 电子药箱

    上传时间: 2022-03-27

    上传用户:

  • 基于51单片机的多功能智能遥控窗帘的设计

    多功能智能遥控窗帘系统广泛地应用于家居、办公室等场合,同时也是智能家居的一部分。该设计主要利用STC89C52单片机核心电路、光敏电阻电路、步进电机电路、温湿度传感器、红外线控制电路、AD转换电路、LCD1602液晶显示屏等模块完成精确控制窗帘的开和关。multi-functional intelligent remote control curtain system is widely used in home,office and other occasions,and is also part of intelligent home.The design mainly uses STC89 C52 single-chip core circuit,photosensitive resistor circuit,stepping motor circuit,temperature and humidity sensor,infrared control circuit,AD conversion circuit,LCD1602 LCD display and other modules to achieve accurate control of the curtain opening and closing.

    标签: 51单片机 智能遥控窗帘

    上传时间: 2022-03-28

    上传用户:

  • HDMI 2.0 Spec

    HDMI-Definition Multimedia Interface Specification Version 2.0This document constitutes the Version 2.0 specification for the High-Definition Multimedia Interface (HDMI Specification Version 2.0). This Specification incorporates HDMI Specification Version 1.4b by reference and defines additional and improved functionality. Mechanical, behavioral, and protocol requirements necessary for compliance are described for Sources, Sinks, Repeaters, and Cables.

    标签: hdmi

    上传时间: 2022-04-22

    上传用户:

  • 51单片机控制智能温控风扇多档调节

    说明:  51单片机控制智能温控风扇,多档调节,pwd调速。包含源码和电路图(51 single chip computer control intelligent temperature control fan, multi-stage adjustment, PWD speed regulation. Contains source code and circuit diagrams)

    标签: 51单片机 智能控制

    上传时间: 2022-05-17

    上传用户:

  • FreeModbus 英文资料

    If register should be written or read.This value is passed to the calback functions which support either reading or writing register values. Writing means that the application registers should be updated and reading means that the modbus protocol stack needs to know the current register values.See also: eMBRegHoldingCB(), eMBRegCoilsCB(), eMBRegDiscreteCB() and eMBReglnputCB().Enumeration values: MB_REG_READ Read register values and pass to protocol stack.MB_REG_WRITE Update register values.Note: Note all ports implement this function.A port which wants to get an callback must define the macro MB_PORT_HAS_CLOSE to 1.Returns: If the resources where released it return eMBErrorCode:: MB_ENOERR. If the protocol stack is not in the disabled state it returns eMBErrorCode:: MB_EILLSTATE.Examples: LINUX/demo.c, MCF5235TCP/demo.c, STR71XTCP/demo.c, WIN32/demo. cpp, and WIN32TCP/demo. cpp.his function disables processing of Modbus frames.Returns: If the protocol stack has been disabled

    标签: FreeModbus

    上传时间: 2022-05-31

    上传用户:

  • LWIP的底层结构

    Lwip协议栈的实现目的,无非是要上层用来实现app的socket编程。好,我们就从socket开始。为了兼容性,lwip的socket应该也是提供标准的socket接口函数,恩,没错,在src\inc lude\lwip\socket.h文件中可以看到下面的宏定义:#if LWIP COMPAT SOCKETS#define accept(a,b,c)Iwip accept(a,b,c)#define bind(a,b,c)Iwip bind(a,b,c)#define shutdown(a,b)Iwip shutdown(a,b)#define closesocket(s)Iwip close(s)好,这个结构先不管它,接着看下get socket函数的实现【也是在src\api\socket.c文件中】,在这里我们看到这样一条语句sock =&sockets[s];很明显,返回值也是这个sock它是根据传进来的序列号在sockets数组中找到对应的元素并返回该元素的地址。好了,那么这个sockets数组是在哪里被赋值了这些元素的呢?进行到这里似乎应该从标准的socket编程的开始,也就是socket函数讲起,那我们就顺便看一下。它对应的实际实现是下面这个函数Int Iwip socket(int domain,int type,int protocol)【src\api\socket.c】这个函数根据不同的协议类型,也就是函数中的type参数,创建了一个netconn结构体的指针,接着就是用这个指针作为参数调用了alloc socket函数,下面具体看下这个函数的实现

    标签: lwip 底层结构

    上传时间: 2022-06-19

    上传用户:aben

  • 基于FreeRTOS和LwIP的SNTP设计

    网络时间协议NTP(Network Time Protocol)是由RFC 1305定义的时间同步协议,用来在分布式时间服务器和客户端之间进行时间同步.NTP采用UDP进行数据传输,端口号为123,可提供了1~50 ms的精确度,精确度取决于同步源和网络路径等特性(简单网络时间协议SNTP(Simple Network Time Pro-tocol)是一个简化了的NTP服务器和NTP客户端策略,SNTP在协议实现上没有什么更改,在最近也不会有什么变动。访问范例与UDP/TIME协议是一致的,实际上,SNTP应该更容易适用于使用个人计算机的UDP/TIME客户,而且SNTP也被设计在一个专门的服务器(包括一台集成的无线电时钟)上操作.SNTP主要通过同步算法来交换时间服务器和客户端的时间截,从而估算出数据包在网络上的往返延迟,进而独立地估算系统的时钟偏差.SNTP报文格式如图1所示。

    标签: freertos lwip sntp

    上传时间: 2022-06-23

    上传用户:20125101110

  • 全面掌握VisualC#实现UDP协议

    一,走进UDP协议:UDP(User Datagram Protocol)协议就是“用户数据报协议”,它是一种无连接的协议,无连接主要是和TCP协议相比较的。我们知道当利用TCP协议传送数据的时候,首先必须先建立连接(也就是所谓的握手)才可以传输数据。而当计算机利用UDP协议进行数据传输的时候,发送方只需要知道对方的IP地址和端口号就可以发送数据,而并不需要进行连接。当然如果你非要进行连接,通过Visual C#也是可以实现的,但前提是要确定连接的远程主机的端口号处于监听状态,否则程序会出现不必要的错误,但这是种画蛇添足的做法,不仅丢失了UDP协议的无连接传送数据的特点和优点,而且还给程序运行带来了不安定的因素。所以这种方法并不值得提倡。

    标签: visual c# udp协议

    上传时间: 2022-06-23

    上传用户:

  • TCP-IP Socket网络编程

    Internet-“冷战”的产物-1957年10月和11月,前苏联先后有两颗“Sputnik”卫星上天-1958年美国总统艾森豪威尔向美国国会提出建立DARPA(Defense Advanced Research Project Agency),即国防部高级研究计划署,简称ARPA-1968年6月DARPA提出“资源共享计算机网络”(Resource Sharing Computer Networks),目的在于让DARPA的所有电脑互连起来,这个网络就叫做ARPAnet,即“阿帕网”,是Interne的最早雏形早期的ARPAnet使用网络控制协议(Network Control Protocol,NCP),不能互联不同类型的计算机和不同类型的操作系统,没有纠错功能1973年由Kahn和Vinton Cerf两人合作为ARPAnet开发了新的互联协议。1974年12月两人正式发表第一份TCP协议详细说明,但此协议有信包丢失时不能得到有效的纠正TCP协议分成了两个不同的协议:-用来检测网络传输中差错的传输控制协议TCP-专门负责对不同网络进行互联的互联网协议IP从此TCP/IP协议诞生1983年ARPAnet上停止使用NCP,互联网上的主机全部使用TCP/IP协议,TCP/IP协议成为Internet中的“世界语”

    标签: TCP-IP

    上传时间: 2022-06-23

    上传用户: