dongxun8189 2013-10-24 14:10
浏览 74

Arduino以太网板和PHP或HTML(RC车)

I am all new to arduino, never used it before, and i need to use it for a project at school. The project consists of building an RC car, a PHP webpage, and controlling the RC car with this php webpage. The layout of the webpage is made, and so is the car, also working if we open the ports. The question is how do i open the port through my php wepage? is this even possible, thanks !

I'm using Arduino ethernet board (not shield)

  • 写回答

1条回答 默认 最新

  • douzhi2760 2013-10-25 05:57
    关注

    The basic concept is that the Arduino is a web page server. You will need code on the Arduino that implements a TCP/IP stack. Usually this code is supplied by the manufacturer of the Ethernet board for the Arduino.

    Usually, the web page will send an HTTP "GET" command to the web server, which is a specific IP address and port number. The Arduino server needs to "listen" at that IP-port addr, this code is part of the TCP/IP stack.

    To answer your specific question, on your Web page browser, enter:

       http:\\host_ip_addr:80
    

    Where 80 is usually the HTTP port number, but your arduino can listen on any port, so a valid entry might be:

       http:\\lclhost:8000
    

    Hope this gets you started in the right direction.

    评论

报告相同问题?

悬赏问题

  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?