完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个WiZnet W5500以太网控制器模块。我还没有决定使用哪一个PIC部分,但在这一点上没关系。我将用PIC做几个任务,并希望卸载以太网任务。以太网连接只能偶尔使用。有人能指给我正确的方向解释一下如何在PIC中包括Web服务器代码吗?WiZnet模块将处理所有以太网传输的东西。我将使用SPI并定期检查以太网模块以查看数据是否已经到达。Web服务器主要用于配置以太网模块设置,如IP地址、子网掩码和网关。访问Web页面的用户名和密码也将在Web服务器上配置。我将保存这些设置到一个25AA02E48 MAC地址芯片在启动时检索。MAC地址芯片是必需的,因为模块没有包含MAC地址。一天一两次,可能会有打开或关闭继电器的请求。我知道如何做到这一点,如果我能让Web服务器运行在PIC上。创建Web服务器代码的最佳方法是什么?
以上来自于百度翻译 以下为原文 I have a WIZnet w5500 Ethernet controller module. I haven't decided which PIC part to use yet but at this point it doesn't matter. I will be doing several tasks with the PIC and wanted to offload the Ethernet tasks. The Ethernet connection will only be used occasionally. Can someone point me in the right direction to explain how to include web server code in the PIC? The WIZnet module will handle all the Ethernet transmission stuff. I will use SPI and check the Ethernet module at regualar intervals to see if data has arrived. The web server will mainly be used to configure the Ethernet module settings such as IP address, subnet mask, and gateway. Username and password for access to the web page will also be configured on the web server. I will save these settings to a 25AA02E48 MAC address chip for retrieval at boot time. The MAC address chip is needed because the module does not come with a MAC address included. Once or twice a day there may be a request to turn a relay on or off. I know how to do that if I can get the web server running on the PIC. What would be the best approach to creating the web server code? |
|
相关推荐
9个回答
|
|
Wiznet有什么例子吗?这是他们的模块。
以上来自于百度翻译 以下为原文 Does Wiznet have any examples? It is their module. |
|
|
|
WiZETHTTP服务器,http://Github. COM/WiNET/IOLBRARYA驱动程序
以上来自于百度翻译 以下为原文 Wiznets http server, https://github.com/Wiznet/ioLibrary_Driver |
|
|
|
尼尔,我在WiZNET的网站上四处寻找,但没找到多少。在他们的论坛上,我发现了一些讨论,其中人们提到了GITHUB上的代码。我还发现了一篇使用STM32部分的文章。杰拉尔德,谢谢你的链接。看起来很有前途。我会看看我能否把代码放在一个测试板上,然后把它连接到WIZnet模块上。我把一个素描装入了我所拥有的阿杜伊诺。我把它连接到WiZNET模块,HTTP服务器工作。我不熟悉阿杜伊诺,因为我从来没有用过它。几年前我买了这个板,但从来没有玩过。我将查看下面的C驱动程序库,看看它们是做什么的。
以上来自于百度翻译 以下为原文 Neil, I looked around on WIZnet's site but didn't find much. On their forum I found a couple of discussions where people referred to code on github. I also found one article that used a STM32 part. Gerald, thanks for the link. That looks promising. I will see if I can put the code together on a test board I have and connect it to the WIZnet module. Another thought I had was to look at the underlying Arduino code. I loaded a sketch into a Arduino Uno board I had. I connected it to the WIZnet module and the HTTP server works. I'm not familiar with Arduino as I have never used it for anything. I bought the board a couple of years ago but never played around with it. I will look at the underlying C driver libraries to see what they do. |
|
|
|
如果使用Microchip代码,则需要删除所有下层堆栈层,然后对剩下的层和Wiznet模块之间的连接进行编码。听起来并不容易。
以上来自于百度翻译 以下为原文 If you use the Microchip code you will need to remove all the lower stack layers and then code a connection between what is left and the Wiznet module. It does not sound easy. |
|
|
|
WiZNET芯片使用Berkley Socket API,所以另一种选择是使用嵌入式Web服务器,如MangoSo.HTTPS://Github. COM/CeStAt/MangoSe.当前版本需要许可证,但旧版本是免许可的。您还需要为WiZNET SPI接口提供驱动程序层。
以上来自于百度翻译 以下为原文 The Wiznet chip uses a Berkley socket API, so another option is to use an embedded web server like Mongoose. https://github.com/cesanta/mongoose the Current version need a license, but the older versions are license free. You will also need to provide the driver layer for the Wiznet SPI interface |
|
|
|
约翰,几天前我看过《猫鼬密码》。我将再次调查它,但我认为修改ARDUNO图书馆可能更容易。它们看起来不那么复杂。当然不比微芯片库复杂。
以上来自于百度翻译 以下为原文 John, I saw the mongoose code a couple of days ago. I will investigate it one more time but I think it may be easier to modify the Arduino libraries. They seem less complicated. Certainly less complicated than the Microchip libraries. |
|
|
|
微芯片库还处理包括硬件在内的协议栈的多个层。
以上来自于百度翻译 以下为原文 The Microchip librares are also handling the several more layers of the Protocol stack including the Hardware. |
|
|
|
我们走的是同一条路。我还计划从微芯片以太网部分切换到Wiznet部分(我们已经将WiFi切换到Atmel部分)。我也在寻找Web服务器的选项。我在几个桌面应用程序中使用了mongoose,但我同意它对于嵌入式应用程序来说可能太重了。我与MangOS的一个问题是它的文件系统。它依赖于标准的C文件系统来获取Web文件。关于微芯片网络服务器,我最喜欢的一点是MPFS文件系统,它把所有的网络文件压缩成一个C文件。我正在试验一种更简单的网络服务器,叫做Webio https://sourceforge.net/./webio/看起来很有前途的。它有自己的文件系统,并且还提供了一个驱动层,这样你就可以添加自己的。我一直在尝试添加MPFS文件系统。到目前为止看起来不错。
以上来自于百度翻译 以下为原文 We are going down the same path. I am also planning on switching from the Microchip Ethernet part to the Wiznet part (we have already switched WiFi to the Atmel part). I am also looking for options for a web server. I have used mongoose on a couple of desktop application, but I agree it may be a little too heavyweight for an embedded application. One of the issues I have with mongoose is its file system. It relies on the standard C file system to get the web files. One thing I really like about the Microchip web server is the MPFS file system which compresses all the web files into a single C file. I am experimenting with a simpler web server called Webio https://sourceforge.net/projects/webio/ which looks promising. It has its own file system, and also provides an driver layer so you can add your own. I have been experimenting adding the MPFS file system. Looking good so far. |
|
|
|
我试图摆脱使用微芯片的以太网应用。我相信他们已经注销支持任何除了PIC32的以太网。我花了30个多小时试图将一个遗留项目从MPLAB 8转换成MPLAB-X和XC8。最后,我放弃了,使用MPLAB 8和C18进行了必要的修改。我尝试了PIC32和Harmony,但是当我看到创建的足迹时,发现那是错误的路径。如果我记得正确,它是超过230K的闪存只是为了获得一个基本的Web服务器设置。我没有费心去编写PIC程序并测试它。我考虑过尝试使用ENC424J600,但是决定改用Wiznet部分。我想这将是一个更容易的部分工作。MPFs是好的,如果你有很多东西在网页上。我只有大约6个文本框和2个按钮,所以很容易发出类似于Arduino代码的文本响应
以上来自于百度翻译 以下为原文 I am trying to get away from using Microchip parts for Ethernet applications. I believe they have written off supporting anything except PIC32 for Ethernet. I spent over 30 hours trying to convert a legacy project from MPLAB 8 to MPLAB-X and XC8. I finally gave up and used MPLAB 8 and C18 to make the needed modifications. I experimented with PIC32 and Harmony but decided that was the wrong path when I saw the footprint that was created. If I remember correctly it was over 230K of flash just to get a basic Web Server setup. I didn't bother with trying to program the PIC and test it. I thought about trying to use the ENC424J600 but decided to pursue the Wiznet part instead. I figured it would be an easier part to work with. MPFS is nice if you have a lot of stuff on the web page. I will only have about 6 text boxes and 2 buttons so it will be easy to just issue text responses similar to the way Arduino code does |
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
775浏览 1评论
665浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
593浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
675浏览 0评论
575浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 21:11 , Processed in 1.462069 second(s), Total 94, Slave 77 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号