Uzenet

Topics regarding the Uzebox hardware/AVCore/BaseBoard (i.e: PCB, resistors, connectors, part list, schematics, hardware issues, etc.) should go here.
User avatar
uze6666
Site Admin
Posts: 4449
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Uzenet

Post by uze6666 » Thu Oct 25, 2018 12:30 am

you don't know if the module is perhaps already in passthrough mode (Resetting the Uzebox does nothing to the state of the Wifi module it seems. So your game can boot up while the module is still in passthrough mode) nor do you know if it's even there!
Just re-read this bit and find it quite perplexing...the reset does not take you out of passthrough more? I can get out on the portable but that may be because I cycle the enable pin. Sucks I didn't think to add the pulldown to the CH_PD pin to the main pcb. :( I should probably make it standard on the new pcbs...what do you think? I would need to come up with a patch for those with the 1.3.1 rev...would need some trace cutting and wires. Would you apply it to your boards?

User avatar
D3thAdd3r
Posts: 2422
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: Uzenet

Post by D3thAdd3r » Thu Oct 25, 2018 3:34 am

I would modify mine and I would guess it is relatively easy for anyone who can already build the kit. Doesn't seem too late IMO. A software fix seems easy too, but I don't recall the quirks of all that mode changing stuff, if any.

User avatar
L4rry
Posts: 239
Joined: Sun Dec 28, 2014 7:19 am
Location: Cape Town, South Africa

Re: Uzenet

Post by L4rry » Fri Oct 26, 2018 1:28 pm

uze6666 wrote:
Thu Oct 25, 2018 12:30 am
Just re-read this bit and find it quite perplexing...the reset does not take you out of passthrough more? I can get out on the portable but that may be because I cycle the enable pin. Sucks I didn't think to add the pulldown to the CH_PD pin to the main pcb. :( I should probably make it standard on the new pcbs...what do you think? I would need to come up with a patch for those with the 1.3.1 rev...would need some trace cutting and wires. Would you apply it to your boards?
Pressing the reset button does not take me out of passthrough mode no. However, if I call the following software reset code as present in the uzenet demo, then that seems to do the trick:

Code: Select all

void wifiHWReset(){
    //reset module
    DDRD|=(1<<PD3);
    PORTD&=~(1<<PD3);
    WaitVsync(1);
    PORTD|=(1<<PD3);
}
I neglected to use this initially. I wouldn't mind doing a hardware mod either, but will rely on this software call for now.

User avatar
uze6666
Site Admin
Posts: 4449
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Uzenet

Post by uze6666 » Sat Oct 27, 2018 4:37 am

Yes Lee is right, software reset is *essential* in this case. :)

User avatar
L4rry
Posts: 239
Joined: Sun Dec 28, 2014 7:19 am
Location: Cape Town, South Africa

Re: Uzenet

Post by L4rry » Wed Dec 19, 2018 4:27 pm

So I've finally finished with Peer to Peer local networking support for Tank Fu. You can find the binaries for release v3.1 here at the top of the Tank Fu thread along with the release notes. So since I've pasted my networking demo earlier on in this topic, I've made the following changes based on testing and your feedback:
  • I've settled on a baud-rate of 19200 single speed mode
  • I'm using an Rx buffer size of 64 bytes and a Tx buffer size of 32 bytes. So more RAM tiles available
  • I've implemented a 'Send until Ack Received' for key network messages that should they get dropped, will break the game
  • In game messages are largely idempotent to minimize any impact of duplicate messages
  • Replaced floating point calculations with fixed point calcuations to allow for a snappy game loop, less RAM usage and less flash usage
  • Replaced PCM effects with wave table effects to reclaim flash
  • Ensure RESET pin stays low when Wifi is not in use
  • Wifi module is only enabled once 'Host LAN Game' or 'Join LAN Game' is selected. Not at startup anymore.
I can't find any more game breaking bugs and I feel I've reached the point of 'That's good enough'. Now I'm just looking forward to that Uzebox portable so I can play this as intended :)

User avatar
L4rry
Posts: 239
Joined: Sun Dec 28, 2014 7:19 am
Location: Cape Town, South Africa

Re: Uzenet

Post by L4rry » Sun Jan 13, 2019 12:44 am

Some Uzenet fun! Me recording my work colleagues duking it out in Tank Fu...


User avatar
D3thAdd3r
Posts: 2422
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: Uzenet

Post by D3thAdd3r » Tue Jan 15, 2019 1:28 am

It looks to play ultra smooth, very exciting development there! 8-)

User avatar
Jubatian
Posts: 1355
Joined: Thu Oct 01, 2015 9:44 pm
Location: Hungary
Contact:

Re: Uzenet

Post by Jubatian » Wed Jan 16, 2019 4:42 pm

Huh, nice, so at least now we have a working networked game as well, and a very good game at that! :)

User avatar
nicksen782
Posts: 667
Joined: Wed Feb 01, 2012 8:23 pm
Location: Detroit, United States
Contact:

Re: Uzenet

Post by nicksen782 » Thu Jan 24, 2019 8:19 pm

Feature request/question:

Could the ESP be modified to accept a command that would have it run a cURL script or wget? It would be a really cool idea if it could pull down a menu of games from a server which could then be downloaded (individually or in part) onto the SD card. Maybe something as easy as a JSON file or CSV that keeps an up to date list of all games and the urls to the remoteload.json files for each game. That file indicates where all the required files for a game are.

I've been asked before to create a downloadable zip of the Uzebox games. Still a good idea... but what if the Uzebox could go get those games for you? Like a bootloader to the bootloader. Go get the files, give control back to the Uzebox's bootloader. Bootloader sees the files, load the game, easy!

Is this possible? It would likely increase interest in the ESP? Another idea would be to create an Uzebox "game" that could control the ESP and get the files that way (minimal changes to the ESP I assume.) I really like the idea of being able to have an up-to-date Uzebox game collection on my device. The Online Player already has this and it is beneficial. We can apply the same benefit to the actual hardware.

If I could get some help with the ESP ( I have one in my Uzebox ) then I would be very interested in creating that Uzebox "game".

User avatar
uze6666
Site Admin
Posts: 4449
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Uzenet

Post by uze6666 » Fri Jan 25, 2019 9:12 pm

It would be a really cool idea if it could pull down a menu of games from a server which could then be downloaded (individually or in part) onto the SD card.
That's a very neat idea and certainly feasible. If you can expose a REST endpoint to get a binary of some game, it can be downloaded directly to the SD card. I can't recall if we have write support in the SD library but worst case it's possible to use petitfatfs.

About tankfu, it's pretty awesome. :mrgreen: I have to test it this weekend, now that I have two devices with uzenet.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest