Page 1 sur 1

Lua ASI not detecting device

Message non luPosté: 04 Fév 2023, 00:02
de volkov
I was trying to follow this: https://ticalc.org/archives/files/filei ... 46659.html
,but since i don’t have an arduino micro/leonardo, I wanted to try making this with an esp32 ( cp2102 usb2uart bridge ). I was able to change the vid / pid of the device to match the values in the README ( 0x0451 and 0xBEF3 ) but the device isn’t detected by the nspire. Maybe it’s my cable that’s faulty, but it seems fine ( i checked that every pin is connected properly to the other side with a multimeter ). has anyone else tried this, even with an arduino micro/leonardo?
Also used tried this to look for connections: https://ticalc.org/archives/files/filei ... 46657.html

Ti-Nspire CX II-T
Software version 5.4
Lua API version 2.7 ( asi library is included since 2.7 )

Re: Lua ASI not detecting device

Message non luPosté: 04 Fév 2023, 00:08
de Adriweb
It would be interesting to try on a recent OS (like 5.4 or 6.0) on a CX II, a previously-known-working configuration ("Arduino Leonardo (after faking the USB VID+PID with the MSP432 values : 0x0451 and 0xBEF3)") to make sure that this still works... it has been many years since we've (Jim, critor, and I) have messed with this...

Re: Lua ASI not detecting device

Message non luPosté: 04 Fév 2023, 10:30
de volkov
I could try that on monday/tuesday, ill just need to buy an arduino micro(which is essentially the leonardo, both use the atmega32u4) and a friend of mine could lend me his cx II, ill ask him.

Re: Lua ASI not detecting device

Message non luPosté: 15 Fév 2023, 18:36
de volkov
Sooo, I got a CX on version 4.3 (I assume that’s about the one you also used originally) hooked up to an arduino micro/leonardo as described previously, still no results. here are a few pics of the setup and important information: https://imgur.com/a/hI93PKi

Re: Lua ASI not detecting device

Message non luPosté: 16 Fév 2023, 10:48
de Adriweb
So, I asked Jim, and he said it could be the USB adapter that's the issue, OTG may be tricky... if you have a OTG adapter mini-USB <=> USB, you could check with a keyboard or mouse on the CX II (not the CX) that it works fine, first ?

Re: Lua ASI not detecting device

Message non luPosté: 16 Fév 2023, 12:49
de volkov
I don’t have a CX II available sadly, I could try with CX or CX II-T though

Re: Lua ASI not detecting device

Message non luPosté: 16 Fév 2023, 12:50
de Adriweb
Yeah that's what I mean, there's no difference for this anyway

Re: Lua ASI not detecting device

Message non luPosté: 18 Fév 2023, 19:08
de volkov
Got it working by swapping the mini port out for a mini-a. now detects the esp32, arduino, and keyboard, although it’ll only communicate with the arduino (the keyboard behaves as expected with the cx, but the esp32 might not work due to using usb 1.1 instead of 2.0) i’ll be able to test everything on the cx II on wednesday

Re: Lua ASI not detecting device

Message non luPosté: 18 Fév 2023, 19:09
de Adriweb
Great! Let us know :)