导航

    • 登录
    • 搜索
    • 版块
    • 产品
    • 教程
    • 论坛
    • 淘宝
    1. 主页
    2. aixn
    3. 帖子
    A
    • 举报资料
    • 资料
    • 关注
    • 粉丝
    • 屏蔽
    • 帖子
    • 楼层
    • 最佳
    • 群组

    aixn 创建的帖子

    • A

      串口调试扩展板的P4、P5和GND,分别接到RS232的2、3、5口上时显示乱码
      OpenMV Cam • • aixn

      7
      0
      赞同
      7
      楼层
      3568
      浏览

      A

      好的,我再买一个USB转ttl试试。
    • A

      FTP文件传传输如何实现?
      OpenMV Cam • • aixn

      3
      0
      赞同
      3
      楼层
      2864
      浏览

      https://github.com/SpotlightKid/micropython-ftplib 我找到了这个,但是不知道能不能用。
    • A

      请问如何修改板子的系统时间?
      OpenMV Cam • • aixn

      2
      0
      赞同
      2
      楼层
      1829
      浏览

      https://docs.singtown.com/micropython/zh/latest/openmvcam/library/utime.html 比较麻烦,你需要一直供电。
    • A

      此程序展示将mjpeg传至firefox浏览器,浏览器中输入IP+端口后为何显示连接失败?
      OpenMV Cam • • aixn

      6
      0
      赞同
      6
      楼层
      2873
      浏览

      A

      由于没有红外热成像模组,相关红外成像教程代码就跳过去了,但是wifi程序下载的代码也是可以运行的,但是显示的效果很怪异,现在知道了为何了。
    • A

      mjpeg_streamer 这个程序为何运行出错?
      OpenMV Cam • • aixn

      6
      0
      赞同
      6
      楼层
      3477
      浏览

      因为这个代码没有及时更新,s.settimeout(0) 改为了s.setblocking(True) 下面的代码是可以正常运行的。 # MJPEG Streaming # # This example shows off how to do MJPEG streaming to a FIREFOX webrowser # Chrome, Firefox and MJpegViewer App on Android have been tested. # Connect to the IP address/port printed out from ifconfig to view the stream. import sensor, image, time, network, usocket, sys SSID ='' # Network SSID KEY ='' # Network key HOST ='' # Use first available interface PORT = 8080 # Arbitrary non-privileged port # Reset sensor sensor.reset() # Set sensor settings sensor.set_contrast(1) sensor.set_brightness(1) sensor.set_saturation(1) sensor.set_gainceiling(16) sensor.set_framesize(sensor.QQVGA) sensor.set_pixformat(sensor.GRAYSCALE) # Init wlan module and connect to network print("Trying to connect... (may take a while)...") wlan = network.WINC() wlan.connect(SSID, key=KEY, security=wlan.WPA_PSK) # We should have a valid IP now via DHCP print(wlan.ifconfig()) # Create server socket s = usocket.socket(usocket.AF_INET, usocket.SOCK_STREAM) # Bind and listen s.bind([HOST, PORT]) s.listen(5) # Set server socket to blocking s.setblocking(True) def start_streaming(s): print ('Waiting for connections..') client, addr = s.accept() # set client socket timeout to 2s client.settimeout(2.0) print ('Connected to ' + addr[0] + ':' + str(addr[1])) # Read request from client data = client.recv(1024) # Should parse client request here # Send multipart header client.send("HTTP/1.1 200 OK\r\n" \ "Server: OpenMV\r\n" \ "Content-Type: multipart/x-mixed-replace;boundary=openmv\r\n" \ "Cache-Control: no-cache\r\n" \ "Pragma: no-cache\r\n\r\n") # FPS clock clock = time.clock() # Start streaming images # NOTE: Disable IDE preview to increase streaming FPS. while (True): clock.tick() # Track elapsed milliseconds between snapshots(). frame = sensor.snapshot() cframe = frame.compressed(quality=35) header = "\r\n--openmv\r\n" \ "Content-Type: image/jpeg\r\n"\ "Content-Length:"+str(cframe.size())+"\r\n\r\n" client.send(header) client.send(cframe) print(clock.fps()) while (True): try: start_streaming(s) except OSError as e: print("socket error: ", e) #sys.print_exception(e)
    • A

      wifi模块如何更新?
      OpenMV Cam • • aixn

      2
      0
      赞同
      2
      楼层
      1546
      浏览

      https://github.com/openmv/openmv/releases firmware.zip里面有winc1500文件夹。
    • A

      追球小车IDE无法调试
      OpenMV Cam • • aixn

      2
      0
      赞同
      2
      楼层
      1612
      浏览

      硬件是什么?如果是配套的小车应该不会有问题。