kbembedded / Flipper-Zero-Game-Boy-Pokemon-Trading

Pokemon trade from Flipper Zero to Game Boy for Generation I & II games (Pokemon Red, Blue, Yellow, Gold, Silver, and Crystal)
MIT License
305 stars 18 forks source link

Feat: Gen II IR Mystery Gift #29

Open kbembedded opened 2 months ago

kbembedded commented 2 months ago

Describe the process.

Add support to link between the Flipper and a Gen II Pokemon game over IR for Mystery Gift (Split from #24).

I've only briefly looked over the IR system, but, it doesn't look straightforward to implement. The API is currently only set up for TX xor RX and not easily able to do bidirectional (note: this is not IrDA, this is generic 38 khz IR that sends data back and forth). It might be possible to hack together something at the application level, however I think this would greatly benefit from in-firmware support, alongside a runtime "custom" protocol decoder implementation that can pack and unpack data directly.

Game boy

Color

jaytea33 commented 1 month ago

Just in case no one stumbled upon this yet and wants to take a crack at it, this may be useful

https://projectpokemon.org/home/forums/topic/43930-mystery-gift-reverse-engineering-of-ir-protocol/

kbembedded commented 1 month ago

Thanks!

I'll add that to my list of resources for when I get around to implementing this.