From 9d3f41d69481da05ff4bb1a8b97a25d477a87c98 Mon Sep 17 00:00:00 2001 From: Neucrack Date: Thu, 5 Sep 2024 17:29:02 +0800 Subject: [PATCH] release for v4.5.0 --- examples/tools/maixcam_switch_usb_mode.py | 24 ++++++++++++---------- maix/version.py | 4 ++-- projects/app_mouse_simulator/app.png | Bin 1561 -> 0 bytes projects/app_mouse_simulator/app.yaml | 2 +- projects/app_mouse_simulator/icon.png | Bin 3943 -> 1561 bytes tools/os/base_system_version.txt | 2 +- 6 files changed, 17 insertions(+), 15 deletions(-) delete mode 100644 projects/app_mouse_simulator/app.png diff --git a/examples/tools/maixcam_switch_usb_mode.py b/examples/tools/maixcam_switch_usb_mode.py index 511ca0e3..e9ff9a9c 100644 --- a/examples/tools/maixcam_switch_usb_mode.py +++ b/examples/tools/maixcam_switch_usb_mode.py @@ -2,14 +2,6 @@ cmd_restart = "/etc/init.d/S03usbdev stop &&/etc/init.d/S03usbdev start" -device_list = [ - ["/boot/usb.ncm", True], - ["/boot/usb.rndis", True], - ["/boot/usb.keyboard", False], - ["/boot/usb.mouse", False], - ["/boot/usb.touchpad", False] -] - def usb_devive(device_list): if os.path.exists("/boot/usb.host"): os.remove("/boot/usb.host") @@ -17,12 +9,13 @@ def usb_devive(device_list): pass for device in device_list: + dev_path = f"/boot/usb.{device[0]}" if device[1]: - with open(device[0], "w") as f: + with open(dev_path, "w") as f: pass else: - if os.path.exists(device[0]): - os.remove(device[0]) + if os.path.exists(dev_path): + os.remove(dev_path) ret = os.system(cmd_restart) if ret != 0: @@ -51,6 +44,15 @@ def list_usb_devices(): mode = "device" # MaixCAM as device # mode = "host" # MaixCAM as host, you can plugin devices to MaixCAM's USB like USB camera. + # device mode functions, set your need to True and others to False. only support 4 devices for MaixCAM. + device_list = [ + ["ncm", True], # NCM virtual network card, faster trhan RNDIS but need manual install driver on windows <=10. + ["rndis", True], # RNDIS virtual network card, compatible for Windows and Linux but MacOS not suppot. + ["keyboard", False], # Simulate USB HID keyboard input, then use maix.hid module. + ["mouse", False], # Simulate USB HID mouse input, then use maix.hid module. + ["touchpad", False] # Simulate USB HID touchpad input, then use maix.hid module. + ] + if mode == "device": usb_devive(device_list) else: diff --git a/maix/version.py b/maix/version.py index 7777660f..5e33fa63 100644 --- a/maix/version.py +++ b/maix/version.py @@ -2,7 +2,7 @@ # Versions should comply with PEP440: https://peps.python.org/pep-0440/ version_major = 4 -version_minor = 4 -version_patch = 22 +version_minor = 5 +version_patch = 0 __version__ = "{}.{}.{}".format(version_major, version_minor, version_patch) diff --git a/projects/app_mouse_simulator/app.png b/projects/app_mouse_simulator/app.png deleted file mode 100644 index 10597579d31bae2a4cdb2810f0c1bbe17b83bfbe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1561 zcmdUv{XY|U0LQ`@)(w9Tih{ha_aty`{DEXygskj=hx3W73*|dUKTA20FZY$Vdt`)l&_M8 zZF`%AFKatw!cVwI0`MK;t03ThfieJ4mV=$OYjnY4Aw3=GrrePrplNH>;%cc#lZP*Y z^p2a&%(K_qknVwO`)!wlyBV&Xjrr7fO%~7hJ zD8e>bEjTGaI05+_o2KBOb$fa%TOZwY>6Ypzsdy-38J{?#BchyXnao5qteSdp^PG1# z5Eh0{vJA}Q{3q!3W)*I|)n3fTESjN3mXZOblsG#o+)|%N&>m4diGe-96FF_RXq#w{ z1=lDfspBON`9?gRP50OrxK&mSi!Ts&Mw;E8 zw-sP*=myo$ovH#m+C7n!hxZ;!C@4naL82c`)(YE=he)T@@B4p`e3(yH0@I)5V?o8m z0{tjf>5?KvM*j91YVG?q$XZ2hFBS*1jeDHcoKK1JMv^4ht+(cd?dPv>({hL++TgWH zT_A5E8DFhl%)p0iL1KG8;{aOzkoQqXlIzja=5%4eN}gs3Fh=wICxZq{wLs&z?+4kI zdoUdMRk-jmsHlRD;zc6?6s&+sDYgP71-yl@F;=&&jAi=wfj=df`sv47Gu>ELP;fvJ z2Y(o#ftGkCXBWBM{@ROWSv`}LZq!5D6Jb-PTBfgcXO^__Kw6zb;}?rl`;{Wh#TCmx@=jLhN8H0jp9A?sdXfCQg2^}Q+@HBrYCf{yB8q?^9`;T zH*Qy9({xm)fETHe!vL9Qk?@Q>_!@3TuFXGd-uI*Xr+`g?2ERjDpdveAvLcP9~I^1T~#qY5O6KTSabpv@3(N$-Q6Q@_tZrd0I5yF>vp;9z;0$gQ_0D>}8cTHTR7&udK(k{UBu|CcL1DezUsS3d+nn{I7mNO` zd0~;tIWo-<)C?+{x+*)W_UnZ5$NR#Uc1P^W1X*ddCGV+~>>-oNUU9}mcY*}wQsL%$ z@@7j$2@`XJlU>s%g`wXi()LioiQHC$RR zLv+fJ7wh}@chjFP(!x1mhb!5QCa=H9tvglx2UZ(t3zY;(RBpH-qg_PUW<7AQce10| H_$2-dSER`d diff --git a/projects/app_mouse_simulator/app.yaml b/projects/app_mouse_simulator/app.yaml index fefd200f..01aa4364 100644 --- a/projects/app_mouse_simulator/app.yaml +++ b/projects/app_mouse_simulator/app.yaml @@ -2,7 +2,7 @@ id: mouse name: Mouse Simulator version: 1.0.0 author: Sipeed Ltd -icon: app.png +icon: icon.png desc: Simulate using a mouse to control the mouse files: - app.yaml diff --git a/projects/app_mouse_simulator/icon.png b/projects/app_mouse_simulator/icon.png index 63e01648bfa0dab840aa416b3773fbc091f9ed22..10597579d31bae2a4cdb2810f0c1bbe17b83bfbe 100644 GIT binary patch literal 1561 zcmdUv{XY|U0LQ`@)(w9Tih{ha_aty`{DEXygskj=hx3W73*|dUKTA20FZY$Vdt`)l&_M8 zZF`%AFKatw!cVwI0`MK;t03ThfieJ4mV=$OYjnY4Aw3=GrrePrplNH>;%cc#lZP*Y z^p2a&%(K_qknVwO`)!wlyBV&Xjrr7fO%~7hJ zD8e>bEjTGaI05+_o2KBOb$fa%TOZwY>6Ypzsdy-38J{?#BchyXnao5qteSdp^PG1# z5Eh0{vJA}Q{3q!3W)*I|)n3fTESjN3mXZOblsG#o+)|%N&>m4diGe-96FF_RXq#w{ z1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