π
<-

lwIP Library with CDC Ethernet for the TI-84+ CE

Assembleur, Axe, C/C++, ICE...

lwIP Library with CDC Ethernet for the TI-84+ CE

Message non lude acagliano » 14 Fév 2024, 19:52

Figured this might be a worthy share.

For a while I've been working on a number of network-reliant applications for the TI-84+ CE and been using some hackish implementation of SRLDRVCE with a TCP/SRL bridge running on a computer to facilitate a network.
Recently I finally decided to do things properly, and with some help from commandblockguy implement a fully-functional TCP/IP stack using USBDRVCE, lwIP code, and a self-written CDC-ECM driver.

Source: https://github.com/acagliano/lwip-ce

I've also prepared some screenshots of the current unit tests of this project. The below screenshot was recorded on the veth branch of CEmu using a virtual Ethernet device.
Image

Here is a video recording the screen of an actual TI-84+ CE Python edition.


Once more tests confirm this stable, it will be packaged and released as an application dylib for use with the CE C toolchain so that developers can use the TCP/IP in their projects easily.
Dernière édition par acagliano le 15 Avr 2024, 00:03, édité 1 fois.
Avatar de l’utilisateur
acagliano
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 28%
 
Messages: 13
Inscription: 14 Fév 2024, 19:45
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile
GitHub: acagliano

Re: lwIP Library with CDC-ECM for the TI-84+ CE

Message non lude Adriweb » 14 Fév 2024, 21:53

Congrats! that seems like a whole lot of work and it pays off :)
It's a good idea to provide it as as toolchain-compatible lib too.

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
My calculator programs
Mes programmes pour calculatrices
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 78.9%
 
Messages: 14733
Images: 1119
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb

Re: lwIP Library with CDC-ECM for the TI-84+ CE

Message non lude Epharius » 15 Fév 2024, 08:50

Well done! How did you plug you calculator to make it work? Does it require an adapter or something?
Le projet Geometry Dash est terminé ! N'hésitez pas à aller jeter un coup d’œil au topic du projet ! Vous pouvez le télécharger ici.

Unis par la flèche sacrée de cupidon :favorite:
Image
Avatar de l’utilisateur
EphariusPremium
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 8%
 
Messages: 1160
Images: 4
Inscription: 08 Déc 2014, 17:38
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile
Classe: Ensimag
GitHub: MathisLav

Re: lwIP Library with CDC-ECM for the TI-84+ CE

Message non lude acagliano » 15 Fév 2024, 16:38

Epharius a écrit:Well done! How did you plug you calculator to make it work? Does it require an adapter or something?

Yes. A USB-mini to USB-A OTG adapter and then a USB-A to Ethernet adapter. From there just plug into a router or switch and you’re golden.

Edit: This library supports CDC-ECM. There is no support for EEM or NCM (yet?). So if your Ethernet adapter is not an ECM device, it will NOT work with this.
Avatar de l’utilisateur
acagliano
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 28%
 
Messages: 13
Inscription: 14 Fév 2024, 19:45
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile
GitHub: acagliano

Re: lwIP Library with CDC-ECM for the TI-84+ CE

Message non lude acagliano » 17 Fév 2024, 21:47



We have a functioning demo, it would appear.
Moving on to a private beta with a number of interested persons. Just poke me here, on Cemetech DM, or Discord (acagliano) if you want to join the beta test.

You will need:
1. Your calculator (TI-84+ CE)
2. A USB-miniB to USB-A OTG adapter
3. A USB-A to Ethernet device with an ECM configuration (NCM/EEM devices not currently supported)
4. An Ethernet cable plugged into a router or switch.

You will also need the USBDRVCE library on your calculator.

EDIT: You may get updates for the project or join the beta test by going to https://discord.gg/3hBR9QwJyC. When prompted for what you want to do, select "Help Test Things" and you'll be given tester role which will allow you to see lwIP's beta testing channel.
Avatar de l’utilisateur
acagliano
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 28%
 
Messages: 13
Inscription: 14 Fév 2024, 19:45
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile
GitHub: acagliano

Re: lwIP Library with CDC-ECM for the TI-84+ CE

Message non lude acagliano » 22 Fév 2024, 16:27

Addendum

If you are like some others I've talked to who feel like plugging their calc into their router is an inconvenience, I have good news for you. I have purchased and tested this device: https://a.co/d/igLQRQl. You need to use WPS to connect the adapter to your router, at which point, connect your USB-mini -> USB-A -> Ethernet rig to this adapter via an Ethernet cable and you can connect your calc to your network wirelessly. I imagine any similar device will also work as long as it supports Ethernet to WiFi and WPS as well as onboard encryption.
Avatar de l’utilisateur
acagliano
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 28%
 
Messages: 13
Inscription: 14 Fév 2024, 19:45
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile
GitHub: acagliano

Re: lwIP Library with CDC-ECM for the TI-84+ CE

Message non lude Epharius » 22 Fév 2024, 17:19

Nice! Did it require to change something to your lib to add WPS support? Or does the Wi-Fi device handle it by itself?
Le projet Geometry Dash est terminé ! N'hésitez pas à aller jeter un coup d’œil au topic du projet ! Vous pouvez le télécharger ici.

Unis par la flèche sacrée de cupidon :favorite:
Image
Avatar de l’utilisateur
EphariusPremium
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 8%
 
Messages: 1160
Images: 4
Inscription: 08 Déc 2014, 17:38
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile
Classe: Ensimag
GitHub: MathisLav

Re: lwIP Library with CDC-ECM for the TI-84+ CE

Message non lude acagliano » 22 Fév 2024, 17:34

Epharius a écrit:Nice! Did it require to change something to your lib to add WPS support? Or does the Wi-Fi device handle it by itself?

It's handled by the device. No library modifications needed. There probably is a way to interface with the device FROM the calc to select a network but it's not required (though we may add a driver for that if we can find a standard for it). You just follow the steps for WPS connection, and then just use lwIP as normal.
Avatar de l’utilisateur
acagliano
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 28%
 
Messages: 13
Inscription: 14 Fév 2024, 19:45
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile
GitHub: acagliano

Re: lwIP Library with CDC-ECM for the TI-84+ CE

Message non lude acagliano » 07 Mar 2024, 05:12

Just an update.
The lwIP private beta will be taking place tomorrow at 7:30 PM US Eastern.
Event Link: https://discord.gg/hQr654Dw?event=1214766328921980928
It will be streamed live on my YouTube channel. https://www.youtube.com/channel/UCyEcVV ... 9V7EfdW3HQ
Probably won't be a super long test. If anyone wants to participate directly, they can join the server linked above and indicate they'd like to help with testing. Bear in mind the hardware you need to make this work.

Update: Stream/Video link. https://youtube.com/live/fD2n7CzFeZU?feature=share
Avatar de l’utilisateur
acagliano
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 28%
 
Messages: 13
Inscription: 14 Fév 2024, 19:45
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile
GitHub: acagliano

Re: lwIP Library with CDC-ECM for the TI-84+ CE

Message non lude acagliano » 09 Mar 2024, 15:41

Update

The beta test was live a few nights ago and no client-side issues were identified.


Project will be awaiting distribution as a library and move into public beta soon.
Avatar de l’utilisateur
acagliano
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 28%
 
Messages: 13
Inscription: 14 Fév 2024, 19:45
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile
GitHub: acagliano

Suivante

Retourner vers Langages alternatifs

Qui est en ligne

Utilisateurs parcourant ce forum: ClaudeBot [spider] et 4 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
843 utilisateurs:
>820 invités
>14 membres
>9 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)