|
楼主 |
发表于: 10-04-2021 18:42:58
|
显示全部楼层
Hi! I managed to get it to run in Linux. 
A note for the devs: I had to modify the ShizukuProtocol.dll code to fix an issue with the wrong value being set for `this.targetPort.BaudRate` (in the `_ShizukuProtocol` function). The original value was 11520000, and I corrected this to 115200. After doing this, everything worked without error on Linux. Before, it was giving an error about having an invalid speed.
For anyone else who works with Linux and is curious as to how to set this up:
1. Install WINE and winetricks: `apt install wine winetricks`
2. Configure your wine to be 32 bit: `WINEARCH=win32 winecfg`
3. Install dotnet45 in your wine environment: `winetricks dotnet45`
4. Add your user account to the `dialout` group: `usermod -aG dialout <username>`
5. Log out and log back into your account.
6. Add a serial port configuration for your wine environment: `wine regedit`
6a. Then go to: HKEY_LOCAL_MACHINE > Software > Wine > Ports , and add a string entry with the name "COM1" and the value "/dev/ttyACM0" (or whatever device the CT-3 gets mounted to)
7. Run your program with `wine <program_exe>`.
Note: The Shizuku app does start, but does not detect the serial port. You must write your own app using the ShizukuProtocol.dll extension. |
|