Jump to content

Generation 1 Link Protocol


Recommended Posts

Hey all, i've been working with a few friends on a device and some software to trade and battle Generation 1 with real devices, over the internet. I know this isn't exactly an original or new idea, and i'm aware of a handful of other projects that have managed it with some success. However, the existing implementations fall short in quite a few places in my opinion and it's always been an interesting topic to me, so i figured i'd give it a shot myself.

So far, i've managed to proof of concept some spoof trades on real hardware with the device i built, but i'm currently using the real gameboy as the clock source which is a non starter for this project due to the way the gameboy's link works.

 

TLDR:

I'm hoping there's someone out there who understands the gen 1 link protocol enough that i could pick someones brain about it. I'm currently making progress on it, but i feel like this information is out there somewhere, and i would rather spend time writing and documenting the protocol for the community than i would writing another arduino implementation of it.

 

Anyway i plan to update this thread when and if i have anything interesting to share. If anyone is interested in getting directly involved i created a small discord for it https://discord.gg/ECTaJXtCCN 

We also have a few repos up on the github org https://github.com/CableClub. everything is still fairly early POC but i think there's already some good information here for anyone who is looking for it

Link to comment
Share on other sites

Maybe stacksmashing could help you reverse the link protocol, he's reverse engineered Tetris to the point its playable online via a server / special dongle he's made:

You might have already seen this, however it was only released a couple of weeks a go, so possibly not.

I'd certainly be interested in this, I always wanted to be able to link my GameBoy up to the PC and trade online as a kid, it would be great if that was finally possible!

  • Ditto 1
Link to comment
Share on other sites

3 hours ago, SpringtraP-MasK said:

wonder if that adapter would allow trades from emulator to actual hardware. i wanted to know if that little thing could do it. 

(this was before i had accses to a homebrew wii and pkhex)

 

this is actually how I've been testing. ive managed to trade with BGB emulator. the BGB link protocol is a little funky but i managed to cobble it together.

ive got the protocol pretty much completely figured out at this point. ive got the device i designed acting as a "master" clock source which is the important part since it allows for exact control of when a byte goes in or out. 

currently, the pokemon link protocol state machine is implemented in the device firmware itself but im still playing around with a few different implementations and might not stick with it. works great for a proof of concept tho.

i think the next step is going to be connect a second Gameboy and link device up and try to get the trade to happen over a network.

will grab a video of the entire thing tomorrow for some eye candy.

Link to comment
Share on other sites

Posted (edited)

Sorry for the double post, might be babbling to myself here but anyway here goes.

 

20210520_085331.jpg?width=493&height=658

Pic isn't much, but I've mapped out the protocol enough to consistently perform trades with BGB. i don't have a second functioning device yet to try out a internet trade, but i'm almost positive it would work. There's a lot of cleanup to do before it goes live, but it's really close. I'm writing up an extensive document on how the link protocol works for anyone who is interested in this in the future.

 

edit:

IMG_20210521_183202.thumb.jpg.5c529e90a6f3b505eb3e231f243229d7.jpg

spent a bit of time on it after work today. after a few tweaks, i just completed my first trade over the internet between two real gameboys

Edited by PLS_PressY4Pie
  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...