-
Notifications
You must be signed in to change notification settings - Fork 148
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
Connection doesn't open #8
Comments
Unfortunately, it is the library update that is causing this error. I've been trying to make it work for a couple of days now and lucky I found an older version of the library stored away. The moment I've plugged it in, it just started working with no issues whatsoever. |
Thanks Adrian. Any chance you can link the file? |
Hey, https://www.dropbox.com/s/fm4kn5avkgy9ghv/physicaloidlibrary.jar |
Thanks Adrian! |
Cool. No worries ;) |
Hi, |
@adriangradinar The link seems to be broken. Would you mind sharing it again? Thanks! |
I put the jar file that has been downloaded here. I wish this helps you. |
@kwaka1208 Thanks! |
Hello, From above conversation I understood that I need to use physicaloid library from here https://drive.google.com/file/d/0B92YYJtXXd45OU1hakxOSkVhWDg/edit?usp=sharing. I added the downloaded jar as shown in the below image but when I launch the app it says "unfortunately, Android-USB-Serial-Monitor-Lite has stopped" and the logcat has this messages as shown in the image Can someone help me in fixing this issue. |
in PhysicaloidLibrary/src/com/physicaloid/lib/usb/UsbCdcConnection.java if(mUsbAccess.openDevice(devNum,intfNum,ch)) {
if(DEBUG_SHOW){ Log.d(TAG, "Find VID:"+Integer.toHexString(usbdev.getVendorId())+", PID:"+Integer.toHexString(usbdev.getProductId())+", DevNum:"+devNum+", IntfNum:"+intfNum); }
mUsbConnectionEp.put(ch,new UsbCdcConnectionEp(mUsbAccess.connection(ch), getEndpoint(devNum, intfNum, UsbConstants.USB_DIR_IN), getEndpoint(devNum, intfNum, UsbConstants.USB_DIR_OUT)));
- mCdcAcmInterfaceNum = intfNum;
+ mCdcAcmInterfaceNum = intfNum - 1;
+ if (mCdcAcmInterfaceNum < 0)
+ mCdcAcmInterfaceNum = 0;
return true;
}
} |
The library currently supplied is bad! I used the one by @kwaka1208 . Thanks. @ksksue Please look into this. |
Thanks, @ylemkimon |
@patangova I followed the same steps as u did, and have the same problem.. Did you find any solution? |
Guys I am also facing the same issue.. |
My arduino vender id is 0x2a03 where as in your code it is set to 0x2341. |
Hi. Great work. Very helpful package. Thanks a lot. I just noticed that the issue is in the latest commit bug fix CDC-ACM. The interface index used is not correct I think. When I rollback When I replaced |
How you got this library to work in new gradle version? If you dont mind, you can give me your physicaloidlibrary.jar and d2xx.jar? |
Hi, I have a copy/fork with my fix, you can find it here I've compiled my project with this code 1 week before also with Android Studio. |
Hi @Maesltrom Contact me by Mail [email protected] or ping me through My Homepage |
hello |
This account is dead. A working version can be found here: |
I have tried your version also and it does not work. Do you have a jar file that I could use? I mean an already compiled lib |
Do any of the demos work? If so, then your code is to blame. |
non of the demo work
De : Andrew Kroll [mailto:[email protected]]
Envoyé : jeudi 19 septembre 2019 09:33
À : ksksue/PhysicaloidLibrary
Cc : Bear altimeters; Comment
Objet : Re: [ksksue/PhysicaloidLibrary] Connection doesn't open (#8)
Do any of the demos work? If so, then your code is to blame.
As far as a pre-compiled jar, Yeah, I can send you a link. Email me.
—
You are receiving this because you commented.
Reply to this email directly, view <#8?email_source=notifications&email_token=AATGSH5CKOA6RZ7SBFMYFALQKMTLHA5CNFSM4APHT5YKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7CQPNI#issuecomment-533006261> it on GitHub, or mute <https://github.com/notifications/unsubscribe-auth/AATGSH72UPHHI25OXEZOEH3QKMTLHANCNFSM4APHT5YA> the thread. <https://github.com/notifications/beacon/AATGSH6P7DCVTJBRMLNW6I3QKMTLHA5CNFSM4APHT5YKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7CQPNI.gif>
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
Garanti sans virus. <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> www.avg.com
|
I found what my issue was, I am using a ttl cable with a pl2303 chipset which is not supported |
I have added support for PL2303. I will fork the Physicaloid lib to publish my changes |
My changes can be found here |
I have debugged it and got it working. the endpoints were causing troubles |
All of this (and more!) has been done already in my fork. |
not everything has been done or is fully working because I have forked the code from your fork |
ahh! |
How do I create a .jar file of it? |
Hello
This is what you could try.
Create an aar file and rename it to zip. Open it up and extract the classes.jar from that file which should contain the classes your file
Regards
Boris
De : Luiz Fernando ***@***.***
Envoyé : 25 January 2022 02:17
À : ksksue/PhysicaloidLibrary
Cc : Bear altimeters; Comment
Objet : Re: [ksksue/PhysicaloidLibrary] Connection doesn't open (#8)
My changes can be found here https://github.com/bdureau/PhysicaloidLibrary
How do I create a .jar file of it?
—
Reply to this email directly, view <#8 (comment)> it on GitHub, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AATGSH4GP6HK4BVWDIO7UP3UXX2YBANCNFSM4APHT5YA> .
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> .
You are receiving this because you commented. <https://github.com/notifications/beacon/AATGSHYMKEPEI6F2A33N67TUXX2YBA5CNFSM4APHT5YKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHTLNBLQ.gif> Message ID: ***@***.***>
|
I am trying to convert project using the old FTDriver library to the Physicaloid library but i cannot get it to open a connection. USB permission pops up for the app and select allow but it never opens the connection to the attached device. Also, none of the tutorials will connect to my Arduino either when compiled with the Physicaloid library.
I have even tried compiling the Serial monitor lite with the Physicaloid library downloaded from here, also won't connect to the Arduino ("Cannot connect") . Though when I try the one from the app store it works fine.
Not sure if this is due to the latest library update?
The text was updated successfully, but these errors were encountered: