Browser connection checks

… visits
Parent Previous Next

Work through these checks in order. First prove the USB network and data address work, then check your page.

  1. Check enumeration and the PC address. The USB adapter should receive 192.168.N.2, mask 255.255.255.0. Check the selected subnet and avoid conflicts with another network. An Internet connection is not required.
  2. Open the data URL directly: http://192.168.N.1/status. Use HTTP and the PIC's .1 address. JSON here proves more than the presence of an adapter icon. In external mode, a 404 at / is expected.
  3. Check the firmware loop. USB_NetworkService() must keep running. If DHCP or requests stall, remove long application delays first. Inspect USB_Configured, USB_NetLink and the packet/request counters.
  4. If JSON works but the page does not, check the browser console and exact field names. A named count of 0 gives {}; a null result needs explicit display handling. Use the exact custom-page URL.
  5. If a command is accepted but no answer appears, confirm the main loop consumes the intended input slot, performs the action and publishes a completion sequence. A 202 receipt alone is not an answer. A 409 response means the previous input in that slot remains unread.
  6. For an external file, check its full PIC address, the external page mode, allowed origin and browser local-network permission. Keep requests sequential and avoid multiple active device pages while testing.

See also

Created with the Personal Edition of HelpNDoc: Converting Word Documents to eBooks: A Step-by-Step Guide with HelpNDoc