Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android? #15

Open
IGNNE opened this issue Jan 19, 2019 · 1 comment
Open

Android? #15

IGNNE opened this issue Jan 19, 2019 · 1 comment

Comments

@IGNNE
Copy link
Contributor

IGNNE commented Jan 19, 2019

Hello all,
I managed to compile Labtool for Android. I had to do the following (more or less following this):

  • remove udev dependency in the project file
  • compile libusb for Android and replace the link in app/libusbx/Linux/ with "my" libusb
  • for some reason that libusb was missing in the apk, so I had to manually adb push it to /data/app/org.qtproject.example.LabTool-1/lib/arm

Now the app starts fine and without crashing, but I can only see the simulator, not the real LabTool device. USB-OTG is supported on my device, and if I connect the LabTool to my phone, the LEDs light up. I already did a chmod a+rw /dev/bus/usb//, but no change.

I know this is not supported etc, but I don't know any better place to post this. Has anyone tried this before? Any ideas, suggestions...?

@embeddedartists
Copy link
Owner

Hi,
The problem is that the LabTool hardware starts in DFU mode and when the PC program detects a DFU device it will transfer the firmware to it and restart it. From that point on it is detected as a LabTool device and the PC program can access it. You can see the code here: app/device/labtool/labtooldevicecommthread.cpp.

I believe you only see the DFU device when you connect it to your phone.

If you cannot replicate the code to transfer the firmware then maybe you could flash the firmware instead? There is a small onboard SPI flash.

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

No branches or pull requests

2 participants