完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,在整理了一些愚蠢的问题之后,我逐渐掌握了以太网和18F67 J60。我已经更新了我的网页,包括许多DS18b20传感器,通过动态变量显示——通过编辑status.xml并添加新的指针、删除http print和idx文件以及用mpfs重新编译图像文件来实现这一点。然后,在调试我的应用程序的customhttpapp.cOn中,我添加了一个新的http_sensor1等,我可以看到所有传感器现在都正确地读取了(我最初在端口上有问题,但是由于前面的一些建议,我已经对此进行了排序)。但是,有时我会遇到一个问题,主页的动态变量部分会显示一个“?”而不是传感器的值。当它工作的所有传感器和现有的罐和温度变量显示正确,但当它不,所有的值显示A?,包括罐和温度传感器(热敏电阻)。LED绿色点击ON/OFF不显示颜色,虽然点击它将打开/关闭LED。顺便说一下,我使用的是OLIMEX PIC Web板,带有TCP/IP栈5.42。我最初认为,我通过CuutHTTAPPP.C发送的值可能超过16个字节,从而溢出,但情况并非如此,因此原始的(未接触的)热敏电阻和LED代码仍能正确显示。有时,如果我用传感器的数量乱七八糟,然后重新编译,它们都会再次显示。此外,我还清楚地编辑了Index .html,并添加了传感器变量,并将它们添加到索引文件底部的Java刷新中。有谁能解释为什么,或者动态变量显示什么?而不是注意它们的值,再次注意调试问题中的变量显示正确的值。还注意到,我的大多数传感器值存储在单独的传感器1-x字符阵列中,即Char Syror 1 [5 ]。任何帮助或指针在正确的方向,将不胜感激。为长篇文章道歉。我只是不知道从哪里去调试,找到答案…谢谢提前…
以上来自于百度翻译 以下为原文 Hi, After sorting some silly issues I had, I'm gradually getting to grips with Ethernet and a 18F67j60. I've updated my webpage to include a number of DS18b20 sensors, displayed via dynamic variables - did this by editing the status.xml and adding the new pointers, deleting http print and idx file and recompiling the image file with mpfs. I then added a new http_sensor1 etc to customhttpapp.c On debugging my app, I can see that all sensors are reading correctly now (I initially had problems with ports but I've sorted this thanks to some previous suggestions here). However I sometimes run into a problem whereby the dynamic variables part of the main page displays a '?' Instead of the sensor value. When it works all sensors and indeed the existing pot and temperature variable display correct, but when it doesn't, all values show a ?, including the pot and temperature sensor(thermistor). The led green click on/off does not display a colour, although clicking it will turn in/off the led. By the way I'm using an olimex pic-web board, with TCP/IP stack 5.42. I thought initially that maybe the values I was sending via customhttpapp.c were greater than 16bytes thus overflowing, but that's not the case as if so the original (and untouched) thermistor and led code would still display correctly. Sometimes if I mess about with the number of sensors and recompile they will all display again. Also I've obviously edited the index.html and added the sensors variable, and also added them to the Java refresh at the bottom of the index file. Could anybody shed some light as to why, or by what process the dynamic variables display a ? Instead of their value, again noting that debugging the variable in question shows the correct value. Also note most of my sensor values are stored in separate sensor1-x char arrays, I.e. Char sensor1[5]. Any help or a pointer in the right direction would be greatly appreciated. Apologies for long post. im just not sure where to go with this in terms of debugging to find the answer.... Thanks in advance... Ger |
|
相关推荐
4个回答
|
|
我为迟到的反应道歉。我们已经贬值了MLA堆栈,不再支持它。PIC18FxxJ60的新堆栈还不支持HTTP,但是我们确实支持CoAP.MCC 3.16,包括一个新的具有CoAP的TCP/IP堆栈。如果您为其他设备构建代码,并为我附带的设备切换MAC驱动程序,则可以在J60设备上使用TCP/IP。
以上来自于百度翻译 以下为原文 I apologize for the late response. We have depreciated the MLA stack and no longer support it. The new stack for the PIC18FxxJ60 does not yet support HTTP but we do support CoAP. MCC 3.16 includes a new TCP/IP stack that has CoAP. If you build that code for some other device and switch the MAC driver for the one I have attached, you can use TCP/IP on the J60 devices. Attachment(s) j60_driver.c (30.74 KB) - downloaded 77 times |
|
|
|
你好,我想联系一下Joseph Julicher,想把2009/2010项目升级到最新的TCP协议栈。2010年,用18F97J60微控制器和zigbee ETRX2模块设计了一个以太网网关w/LCD屏幕。该软件基于2009年7月29日发布的Microchip TCP/IP协议栈V5.10。在2010年的时间框架中,最初的C源代码项目是使用旧的MB-LAB和XC18编译器开发的,没有任何问题。这是一个大型项目,在使用98%的18F97 J60代码和数据空间。Web服务器有一些使用MPFS2实用程序生成的C文件嵌入到固件中的配置页面。我想用更新的TCP堆栈更新这个项目。我应该用哪一个?在18F97 J60上有新的Lite TCP堆栈工作,不必编写Web服务器演示框架吗?什么是最好的版本的TCP堆栈和Web服务器与18F97 J60一起使用?
以上来自于百度翻译 以下为原文 Hi I a trying to reach Joseph Julicher about upgrading a 2009/2010 project to latest TCP stack. In year 2010 an ethernet gateway w/LCD screen was designed with the 18F97J60 microcontroller and a zigbee ETRX2 module. The software was based on Microchip TCP/IP Stack v5.10 released 29 July 2009. In the 2010 time frame the original C source code project was deveoped using the older MB-LAB and XC18 compiler without any problems. It was a large project in terms of using 98% of the 18F97J60 code and data space. The web server has some config pages embedded into the firmware using C files made from the MPFS2 utility I want to update this project with a newer TCP stack. Which one should I use ? Will there newer lite TCP stack work on this 18F97J60 without re-writing the web server demo framework ? What is the best versions of both TCP stack and web server to use with the 18F97J60 ? |
|
|
|
它是一个旧的PIC,而且我发现不太可能有一个新版本的代码适合它……最好使用PIC24来做类似的事情。
以上来自于百度翻译 以下为原文 It's an old PIC and I find unlikely that a new version of the code will fit into it... Better use a PIC24 for anything like that. Anyway, start a new thread of yours |
|
|
|
我是Joseph Julicher,我的团队正在开发新的TCP/IP协议栈。在这个时候,我们有HTTP在积压,但没有时间表。我们主要关注CoAP、DTLS和其他以IoT为中心的协议。原来的TCP/IP栈(MLA)在wifi示例之外不再受支持,我不能保证当我们添加HTTP时,原来的HTTP API将保持完整。新的栈在MCC中,J60支持正在MCC。如果您想使用新的堆栈,将旧HTTP层适应新的TCP层可能是合理的。我没有研究过这一点,所以我不知道这种方法的陷阱在哪里。
以上来自于百度翻译 以下为原文 I am Joseph Julicher and my team is developing the new tcp/ip stack. At this time we have HTTP on the backlog but not schedule. We are focusing on CoAP, DTLS and other IoT centric protocols. The original TCP/IP stack (MLA) is no longer supported outside of a wifi example and I cannot promise that the original HTTP API's will remain intact when we do get to adding HTTP. The new stack is in MCC, J60 support is coming to MCC. If you want to use the new stack, it may be reasonable to adapt the old HTTP layer to the new TCP layer. I have not studied this so I don't know where the pitfalls will be with this approach. |
|
|
|
只有小组成员才能发言,加入小组>>
5243 浏览 9 评论
2035 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3208 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2258 浏览 5 评论
778浏览 1评论
669浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
597浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
679浏览 0评论
577浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 06:33 , Processed in 1.590241 second(s), Total 82, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号