Skip to content

Apis 1071 we want to work on explore desktop without having to connect to a physical device#415

Open
salman2135 wants to merge 4 commits intodevelopfrom
APIS-1071-we-want-to-work-on-explore-desktop-without-having-to-connect-to-a-physical-device
Open

Apis 1071 we want to work on explore desktop without having to connect to a physical device#415
salman2135 wants to merge 4 commits intodevelopfrom
APIS-1071-we-want-to-work-on-explore-desktop-without-having-to-connect-to-a-physical-device

Conversation

@salman2135
Copy link
Member

@salman2135 salman2135 commented Jan 23, 2026

How to use:

  • Make sure the file_name varible in CsvClient class of csv_client.py file matches the name of correct file in tests/data folder.
  • Make sure the correct yaml setting file exists for the device name.
  • DXXX is recognized as a 32 channel device, AXXX as 8 channel device.
  • Changing device settings or impedance measurement is not allowed at the moment.

To use a real device, comment out the line settings csv interface is start_streaming method in parser.py

Introduced CsvClient and CsvServer classes to enable reading data from CSV sources. Updated parser to support 'csv' as a new bt_interface option and route streaming logic accordingly. This allows the system to simulate device data input from CSV for testing or offline analysis.
CsvClient and CsvServer now support configurable channel counts (8 or 32), with packet size tracking via a new PacketSize enum. Parser updated to instantiate CsvClient with channel count and to use packet_size for CSV packet length. Orientation packet handling and device info logic improved for mock streaming.
Changed CSV file path construction in CsvClient to use a test-specific file based on channel count. Updated firmware versions in device info dictionaries. Added setting of BT interface to 'csv' and a debug print of current working directory in Parser.
@salman2135 salman2135 requested a review from SonjaSt January 27, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant