noopwafel / libsigrok Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Hello,
I'd like to help out with getting the VDS1022 supported in sigrok. Do you have any recommended next steps?
I have your changes building and running, but I'm just getting flat line readings when attached to the 1khz test output. I'm wondering if the device channels are configured in GND
coupling mode versus AC
or DC
, or maybe the channels are misconfigured in another way (voltage levels, triggering). One way I'm thinking to fix this is to setup wireshark monitoring of the Windows VM when toggling these channel settings, and double-checking that these commands are sent by sigrok.
I also skipped the firmware upload step after this command fails https://github.com/noopwafel/libsigrok/blob/master/src/hardware/owon-vds-tiny/protocol.c#L275:
vds_packed_cmd_response(sdi, 0x223, buffer, 1, 'E', &response);
I'm not sure where 0x233
originates. I couldn't find this anywhere in the decompiled source. Also, the device is working in the Windows VM, so I didn't want to risk messing-up the existing firmware.
The debug log seems to show working communication:
...
sr: [00:04.847196] session: bus: Received SR_DF_FRAME_BEGIN packet.
sr: [00:04.862227] owon-vds-tiny: receive_transfer(): status LIBUSB_SUCCESS / LIBUSB_TRANSFER_COMPLETED received 5211 bytes.
sr: [00:04.862304] owon-vds-tiny: got incoming packet
sr: [00:04.862392] session: bus: Received SR_DF_ANALOG packet (5098 samples).
"Querying config key samplerate is not allowed"
sr: [00:04.869545] owon-vds-tiny: receive_transfer(): status LIBUSB_SUCCESS / LIBUSB_TRANSFER_COMPLETED received 5211 bytes.
sr: [00:04.869601] owon-vds-tiny: got incoming packet
sr: [00:04.869684] session: bus: Received SR_DF_ANALOG packet (5098 samples).
"Querying config key samplerate is not allowed"
sr: [00:04.869958] session: bus: Received SR_DF_FRAME_END packet.
...
I've also been trying to get the vendor's java version working on Linux in tinwhisker/Owon-VDS1022#6, but have been encountering some roadblocks. If we can get it to work from java source on linux, it should hopefully be straightforward to then achieve full sigrok support.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.