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

SIP-protocol

  • 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

    上传用户:

  • VB中基于TCP和UDP协议的通信编程技术

    0引言对于一个程序员,如果要从头开始完全由自己来编写一个用于通信的应用程序,必须对相关的网络协议及其它的一些底层技术有较深入的了解,编程难度比较大。Visual Basic(VB)为广大程序员提供了基于WindowsSockets网络编程接口的Winsock控件,它封装了所有繁琐的技术细节,并提供了访问TCP和UDP网络服务的方便途径,只需通过设置控件的属性并调用其方法就可轻易连接到一台远程计算机中,并且还可以实现双向交换数据。因此,利用VB的Winsock 控件来编写基于TCP和UDP协议的通信程序,可以降低编程难度,简化应用程序。1TCP和UDP协议介绍TCP和UDP是TCP/IP协议中的两个传输层协议,它们使用IP路由功能把数据包发送到目的地,从而为应用程序及应用层协议提供网络服务。TCP(Transmission Control Protocol,传输控制协议)是面向连接的协议。“面向连接”就是在正式通信前必须要与对方建立起可靠的连接,这就好象平时的打电话,必须等线路接通了、对方拿起话筒才能相互通话。一个TCP连接必须要经过三次“对话“才能建立起来,其中的过程非常复杂。UDP(User Data Protocol,用户数据报协议)是与TCP相对应的协议,是面向非连接的协议。“面向非连接”就是在正式通信前不必与对方先建立连接,不考虑对方状态就直接发送数据,这就好象平时的发手机短信,不必考虑对方状态,只需要输入对方手机号就行。TCP提供的是面向连接的、可靠的数据流传输,而UDP提供的是面向非连接的、不可靠的数据流传输。面向连接的协议在任何数据传输前就建立好了点到点的连接,面向非连接的协议在数据传输之前不建立连接,而是在每个中间节点对面向非连接的包和数据包进行路由。

    标签: tcp udp协议 通信

    上传时间: 2022-06-24

    上传用户:

  • 基于μc/os-ⅲ的freemodbus通信协议的实现

    摘要:介绍了以FreeModbus协议找在嵌入式抢占实时操作系统μC/OS-l的STM32平台上,成功实现了Modbus协议的移植。通过详细分析FreeModbus协议花并编写STM32F103VET6微处理器的底层驱动,成功实现了工业Modbus协议RTU和ASCll两种模式的通信功能。测试结果表明,在实际工业生产控制和仪表开发中,应用Freemodbus协议,完全符合工业数据采集、实时控制和数据处理等厂级重复性和精确度要求,在一定程度上降低了工业仪表开发的周期及成本。关键词:实时操作系统,uC/OS-ll,FreeModbus,Modbus协议,STM32Abstract:This paper introduces FreeModbus stack transplanted to the STM32 platform which has been embedded in the preemptive real-time operating system uC/OS-ll,in order that the transplantation of the Modbus protocol is successfuly im-plemented.The FreeModbus stack is analyzed in detail and STM32F103VET6 microprocessor underlying driver is writed,so that the two Modbus industrial communication function RTU and ASCll are successfully realized.Keywords:time operating system,uC/OS-ll,.FreeModbus,Modbus协议,STM32

    标签: freemodbus 通信协议

    上传时间: 2022-06-25

    上传用户:

  • UDP、TCP、RTP三种协议的总结

    1.RTP概述1.1,RTP是什么TP全名是Real-time Transport Protocol(实时传输协议)。它是IETF提出的一个标准,对应的 RFC文档为RFC3550(RFC1889为其过期版本).RFC3550不仅定义了 RTP,而且定义了配套的相关协议 RTCP(Real-time Transport Control Protocol,即实时传输控制协议)。RTP用来为IP网上的语音、图像、传真等多种需要实时传输的多媒体数据提供端到端的实时传输服务。RTP为Internet上端到端的实时传输提供时间信息和流同步,但并不保证服务质量,服务质量由RTCP来提供。1.2.RTP的应用环境RTP用于在单播或多播网络中传送实时数据。它们典型的应用场合有如下几个。(1)简单的多播音频会议。语音通信通过一个多播地址和一对端口来实现。一个用于音频数据(RTP),另一个用于控制包(RTCP)2)音频和视频会议。如果在一次会议中同时使用了音频和视频会议,这两种媒体将分别在不同的 RTP会话中传送,每一个会话使用不同的传输地址(IP地址+端口)。如果一个用户同时使用了两个会话,则每个会话对应的 RTCP包都使用规范化名字CNAME(Canonical Name)。与会者可以根据RTCP包中的CNAME来获取相关联的音频和视频,然后根据 RTCP包中的计时信息(Network time protocol)来实现音频和视频的同步。

    标签: udp tcp rtp

    上传时间: 2022-06-26

    上传用户:

  • 博通BCM43438KUBG正基同款AP6212sdio工业级wifi模块

    1. General Description BL-M3362NS1 product is designed base on Broadcom BCM43362 chipset. It operates at 2.4GHz band and supports IEEE802.11b/g/n 1T1Rwith wireless data rate up to 72.2Mbps. It supports IEEE802.11isafety protocol, along with IEEE802.11e standard service quality. It supports standard interfaces SDIOV2.0(50 MHz,4-bit and1-bit) and generic SPI(up to 50 MHz), Integrated ARM Cortex?-M3 CPUwith on-chip memory enables running IEEE802.11 firmware that can be field-upgraded with future features.2. The range of applying Imaging platforms(printers, digital still cameras, digital picture frames)Consumer electronic devices(DTV, DVDplayers, Blu-ray players. etc.)Gaming platforms Carinformation MiFi/Mobile Routes Smart PAD Set-TopBoxes

    标签: wifi

    上传时间: 2022-07-04

    上传用户:

  • 4G移动通信技术权威指南:LTE与LTE-Advanced.4G LTE.LTE

    PrefaceDuring the past years, there has been a quickly rising interest in radio access technologies for providingmobile as well as nomadic and fixed services for voice, video, and data. The difference indesign, implementation, and use between telecom and datacom technologies is also becoming moreblurred. One example is cellular technologies from the telecom world being used for broadband dataand wireless LAN from the datacom world being used for voice-over IP.Today, the most widespread radio access technology for mobile communication is digital cellular,with the number of users passing 5 billion by 2010, which is more than half of the world’s population.It has emerged from early deployments of an expensive voice service for a few car-borne users,to today’s widespread use of mobile-communication devices that provide a range of mobile servicesand often include camera, MP3 player, and PDA functions. With this widespread use and increasinginterest in mobile communication, a continuing evolution ahead is foreseen.This book describes LTE, developed in 3GPP (Third Generation Partnership Project) and providingtrue 4G broadband mobile access, starting from the first version in release 8 and through the continuingevolution to release 10, the latest version of LTE. Release 10, also known as LTE-Advanced,is of particular interest as it is the major technology approved by the ITU as fulfilling the IMTAdvancedrequirements. The description in this book is based on LTE release 10 and thus provides acomplete description of the LTE-Advanced radio access from the bottom up.Chapter 1 gives the background to LTE and its evolution, looking also at the different standardsbodies and organizations involved in the process of defining 4G. It also gives a discussion of the reasonsand driving forces behind the evolution.Chapters 2–6 provide a deeper insight into some of the technologies that are part of LTE and itsevolution. Because of its generic nature, these chapters can be used as a background not only for LTEas described in this book, but also for readers who want to understand the technology behind othersystems, such as WCDMA/HSPA, WiMAX, and CDMA2000.Chapters 7–17 constitute the main part of the book. As a start, an introductory technical overviewof LTE is given, where the most important technology components are introduced based onthe generic technologies described in previous chapters. The following chapters provide a detaileddescription of the protocol structure, the downlink and uplink transmission schemes, and the associatedmechanisms for scheduling, retransmission and interference handling. Broadcast operation andrelaying are also described. This is followed by a discussion of the spectrum flexibility and the associated

    标签: 4g 移动通信

    上传时间: 2022-07-08

    上传用户:

  • 霍尔元件 NHE313 技术手册

    This is a high sensitivity type of Nicera Hall element using evaporated InSbfilm.It performs effectively in low magnetic fields due to the high sensitivity.The input and output resistance values are suitable for transistor circuits.Sip type packageApplications    Brushless motorsPosition sensors, rotation sensors, current sensorsNon-contacting magnetic sensorsCurrent sensorsMagnetic flux sensors other than those above

    标签: nhe313 霍尔元件

    上传时间: 2022-07-26

    上传用户: