A adrian_eb Member Licensed User Longtime User Mar 30, 2021 #1 Hi, My android box has an arduino connected, I made the manifest/device_filter as it shows on felUsbSerial - Alternative Usb Serial library I found the Error. FTDISioIds.java: new ConcreteDevice(0x04d8, 0x000a) but the device is a cdcserial Device www.b4x.com Click to expand... and it works perfect, almost. If I turn the box without plugin the usb arduino, and then plug it, the app is lauched automaticaly and it connects perfect with the arduino. But if I turn on the box with the arduino plugged, nothing happens, and I have to click on the app icon to start it, and it ask for the USB permission. Im missing somethig? I was thinking on put a relay to delay the "plug the USB" , but it is an extreme solution by hardware, I hope can fix it by software! Thanks in advance!
Hi, My android box has an arduino connected, I made the manifest/device_filter as it shows on felUsbSerial - Alternative Usb Serial library I found the Error. FTDISioIds.java: new ConcreteDevice(0x04d8, 0x000a) but the device is a cdcserial Device www.b4x.com Click to expand... and it works perfect, almost. If I turn the box without plugin the usb arduino, and then plug it, the app is lauched automaticaly and it connects perfect with the arduino. But if I turn on the box with the arduino plugged, nothing happens, and I have to click on the app icon to start it, and it ask for the USB permission. Im missing somethig? I was thinking on put a relay to delay the "plug the USB" , but it is an extreme solution by hardware, I hope can fix it by software! Thanks in advance!
Erel B4X founder Staff member Licensed User Longtime User Mar 31, 2021 #2 Add a service and set #StartAtBoot: true. It will start your app at boot. At this point you can check whether there is a connected USB device. If you need to show an activity from the service then it will require the special "draw over apps" permission. Upvote 0
Add a service and set #StartAtBoot: true. It will start your app at boot. At this point you can check whether there is a connected USB device. If you need to show an activity from the service then it will require the special "draw over apps" permission.
A adrian_eb Member Licensed User Longtime User Mar 31, 2021 #3 Erel said: Add a service and set #StartAtBoot: true. It will start your app at boot. At this point you can check whether there is a connected USB device. If you need to show an activity from the service then it will require the special "draw over apps" permission. Click to expand... Thanks for the answer, but I don't think you see my problem, or I don't understand your solution. I can autostart the app with some help of a third app to autolauch my app. Thats not the problem. I see I can avoid it with your help. My problem is that if I plug the arduino after the android box is on, everything works, the app can access the USB automatically. If I have the arduino plugged with the android box is off and I turn it on, I have to start the app "manually" and the USB permission box appears, I have to click give permission, and restart the app to work. I still dont understand why with the " manifest/device_filter " working, it fails when the app is run, but it works perfect when I plug the arduino. Thanks Upvote 0
Erel said: Add a service and set #StartAtBoot: true. It will start your app at boot. At this point you can check whether there is a connected USB device. If you need to show an activity from the service then it will require the special "draw over apps" permission. Click to expand... Thanks for the answer, but I don't think you see my problem, or I don't understand your solution. I can autostart the app with some help of a third app to autolauch my app. Thats not the problem. I see I can avoid it with your help. My problem is that if I plug the arduino after the android box is on, everything works, the app can access the USB automatically. If I have the arduino plugged with the android box is off and I turn it on, I have to start the app "manually" and the USB permission box appears, I have to click give permission, and restart the app to work. I still dont understand why with the " manifest/device_filter " working, it fails when the app is run, but it works perfect when I plug the arduino. Thanks
Erel B4X founder Staff member Licensed User Longtime User Apr 1, 2021 #4 I see and I don't think that you can do anything software-wise about it. Upvote 0