Announcement

Collapse
No announcement yet.

WebSocket path error using LED example

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • WebSocket path error using LED example

    Hello,

    My goal is to use PHPoC to control an LED strip. When I test with PHPoC blue with the example.

    I get this error : ws_find_socket: path not found

    I literally just copied the files in .\example\p4s\05.html5_graphics\01.uio_ob_led

    Here are my logs from a fresh boot :

    Code:
    [0718:12:29:17.047] PHP-STM32F407 Debug Console Sollae Systems
    [0718:12:29:17.047] S/W Reset
    [0718:12:29:17.047] FIB : 66 50 73 34 ea 5e 7b 72 02 00 20 00 13 00 4b f8
    [0718:12:29:17.047] MSG : 12 00 00 00 400 REBOOT DEBUG
    [0718:12:29:17.098] ezfs: size 151552 (08080000~080a5000), WC 17
    [0718:12:29:17.098] SCK : 168MHz
    [0718:12:29:17.102] log2: log hash ok
    [0718:12:29:17.102] log3: log hash ok
    [0718:12:29:17.102] init: 100ms boot vout reset
    [0718:12:29:17.230] if_nss: RSA-1024 DSA-1024 CERT-686
    [0718:12:29:17.316] usbd: set SDIS
    [0718:12:29:17.434] otg_hs: root port 0 connected, full speed device
    [0718:12:29:17.434] usbh: port 0 POWERED
    [0718:12:29:17.449] usbd: DETACHED
    [0718:12:29:17.449] pdb: init
    [0718:12:29:17.500] ezfs: size 151552 (08080000~080a5000), WC 17
    [0718:12:29:17.500] usbh: port 0 RESET
    [0718:12:29:17.566] usbh: port 0 ADDRESS
    [0718:12:29:17.566] usbh: vid - 0x148f, pid - 0x5370, class - 00, max_ps - 64, addr - 01
    [0718:12:29:17.566] rt2usb: up
    [0718:12:29:17.574] mac_addr: -removed-
    [0718:12:29:17.574] probe: ASIC(BBP/MAC)-5390 REV-0502
    [0718:12:29:17.574] probe: RF chip 5370 (2.4G 1T1R)
    [0718:12:29:17.574] probe: channel_power (70%) 12 12 12 13 13 13 13 13 13 13 13 13 13 13
    [0718:12:29:17.578] rt2usb: init rt2x00 F R C M Done
    [0718:12:29:17.641] wlan: start STA - -removed-
    [0718:12:29:17.648] usbh: port 0 CONFIGURED
    [0718:12:29:17.820] usbd: reset SDIS
    [0718:12:29:17.820] usbd: ATTACHED
    [0718:12:29:17.922] usbd: RESET
    [0718:12:29:18.098] usbd: ADDRESS
    [0718:12:29:18.199] usbd: CONFIGURED
    [0718:12:29:18.223] pdb: VCP connected
    [0718:12:29:18.414] ERP: short_preamble cts_protection slot_time-9 eifs-342
    [0718:12:29:18.434] mlme: set key 3c:90:66:c2:b0:94 id-0
    [0718:12:29:18.434] mlme: set key ff:ff:ff:ff:ff:ff id-1
    [0718:12:29:18.637] rt2dev: vgc_level change 0x1c -> 0x2c
    [0718:12:29:59.891] php start index.php RUN
    [0718:12:29:59.930] ws_find_socket: path not found
    [0718:12:30:19.516] php start index.php RUN
    [0718:12:30:19.547] ws_find_socket: path not found
    I can load the page, but it gives me a box saying :

    This side says...
    Websocket error ws://192.168.1.4/ob_led

    I would really appreciate if anybody could help me understand why and how to fix it.

    Thanks!

  • #2
    I think this happen when you do not click run button on PHPoC debugger. When the device connects to PHPoC Debugger, the debugging mode is enabled by default. The main code (task0.php) will not run until you click run button on Arduino IDE, please click the run button on Arduino IDE. Or see this video to know how to get started. https://www.phpoc.com/learn.php

    Comment

    Working...
    X