mcuzone 发表于 2013-12-13 13:59:08

K70例程011: 网络裸机程序webserver

使用J-LinkV8
MDKKeil版本4.71
调试串口波特率:115200
基于MDKK70-EK_T43硬件平台

实验现象:
编译并下载程序,路由器通过网线连接K70EK_T43开发板的网线接口,在PC上打开IE输入http://twr_k70f120m/
默认用户名: admin
默认密码: <空>。

This is a HTTP Server example. It shows you how to use the
Web Server CGI interface as well.

Use this example to connect TWR-K70F120M Board to a LAN with DHCP
server (most LANs have this). This example will configure the
LAN network parameters automatically using a DHCP protocol.

You may connect TWR-K70F120M Board to PC directly over a crosslink
network cable. In this case configure a PC to use a static
IP address 192.168.0.101

If after a timeout of 5 seconds DHCP did not obtain an IP address,
this example will use a static IP address 192.168.0.100

The WEB pages are included into the project under HTTP Files
group. You can simply add or remove a page or image. Web files
which are compiled into the project are added to the 'Web.inp'
Web Converter input file.

To test this example, open your web browser and enter the
address http://twr_k70f120m/ or http://<boards IP address>

Default user    : admin
Default password: <none>

You can change the password at runtime on page 'system'

The HTTP_demo example is available for several targets:

MK70F120M:
    Standalone (no RTX Kernel) application.
    Program code is loaded into on-chip flash.

MK70F120M Debug:
    Standalone (no RTX Kernel) with debug output.
    Debug level configured in Net_Debug.c configuration file.
    Connect a serial cable to RS232 UART1 port using
    HyperTerminal at 115200 baud, 8-bits, no parity,
    1 stop bit, flowcontrol none.

MK70F120M RTX:
    The same example configured for RTX Kernel.
此K70_http例子基于Keil的RL_ARM

mcuzone 发表于 2013-12-13 13:59:42

源码包:

jinyi7016 发表于 2015-2-25 15:08:38

网络是什么方案

faith_2013 发表于 2015-3-2 09:41:20

谢谢,分享。

menglogic 发表于 2015-3-23 10:50:11

“在PC上打开IE输入http://twr_k70f120m/” 这个可以用域名访问,对这个有兴趣!
页: [1]
查看完整版本: K70例程011: 网络裸机程序webserver