IPB

Benvenuto Visitatore ( Log In | Registrati )

Seguici su:    
> sistem link
lupo
messaggio Saturday 3 July 2004 - 19:32
Messaggio #1

Utente GBARL
Gruppo icone

Gruppo: Membri
Messaggi: 17
Iscritto il: Wed 19 May 2004 - 17:40
Utente Nr.: 684
Feedback: 0 (0%)




scusate, e possibile giocare con il visula boy advance,in sistem link,inserendo l'ip del computer di un amico?l'opzione c'e' mi da una porta 55555 qualcuno sa dirmi gli eventuali parametri?grazie
 Go to the top of the page
 
+Quote Post
 
Start new topic
Risposte
Lino
messaggio Friday 16 July 2004 - 18:54
Messaggio #2

Fanatic GBA/NDS
Gruppo icone

Gruppo: Banned Lamer
Messaggi: 843
Iscritto il: Wed 21 January 2004 - 18:59
Utente Nr.: 44
Feedback: 1 (100%)




Ma, veramente quando si possa usare non saprei, ma quello che posso dire che non riesco a capire come funzioni, ho questo esempio, scaricato da gbadev, e dopo alcune ore non capisco come funzioni il gba link, ti riporto il codice

CITAZIONE
void ExchangePackets(u16 outPacket) {

u16 myPlayerNumber = EWRAM[0xc5];
if (myPlayerNumber == 0) {       // IF WE'RE THE MASTER
  while(SIOCNT & SIO_ACTIVE) { }     // wait until the bus is not active
  SIODATA = outPacket;       // post our data
  SIOCNT = SIO_MP115200 | SIO_ACTIVE | SIO_IRQ; // initiate the transfer

} else {           // IF NOT THE MASTER
  SIODATA = outPacket;       // just post our data
  while(!(SIOCNT & SIO_ACTIVE)) { }    // then wait until the bus becomes active
}
while(SIOCNT & SIO_ACTIVE) { }      // wait until it's done
SIODATA = outPacket;        // repost our packet, in case of timing problems
}


void ExchangeStructs(int totalPlayers) {

u16 sender,receiver,totalResponses,totalPackets,inPacketNumber,currentPacketNumber,i
nPacket;
u8* targetStruct;
u8 inData;
u16 outPacket = 0xFFFF; // 0xFFFF is the "null" code for the IO Bus
u16 myPlayerNumber = EWRAM[0xc5];

// loop through all the players so they can update everyone's copy of their mpData Struct
for (sender=0; sender<totalPlayers; sender++ ) {

  // figure out which mpData struct we're targeting and get its size
  if (sender==0) {
   totalPackets = sizeof(mpData0);
   targetStruct = (u8*)&mpData0;
  } else if (sender==1) {
   totalPackets = sizeof(mpData1);
   targetStruct = (u8*)&mpData1;
  } else if (sender==2) {
   totalPackets = sizeof(mpData2);
   targetStruct = (u8*)&mpData2;
  } else {
   totalPackets = sizeof(mpData3);
   targetStruct = (u8*)&mpData3;
  }

  // get ready to send or receive
  currentPacketNumber = 0;
 

  if (myPlayerNumber == sender) { // if we are the sender


   while (currentPacketNumber < totalPackets) { // iterate across our mpData and send it a byte at a time

    // encode the packet: the 1st 8 bits contain the packetNumber, and 9-16 contain the data
    outPacket = (currentPacketNumber<<8) + *(targetStruct+currentPacketNumber);

   
    totalResponses = 0;  // wait for everyone to say they are ready by posting the packet back to you
    while (totalResponses < totalPlayers) {
    
     totalResponses = 0;
     ExchangePackets(outPacket);

     for (receiver=0; receiver<totalPlayers; receiver++ ) {
     
      inPacket = SIOMPRECV[receiver];
      if (inPacket == outPacket) {
       totalResponses++;
      }
     }
    }
   
    // move on to the next packet
    currentPacketNumber++;
   }

  } else { // we are a receiver


   while (currentPacketNumber < totalPackets) {

    ExchangePackets(outPacket);
    inPacket = SIOMPRECV[sender];
    inPacketNumber = (inPacket >> 8);
    inData = (u8)inPacket;

    // if it's the next packet we need, then grab it
    if (inPacketNumber == currentPacketNumber) {

     // grab our data
     *(targetStruct+inPacketNumber) = inData;
    
     // then let the sender know that we got it
     outPacket = inPacket;   
    
     currentPacketNumber++;
   
    }
  
   }
   // send our packets out one last time to make sure the
   // master got our final confirmation
   ExchangePackets(outPacket);
  }
}
}


Sinceramente non capisco quando il master dopo aver trasmesso si ritrovi sul suo buffer (SIOMPRECV) lo stesso valore trasmesso e dopo ritrasmettendo si trovi il valore dell'altro gba. Quando e' che l'altro gba puo' trasmettere? sigh.gif


olee.gif nell'email di notifica e' arrivata non altra risposta. olee.gif


--------------------
R4+EZ3In1+WifiLink+AceKard è migliore della R4
Campagna abbonamenti 2008-2009 qui


 Go to the top of the page
 
