dmcomm / dmcomm-python

MIT License
6 stars 0 forks source link

Add Xros Loader #41

Closed dmcomm closed 2 months ago

dmcomm commented 1 year ago

Using OPL551-OC on GP14 with a 1K pullup, for both iC and Xros Loader.

Trading Tylomon for another Tylomon:

!XL1-05-020500010164006603-04-06-06
s:05 r:06 s:020500010164006603 r:06 s:04 r:05 s:06 r:020500010164006603 s:06 r:04

!XL2-06-06-05-020500010164006603-04
r:05 s:06 r:020500010164006603 s:06 r:04 s:05 r:06 s:020500010164006603 r:06 s:04 t
dmcomm commented 1 year ago

This isn't right, we should be using wait_for_length_no_more like for modulated. Battles won't work how it is now. https://github.com/dmcomm/dmcomm-python/blob/74f345d5637404bdfd561fbcb8750e9052bedbf9/lib/dmcomm/hardware/ic.py#L75

dmcomm commented 1 year ago

We can capture the large block of battle data, but the Xros Loader does not seem to be responding to the equivalent DigiROM. And this is indeed too much RAM: might need a receiver PIO. Probably don't share the communicator class with iC after all.

dmcomm commented 7 months ago

Receive decode was too slow, so needed to decode as we went along rather than after receiving everything. Also saves RAM.

And we did need the separate TX PIO.