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

2020-02-19 21:02发布

使用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
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
4条回答
mcuzone
1楼-- · 2020-02-19 23:15
源码包:
liujinyi016
2楼-- · 2020-02-20 03:23
 精彩回答 2  元偷偷看……
faith_2013
3楼-- · 2020-02-20 08:06
谢谢,分享。
menglogic
4楼-- · 2020-02-20 12:23
“在PC上打开IE输入http://twr_k70f120m/  ” 这个可以用域名访问,对这个有兴趣!

一周热门 更多>