+Quote Post

Inserisci in questo messaggio
- lupo   sistem link   Saturday 3 July 2004 - 19:32
- - SirJoe   qeullo non è il sitem link è la porta su cui coll...   Saturday 3 July 2004 - 20:25
- - lupo   OK GRAZIE TANTE!   Sunday 4 July 2004 - 01:31
- - Jack   CITAZIONE (SirJoe @ Sabato 3 Luglio 2004 - 21...   Thursday 15 July 2004 - 10:57
- - SirJoe   CITAZIONE (Jack @ Giovedì 15 Luglio 2004 - 11...   Thursday 15 July 2004 - 14:22
- - Lino   Non sono riuscito a far partire il no$gba, co...   Thursday 15 July 2004 - 16:45
- - GbaDoctor   e' come se usi due gba per giocare in multipla...   Thursday 15 July 2004 - 17:02
- - Jack   CITAZIONE (SirJoe @ Giovedì 15 Luglio 2004 - ...   Friday 16 July 2004 - 11:38
- - SirJoe   CITAZIONE (Jack @ Venerdì 16 Luglio 2004 - 12...   Friday 16 July 2004 - 11:49
- - Lino   Per ora tutti i sistemi di comunicazione tra pc ed...   Friday 16 July 2004 - 17:43
- - SirJoe   CITAZIONE (bolide @ Venerdì 16 Luglio 2004 - ...   Friday 16 July 2004 - 18:06
- - Lino   Ma, veramente quando si possa usare non saprei, ma...   Friday 16 July 2004 - 18:54
- - SirJoe   premetto che non l'ho letto proprio con attenz...   Friday 16 July 2004 - 19:06
- - Lino   se mi dai una mano, giuro metto la tua firma. Per ...   Friday 16 July 2004 - 19:28
- - SirJoe   ok... bada sono le 3:34 di notte e la laurea è st...   Saturday 17 July 2004 - 03:04
- - Lino   Il valore di EWRAM[0xc5] e' inizializzato dura...   Saturday 17 July 2004 - 07:56
- - SirJoe   ho preso la demo del multiplayer gli sto dando un...   Saturday 17 July 2004 - 15:25
- - Lino   ok, ma la rsp mandala per pm se no ci fucilano.   Saturday 17 July 2004 - 17:28
- - SirJoe   fucilare te? un idolo del forum!!! e p...   Saturday 17 July 2004 - 17:54
- - SirJoe   ovviamente tutti gli altri che leggono possono e D...   Saturday 17 July 2004 - 17:55
- - Lino   E si ragazzi sta volta ci siamo, il RBA in link na...   Monday 19 July 2004 - 21:37
- - SirJoe   NON CI CREDO CI SEI RIUSCITO!!!! ...   Monday 19 July 2004 - 21:46
- - Lino   Per specifiche cosa intendi? Se sono per le modali...   Monday 19 July 2004 - 22:10
- - SirJoe   bene!!!! chiaro comunque bene f...   Monday 19 July 2004 - 23:47
- - Lino   Guarda questa SirJoe RascalBoy Advance Home Pag...   Tuesday 20 July 2004 - 17:47
- - Pie   Bella lì Lino!   Tuesday 20 July 2004 - 18:28
- - SirJoe   CITAZIONE (bolide @ Martedì 20 Luglio 2004 - ...   Tuesday 20 July 2004 - 18:34
- - Lino   CITAZIONE Bella lì Lino! Cosa???   Wednesday 21 July 2004 - 07:08
- - Lino   Ragazzi e' disponibile a questo link la versio...   Friday 23 July 2004 - 14:02
- - SirJoe   CITAZIONE (bolide @ Venerdì 23 Luglio 2004 - ...   Friday 23 July 2004 - 14:07
- - SirJoe   subito le prime domande...... Non ho ben capito s...   Friday 23 July 2004 - 14:10
- - Lino   Io ho testato il plugin fino a 4 istanze diverse d...   Friday 23 July 2004 - 14:17
- - SirJoe   CITAZIONE (bolide @ Venerdì 23 Luglio 2004 - ...   Friday 23 July 2004 - 14:18
- - SirJoe   Bolide ho fatto come volevi. per la traduzione d...   Friday 23 July 2004 - 14:54
- - DaRk_ViVi   Complimenti!   Friday 23 July 2004 - 15:03
- - SirJoe   bolide ti ho mandato il file fammi sapere   Friday 23 July 2004 - 15:38


Reply to this topicStart new topic
1 utenti stanno leggendo questa discussione (1 visitatori e 0 utenti anonimi)
0 utenti:

 

Modalità di visualizzazione: Passa a: Normale · Passa a: Lineare · Outline


RSS Versione Lo-Fi Oggi è il: Thu 3 July 2025- 19:35

.: GBArl.it :. Copyright © 2003-2020, All Rights Reserved.
Loghi, documenti e immagini contenuti in questo Sito appartengono ai rispettivi proprietari,
e sono resi pubblici sotto licenza Creative Commons

Creative Commons License
.::.