Microchip
直播中

李建军

8年用户 140经验值
私信 关注
[问答]

PIC32 TCP/IP编程怎么连接到网页

你好!我对微芯片TCP编程是新的。我目前有一个PIC32 MX360F512L板,并已经做了一些实验室,如编写代码,使LED点亮,当计数从0位到7位,并有一些其他熟悉PIC32板。我的问题是如何使用Socket编程(TCP)连接到Web页面。我将使用这个板。我有MPLABX IDE,编译器32,也使用以太网电缆。我读到以太网启动套件有一个演示,但我有一个MacBook Pro,我读到以太网启动工具包运行在Windows操作系统上。我有PIC32的DM3200 01板和扩展板和一个其他板放在我的PIC32和以太网电缆。我已经阅读了很多关于TCP IP编程如何工作/套接字编程。我理解它是如何工作的,但没有看到很多代码示例或演示,我可以在我的板上使用它连接到一个网页。现在我只想连接板,连接到一个网页,只显示“你好”这个词。我只是想能够做一些简单的事情,然后把网页带来并显示一个问候。有人能帮助我理解如何做到这一点吗?我一直很难找到一个演示代码,我甚至可以打开下载一次,许多其他代码IM阅读似乎有更复杂的行动进行,而我所做的是一个相对简单的任务,似乎。非常感谢!我很感激!也请告诉我,如果我需要提供任何其他信息,我可能错过了。我试图覆盖所有的东西。我也有协调下载的BC它有所有的TCP库和文件,我想我需要,比MPLABX IDE和PIC32,我以前单独添加和谐之前。谢谢!!

以上来自于百度翻译


      以下为原文

    Hi! I am new to the microchip tcp programming. I current have a PIC32MX360F512L board and have done some labs on it such as writing code for having the LEDs light up in order when counting from bit 0 to bit 7 and a couple others to familiarize with the PIC32 board. It is the dm320001 starter kit.

My question, however is how to connect to a web page using socket programming (TCP).

I would be using this board. I have MPLABX IDE, Compiler 32, and  also using an ethernet cable. I read that the ethernet starter kit has a demo for this but I have a macbook pro and I read that the ethernet starter kits run on windows OS.

I have my PIC32 dm320001 board and the expansion board and one other board to put on my PIC32 and the ethernet cable. I have read a lot about how TCP IP programming works / socket programming. I understand HOW it works but do not see many code examples or a demo that I am able to use on my board to connect to a web page. Right now I just want to hook up the board and connect to a web page to just display the word "hello!" I just want to to be able to do something simple like this and bring up the web page and display a greeting.

Is there anyone that can help me understand how to do this? I have been having a lot of trouble finding a demo code and I can even open once downloaded and a lot of the other codes Im reading about seem to have way more complex actions going on whereas what I am doing is a relatively simple task it seems.

Thank you so much! I appreciate it!
Also please let me know if I need to provide any other information that I may have missed. I tried to cover everything.
I also have hARMony downloaded bc it has all the tcp libraries and files that I suppose I need, compared to the MPLABX IDE and PIC32 that I previously had alone before adding harmony.

Thank you!!

回帖(3)

周彦楠

2018-10-30 15:30:42
你应该能够运行一个和谐的示例应用程序来运行。例如:…/Microchip / Hyn/V2Y05Y01/App/TCPIP/WebSynNETServer NVMMMPFS。你将想要使用Hyror配置器插件来获得所有的设置。®和谐配置器教程-创建一个TCP/IP项目从SurrChink也看视频:HTTPS://www. Youtub.com /手表?V= EYCLFQKGLNMIT有点过时,但有很多你需要的东西。

以上来自于百度翻译


      以下为原文

    You should be able to run one of the Harmony example applications to get going.
For instance:  .../microchip/harmony/v2_05_01/apps/tcpip/web_net_server_nvm_mpfs.
 
You will want to use the Harmony Configurator plugin to get all the settings right.
Harmony Configurator will plug into the MPLABX IDE.
 
MPLAB® Harmony Configurator Tutorial - Creating a TCP/IP Project from ScratchAlso watch the video:  https://www.youtube.com/watch?v=EyclfQkgLnM
 
It is a little dated, but has a lot of what you need.
举报

王琳

2018-10-30 15:50:21
你好。。任何人都可以为PIC32以太网启动KIT2附加TCP IP演示代码。谢谢。

以上来自于百度翻译


      以下为原文

    Hi.. can any one attach the tcp ip demo code for pic32 ethernet start kit2.
 
Thank you
举报

周彦楠

2018-10-30 15:59:13
你好,Purnk,你安装好了吗?如果不是,那么安装和声最新版本。然后您可以找到所有需要的例子:例如:…/Microchip / Hyng/V2Y05Y01/App/TCPIP/WebSynNETServer

以上来自于百度翻译


      以下为原文

    Hello Purna K,
 
Do you have Harmony installed?
If not then install Harmony latest version.
 
Then you can find all the needed examples :
 
For instance:  .../microchip/harmony/v2_05_01/apps/tcpip/web_net_server_nvm_mpfs
 
举报

更多回帖

发帖
×
20
完善资料,
赚取积分