完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
我目前使用WiZNET 5500控制器在一个项目中发送电子邮件。它的工作量很大,大约有98%的吞吐量。在一个OULRODER项目中,我使用了keil的TCP/IP库包的Enc2J60。它一点也不好(这就是为什么我们更新我们的系统使用WiZNET)。如果只达到约50%的吞吐量。Keil帮不了多少忙,即使Wireshark显示他们的库中有某些东西正在丢弃ACKS,多次重试等等。他们不包括源代码(你可以买到,但是非常昂贵)。项目,并查看如何使用我的WiZNET代码作为起始点并编写自己的接口。到目前为止,我唯一坚持的就是模拟套接字。DNS使用53,DHCP使用67和68等等。由于Keil和Wiznet的所有套接字分配都在幕后,我如何对此进行编码?我只使用半双工,在那里我发送一个数据包,并等待响应(在每种情况下)。我不需要全双工。EnC芯片中的缓冲空间(0x000—0x1FFF)用于模拟套接字吗?我没有找到任何套接字或代码示例,在任何地方进行套接字仿真。看起来有些第三方库总是和ENC芯片一起使用,但是每个库都必须有实现套接字的代码。关于这一点有什么好的记录/信息吗?谢谢,Sutton
以上来自于百度翻译 以下为原文 I currently use a Wiznet 5500 controller to send emails in a project. It works great with about a 98% throughput. In one of our older projects, I used a ENC28J60 with Keil's TCP/IP library package. It doesn't work well at all (which is why we updated our system to use Wiznet). If only achieves about a 50% throughput. Keil wasn't much help, even though Wireshark showed that there was something going on in their library that was dropping ACKS, numerous retries, etc. They don't include source code (you can buy it - but outrageously expensive). With that said, I wanted to see about getting rid of Keil on this older project, and see about using my Wiznet code as a starting point and write my own interface. The only thing so far that I am stuck on is simulating sockets. DNS uses 53, DHCP uses 67 and 68, etc. Since all the socket allocations for both Keil and Wiznet are behind the scenes, how do I code this up? I'm only using half duplex, where I send out a packet, and wait for the response (in every case). I don't need full duplex. Is the buffer space (0x0000-0x1fff) in the ENC chip used to simulate sockets? I haven't found any writeups or code examples anywhere where the socket simulation is done. It seems like some 3rd party library is always used with the ENC chip, but each library must have code to implement the sockets. Any good writeups/information on this? Thanks. Sutton |
|
相关推荐
4个回答
|
|
你检查了TCPIP协议栈的演示应用程序了吗?对于PIC32,您可以同时使用V5.xx栈(来自最新遗留MLA)或V7.xx堆栈。对于PIC18和PIC24,您将被困在5.xx堆栈上。/ Ruben
以上来自于百度翻译 以下为原文 Have you checked the Demo App for the TCPIP stack? For PIC32 you can use both the v5.xx stack (from the latest legacy MLA) or the v7.xx stack with Harmony. For PIC18 and PIC24 you are stuck with the 5.xx stack. /Ruben |
|
|
|
我使用的是LPC2148而不是PIC。相同的堆栈可以实现吗?
以上来自于百度翻译 以下为原文 I'm using a LPC2148 not a PIC. Can the same stack be implemented? |
|
|
|
我很困惑。为什么你会从Wiznet切换到Enc2J60?您尝试使用现有硬件吗?如果您正在使用LPC2148上的现有硬件,那么将会有很多工作。您将需要从微芯片下载MLA库,http://www..hip.com/mplab/micro.-library for-application。2148。ENC28J60使用SPI连接,所以您需要重写文件WF_Spi.c中的SPI驱动程序以匹配硬件,并且还要更改定时器驱动程序以匹配硬件。Harmony堆栈紧密集成到微芯片CPU中,因此对于这个项目,我将远离它。
以上来自于百度翻译 以下为原文 I am confused. Why would you switch away from Wiznet to the ENC28J60? Are you trying to use existing hardware. If you are using existing hardware on the LPC2148 then it will be a lot of work. You will need to download the MLA library from microchip, http://www.microchip.com/mplab/microchip-libraries-for-applications Then you will need to split out the TCP-IP stack from the library, and recompile it for the LPC2148. The ENC28J60 uses a SPI connection so you will need to re-write the SPI driver in the file WF_Spi.c to match your hardware, and also change the timer driver to match your hardware. The Harmony stack is tightly integrated into the Microchip CPU, so I would stay away from it for this project. |
|
|
|
我想你会发现许可证条款禁止你这样做。
以上来自于百度翻译 以下为原文 I think you will find the license terms prohibit you from doing that. |
|
|
|
只有小组成员才能发言,加入小组>>
5158 浏览 9 评论
1997 浏览 8 评论
1926 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3169 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2222 浏览 5 评论
724浏览 1评论
607浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
495浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
621浏览 0评论
520浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-19 19:19 , Processed in 1.339820 second(s), Total 83, Slave 69 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号