StreetPass: Difference between revisions

Sorunome (talk | contribs)
Fill in structs for streetpass messages
m typo
 
(3 intermediate revisions by 2 users not shown)
Line 113: Line 113:
   Sims 3: 00 03 65 00 30
   Sims 3: 00 03 65 00 30
   Street Fighter: 00 03 05 00 02 (FF FF FF FF FF FF)
   Street Fighter: 00 03 05 00 02 (FF FF FF FF FF FF)
  Tomodachi life: 00 08 C5 00 30 (Tested on EUR region)
  Animal crossing new leaf: 00 19 8D 00 30 (Tested on EUR region)


The first 4 bytes are the titleID of the service, the last byte seems to contain flags.
The first 4 bytes are the titleID of the service, the last byte seems to contain flags.
Line 126: Line 128:


Only the bits 2,5,6 were used.
Only the bits 2,5,6 were used.
When set, the bit n°2 indicates the presence of a followinf 6-byte field filled with 0xff.
When set, the bit n°2 indicates the presence of a following 6-byte field filled with 0xff.


Some services have a 6-byte field succeeding the StreetPass service that is just FF bytes (e.g. FF FF FF FF FF FF). The purpose of these is unknown, although may be used as data for a service, or as separator of some sort for different types of StreetPass services.
Some services have a 6-byte field succeeding the StreetPass service that is just FF bytes (e.g. FF FF FF FF FF FF). The purpose of these is unknown, although may be used as data for a service, or as separator of some sort for different types of StreetPass services.
Line 623: Line 625:
| u32
| u32
| transfer_id
| transfer_id
| ???
| All messages from the same transfer (That is, sending the messages) contain the same transfer id
|-
|-
| 0x20
| 0x20
Line 646: Line 648:
| 0x01
| 0x01
| u8
| u8
| flags
| recipients
| ???
| bitfield: 0x01: everyone; 0x02: friends
|-
|-
| 0x35
| 0x35