Skip to content

[BUG] Issue with files on P1 #19

@andreieuganox

Description

@andreieuganox

Describe the bug
Web version of the app. New device HiDock P1 - issues with retrieving the files. "Loading file list: Found 1/1 files (1 packets)" is spinning constantly, and files are not loaded. Logs from consome are below.

To Reproduce
Steps to reproduce the behavior:

  1. Connect the HiDock
  2. On the dashboard, observe the list of Recent files;
  3. Click on any file or go to Recordings
  4. No error, "Loading file list: Found 1/1 files (1 packets)" is constantly loading

Expected behavior
Files are accessible.

Screenshots
Image

Environment (please complete the following information):

  • OS: Mac OS, Google Chrome (all latest)
  • Application: Web App
  • Browser (if web): Chrome 138.0.7204.158
  • HiDock Device Model: P1
  • Firmware Version: 1.2.25

Additional context
I changed vendorID and Product ID:
Product ID: 0xb00e
Vendor ID: 0x10d6 (Actions Semiconductor Co., Ltd.)

export const HIDOCK_DEVICE_CONFIG = {
  VENDOR_ID: 0x10d6, // Actions Semiconductor
  PRODUCT_ID: 0xb00e, // HiDock P1
  INTERFACE_NUMBER: 0,
  ENDPOINT_IN: 2,     // Endpoint 2 for IN direction (from jensen.js)
  ENDPOINT_OUT: 1,    // Endpoint 1 for OUT direction (from jensen.js)
} as const;

// Additional HiDock Product IDs
export const HIDOCK_PRODUCT_IDS = {
  H1: 0xAF0C,
  H1E: 0xAF0D,
  P1: 0xb00e,
  DEFAULT: 0xB00D,
} as const;

Some ideas: seems related to changes in HiDock itself. If you can help me to debug it, will be very grateful.

Logs

🔄 Attempting auto-reconnection...
deviceService.ts:1835 🔍 Checking for previously paired devices...
Recordings.tsx:32 🖼️ UI: Recordings page re-rendered with 1 files at 10:23:55
Recordings.tsx:32 🖼️ UI: Recordings page re-rendered with 1 files at 10:23:55
deviceService.ts:1840 🔌 Found paired HiDock device: HiDock_P1
deviceService.ts:1732 📊 Storage info response: 28 bytes
deviceService.ts:1743 📊 Storage raw values: free=59584 MiB, capacity=59648 MiB, status=0x900
deviceService.ts:1759 📊 Storage calculated: total=58.25 GB, used=64 MB, free=58.19 GB, files=1
deviceService.ts:1843 ✅ Auto-reconnected successfully
useDeviceConnection.ts:106 📋 Loading recordings after auto-reconnect...
useAppStore.ts:77 📝 STORE: Setting recordings to 0 total
deviceService.ts:597 📋 Fetching fresh file list from device...
Recordings.tsx:32 🖼️ UI: Recordings page re-rendered with 0 files at 10:23:55
deviceService.ts:1400 🔥 DEVICE: Processing 1 new files in smaller batches at 10:23:55
deviceService.ts:1406 📦 DEVICE: Emitting batch 1/1 with 1 files at 10:23:55
deviceService.ts:625 🚀 DEVICE: Broadcasting 1 files via streaming_files progress
useAppStore.ts:92 🔄 STORE: Adding 1 recordings to existing 0 at 10:23:55. Total will be: 1
Recordings.tsx:32 🖼️ UI: Recordings page re-rendered with 1 files at 10:23:55

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions