Hello all, i really need some help to brainstorm in order to find a solution to this problem, from what i've read is an android bug that has been there for years, i'm surprised it hasn't been fixed.
I have a device that communicates with my application through an USB Serial cable, I can open the port just fine and get the required permissions. If I run the application the first time I can communicate and download the data from the device just fine, but If i try to send the download command again to the device to do another download the usb port seems to not work anymore, I would have to physically disconnect the usb port from the phone and re-connect it in order for the usb to regain connection, i read this post here https://www.b4x.com/android/forum/t...ccessory-before-opening-it.30222/#post-175546
From what I understand it seems to be an android bug, in the link provided in that post they mention dong a soft reset, but i have no idea what that is, or even how to do that with B4A, if someone has more experience with this would you please shine some light on this issue, My application requires to be pinging the device all the time, and only when the user placed the device in download mode it would start downloading the data and check if there's new data available. But after the first succesful download it seems that the usb doesn'tt keep working.
Any thought or ideas would be greatly appreciated.
Thanks,
Walter
I have a device that communicates with my application through an USB Serial cable, I can open the port just fine and get the required permissions. If I run the application the first time I can communicate and download the data from the device just fine, but If i try to send the download command again to the device to do another download the usb port seems to not work anymore, I would have to physically disconnect the usb port from the phone and re-connect it in order for the usb to regain connection, i read this post here https://www.b4x.com/android/forum/t...ccessory-before-opening-it.30222/#post-175546
From what I understand it seems to be an android bug, in the link provided in that post they mention dong a soft reset, but i have no idea what that is, or even how to do that with B4A, if someone has more experience with this would you please shine some light on this issue, My application requires to be pinging the device all the time, and only when the user placed the device in download mode it would start downloading the data and check if there's new data available. But after the first succesful download it seems that the usb doesn'tt keep working.
Any thought or ideas would be greatly appreciated.
Thanks,
Walter