NetLink for GameBuino

Créations

ddrmax

il y a 6 ans

Petit Teaser

  • Avec une vitesse de 250 kbits/s a 2Mbits/s on pourrait faire du realtime (check des buffers de réception a chaque frame)
  • Avec l'utilisation de maxi 6 canaux, on peut faire un Multi a 6 joueurs (tour par tour et "pseudo realtime") ou trois joueurs (realtime) via une vraie communication bi-directionnelle
  • si j'arrive a faire une communication sans overhead (par exemple garder quel joueur est sur quel canal), vous avez la possibilité d'utiliser 32 octets (avec un overhead on serait du genre entre 16 et 20 octets
  • Pas besoin de forcer le CPU a faire de gros checks de perte de packets (en configurant bien la puce NRF24 s'en occupe)
  • Mode de Téléchargement (DS et 3DS Like)?


But:

Une librairie de multijoueur pour les jeux Gamebuino pour un multijoueur sans fil.

Mon but final est de vous fournir:

  • Une librairie qui:
    • est rapide
    • impacte un minimum les performances
    • facile a utiliser
    • complète
    • supporter 2+ connexions entre gamebuino (3 voir 6 joueurs)
    • permettre aux apps et jeux de fonctionner même si le NRF24L01 n'est pas connecté
  • Un Hardware qui:
    • est peu onéreux
    • facile a dupliquer
    • plug and play (Sur le BackPack)

Mon materiel:

Plein d'arduino nano (10+)

Plein de NRF24L01(des versions + normalement)

Une Gamebuino (et prochainement une seconde pour tests en condition réelles)


Librairie:

Convention d'appel: Link.fonction();

exemples de fonctions:

Link.SetServer(nbPlayers); //Pour l'hôte Multijoueur
Link.SearchServer(timeout);//Pour les Clients
Link.Player{X}//classe joueur contenant les données spécifiques de chaque joueur
Link.SendData(Data);



Petites informations importantes

datasheet:https://www.sparkfun.com/datasheets/Components/SMD/nRF24L01Pluss_Preliminary_Product_Specification_v1_0.pdf

APERÇU branchement:







Voila pour le moment :)


Voir la création

Aurélien Rodot

NEW il y a 6 ans

Super projet, comme on en a déjà discuté :)

Juste une petite remarque... GAMEBUINO® est une marque déposée. On autorise l'utilisation de  "compatible Gamebuino" sans problème, mais pas "Gamebuino link" qui laisse entendre que c'est un produit Gamebuino officiel ;)

ddrmax

il y a 6 ans

Je modifie le des que j'ai un pc sous la main

sinon le repo github peu garder le nom?

Je modifirai aussi l'image sauf si les photos presse sont autorisés à la modification ( je remplacerais par une photo de ma gamebuino branchée à un NRF24L01 des que c'est prêt)

Je pense le renommer sinon NetLink for Gamebuino(R)

ddrmax

NEW il y a 6 ans

Aurélien Rodot Aurélien Rodot

Je modifie le des que j'ai un pc sous la main

sinon le repo github peu garder le nom?

Je modifirai aussi l'image sauf si les photos presse sont autorisés à la modification ( je remplacerais par une photo de ma gamebuino branchée à un NRF24L01 des que c'est prêt)

Je pense le renommer sinon NetLink for Gamebuino(R)

Aurélien Rodot

il y a 6 ans

Merci pour ta compréhension et la réactivité :)

Comme je disais, tant qu'il n'y a pas de risque de confusion avec un produit officiel il n'y a pas de problème. Tu peux garder le visuel (qui est stylé), mais c'est vrai que je suis pas super chaud du recyclage du logo.

À bientôt, j'ai hâte de voir ce que ça donne :)

Aurélien Rodot

NEW il y a 6 ans

ddrmax ddrmax

Merci pour ta compréhension et la réactivité :)

Comme je disais, tant qu'il n'y a pas de risque de confusion avec un produit officiel il n'y a pas de problème. Tu peux garder le visuel (qui est stylé), mais c'est vrai que je suis pas super chaud du recyclage du logo.

À bientôt, j'ai hâte de voir ce que ça donne :)

ripper121

NEW il y a 6 ans

Please translate to english

hn3000

il y a 6 ans

- speeds from 250kb/s to 2mb/s and up to 6 channels

- supports up to 6 players

- low CPU overhead 

- allows 32 bytes per packet


But:


not finished,


- library for multiplayer games

  - quick

  - easy to use

  - high performance

  - allows more than 2 connections

  - allows games to work without the NRF24L01 connected


hardware:

  - simple hardware

  - easy to replicate


(the rest is a discussion about the fact that Gamebuino is a registered trademark, the author then offered to change the name to avoid infringing)

hn3000

NEW il y a 6 ans

ripper121 ripper121

- speeds from 250kb/s to 2mb/s and up to 6 channels

- supports up to 6 players

- low CPU overhead 

- allows 32 bytes per packet


But:


not finished,


- library for multiplayer games

  - quick

  - easy to use

  - high performance

  - allows more than 2 connections

  - allows games to work without the NRF24L01 connected


hardware:

  - simple hardware

  - easy to replicate


(the rest is a discussion about the fact that Gamebuino is a registered trademark, the author then offered to change the name to avoid infringing)

ripper121

NEW il y a 6 ans

Would be cooler to port it to ESP8266 or ESP32.

Than we have a real online connection and everybody can play with everone

ishotjr

NEW il y a 6 ans

Hi, it looks like the nRF24L01+ uses SPI - I'm unclear as to how far you've got with this project, but perhaps you can help me out here:


https://gamebuino.com/community/topic/using-spi-with-the-backpack?page=1


Thanks! :)

Aurélien Rodot

il y a 6 ans

I'm answering everything I can as soon as I see it, no need to cross-post links from topics to topics ^^

Aurélien Rodot

NEW il y a 6 ans

ishotjr ishotjr

I'm answering everything I can as soon as I see it, no need to cross-post links from topics to topics ^^

ishotjr

il y a 6 ans

No worries - I was hoping the original author of this might be able to help me out since I'd not received a reply after a few days. <3

ishotjr

NEW il y a 6 ans

Aurélien Rodot Aurélien Rodot

No worries - I was hoping the original author of this might be able to help me out since I'd not received a reply after a few days. <3

ishotjr

NEW il y a 5 ans

@ddrmax I noticed you connected directly to the back of your META rather than using the shield adapter - can you tell me how you know what pins are what?  Thanks!! :)

Aurélien Rodot

il y a 5 ans

Heyyy please don't ask the same question everywhere, it won't make people answer faster ^^

Redirecting to your original discussion >>> https://gamebuino.com/community/topic/backpack-connector-pinout

Aurélien Rodot

NEW il y a 5 ans

ishotjr ishotjr

Heyyy please don't ask the same question everywhere, it won't make people answer faster ^^

Redirecting to your original discussion >>> https://gamebuino.com/community/topic/backpack-connector-pinout

ishotjr

il y a 5 ans

I understand the concern, but it was a different question - I was hoping that by @mentioning @ddrmax, who apparently understands the pinout, I might get some more insight.

ishotjr

NEW il y a 5 ans

Aurélien Rodot Aurélien Rodot

I understand the concern, but it was a different question - I was hoping that by @mentioning @ddrmax, who apparently understands the pinout, I might get some more insight.

jicehel

NEW il y a 5 ans

ddrmax, tu as du nouveau là dessus ? C'était prometteur et intéressant. Je ne sais pas si tu as pu finir et faire un petit programme de démo.