Ï€
<-
Chat plein-écran
[^]

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

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

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

Message non lude Adriweb » 10 Mar 2024, 15:24

Congrats!

I was on the live youtube for just a bit (enough to see it working :P) so I can attest it's pretty cool 😎

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.5%
 
Messages: 14677
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 acagliano » 15 Avr 2024, 00:03

Public Beta Released

The implementation of lwIP for the TI-84+ CE is now officially moved into public beta as we await work from the toolchain devs on a method to make this a dynamic library. I was advised by commandblockguy that at present we use this as a static library.

Source: https://github.com/acagliano/lwip-ce
Simply run the following commands to set yourself with a working repo:
Code: Tout sélectionner
git clone https://github.com/acagliano/lwip-ce # into whatever dir you want
cd lwip-ce
git submodule update --init --recursive

This will clone the repo and fetch app tools. For now, anything using lwIP will need to be build as an app due to the sheer size of the code-base.

For drivers, I have implemented USB CDC for ECM and NCM devices. This means that most 10/100/1000 and most Gigabit adapters will work fine. You may also use a WPS-capable Ethernet-Wifi adapter. WPS is needed because SSID polling and selection is not a thing, although if anyone would like to write, test, and submit a driver for that for a specific chipset, please do so.

It is the intent with this project to allow addons via extensions/modules that users can drop in that lwIP will load, either via some internal call like (eg) lwipce_load_ext(TLSDRVCE) [this would load a hypothetical TLS implementation) or as a dynamic library via LIBLOAD (more on that later - WIP). This would allow users to hypothetically build applications like HTTP(s), SMTP, SSH, as well as to extend the driver set (ex: adding a driver for a wireless card). We are unsure at present how this would actually function internally and are open to suggestions.
Avatar de l’utilisateur
acagliano
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 12%
 
Messages: 11
Inscription: 14 Fév 2024, 19:45
Genre: Non spécifié
Calculatrice(s):
→ MyCalcs profile
GitHub: acagliano

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

Message non lude tom-garnier » 27 Mai 2024, 08:52

Hello,
I have a Ti-83 Premium CE, does lw-ip will work on it?
And I didn’t know how it’s work, can you explain me?
Thanks-you
Avatar de l’utilisateur
tom-garnier
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Prochain niv.: 50%
 
Messages: 55
Inscription: 18 Mai 2024, 09:27
Localisation: Bretagne, France
Genre: Homme
Calculatrice(s):
→ MyCalcs profile
GitHub: tom-garnier

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

Message non lude acagliano » 29 Juin 2024, 05:01

tom-garnier a écrit:I have a Ti-83 Premium CE, does lw-ip will work on it?

If it's an ez80 cpu, perhaps. Try it out and let us know.

tom-garnier a écrit:And I didn’t know how it’s work, can you explain me?

It's not an easy thing to figure out but the main.c stub is a good starting point.

Headers
Code: Tout sélectionner
// I recommend you include these 4 files AT LEAST for basic functionality.
// init and timeouts are needed to initialize the stack and to poll the timers
// netif is optional; since the usb interacts with netifs internally, you will need to poll for an up netif and use it
#include "lwip/init.h"
#include "lwip/timeouts.h"
#include "lwip/netif.h"


Initialization
Code: Tout sélectionner
lwip_init();     // <== start with this before using lwip; it initializes the stack

// initialize the usb ethernet drivers
usb_Init(eth_handle_usb_event, NULL, NULL, USB_DEFAULT_INIT_FLAGS);


The above should come before pretty much anything.
Using lwip is modular. So what this means is that you have to make use of the API for whatever protocol you plan to use. For example, if you want to use TCP, you need to include "lwip/tcp.h" (or altcp.h). You will then need to follow the documentation provided by non-gnu for using it.
https://www.nongnu.org/lwip/2_1_x/group ... __api.html

*NOTE* you can only use the callback API ("raw" API). Anything else does not work on the calculator because it's NOSYS.
Avatar de l’utilisateur
acagliano
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 12%
 
Messages: 11
Inscription: 14 Fév 2024, 19:45
Genre: Non spécifié
Calculatrice(s):
→ MyCalcs profile
GitHub: acagliano

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

Message non lude Lionel Debroux » 29 Juin 2024, 07:48

The 83PCE is the 84+CE with a better-featured OS (exact math engine), so the code really ought to work on both models.
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Avatar de l’utilisateur
Lionel DebrouxSuper Modo
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Prochain niv.: 11.2%
 
Messages: 6861
Inscription: 23 Déc 2009, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
→ MyCalcs profile
Classe: -
GitHub: debrouxl

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

Message non lude acagliano » 29 Juin 2024, 17:33

Also I added better usage directives to the readme.
Hopefully this helps anyone aiming to use it.

https://github.com/cagstech/lwip-ce/blo ... /README.md
Avatar de l’utilisateur
acagliano
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 12%
 
Messages: 11
Inscription: 14 Fév 2024, 19:45
Genre: Non spécifié
Calculatrice(s):
→ MyCalcs profile
GitHub: acagliano

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

Message non lude acagliano » 16 Juil 2024, 04:09

The work on TLS has begun.
https://github.com/cagstech/lwip-ce/blo ... ls/INFO.md

This file presents some notes on what cipher-suites are required versus what we can currently support and notes on what else would need to be implemented.
We are (or more accurately--I am, unless others offer help) building a TLS implementation completely from scratch in ez80 assembly.

I therefore request prayers for the state of my soul. Though, assistance from any who know cryptography would work as well.
Avatar de l’utilisateur
acagliano
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Prochain niv.: 12%
 
Messages: 11
Inscription: 14 Fév 2024, 19:45
Genre: Non spécifié
Calculatrice(s):
→ MyCalcs profile
GitHub: acagliano

Précédente

Retourner vers Langages alternatifs

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 5 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.
Reprise de ton ancienne fx-92 Collège ou Graph 25/35/90 à 3€ peu importe son état. Même non fonctionnelle et donc invendable, même ancienne Graph 35 non conforme aux programmes (pas de Python), même ancienne Graph 25/35 inutilisable aux examens (pas de mode examen) et donc invendable. Etiquette de retour fournie, pas de frais de port à payer.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
12345
-
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.
1069 utilisateurs:
>1061 invités
>4 membres
>4 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)