Tutorial [HOW-TO] Have a homemade Streetpass Relay

What method you are using?

  • Linux

    Votes: 93 7.9%
  • Android

    Votes: 133 11.4%
  • Router

    Votes: 226 19.3%
  • Windows

    Votes: 426 36.4%
  • A pony with a wifi antenna O.o?

    Votes: 292 25.0%

  • Total voters
    1,170
Status
Not open for further replies.

NTylerWeTrust

New Member
Newbie
Joined
Aug 22, 2013
Messages
1
Trophies
0
Age
34
XP
41
Country
United States
Hey guys, been trying at this for a couple hours now and just can't get past a wall on the Mac tutorial. So I just can't get the MAC address to change on for my wifi card. I've followed the directions numerous times now and it constantly keeps remaining the same address. Just don't know what I could be doing wrong here or how else to go about it.
 

TheWon

Well-Known Member
Member
Joined
Sep 30, 2008
Messages
384
Trophies
0
XP
249
Country
United States
It takes from 3O seconds to 2 minutes. Is your router flashed with DD-WRT or OpenWRT? If it's not then that's your problem. You have to change the wireless LAN (aka WAN) MAC specifically. The stock firmware will only let you change the wired LAN MAC which is why it's not working. Plus you only need to have 1 3DS on at a time. With 2 on, the first one passes the relay, then the second will just pull the first ones data right off when it passes, defeating the purpose.


Thanks! That's the one thing I didn't do. Got it too work, and my first streetpass from Brazil!
 

gamefan5

Kid Icarus Uprising connoiseur
Member
Joined
Aug 29, 2010
Messages
5,010
Trophies
2
Location
Somewhere in this Earth
XP
4,064
Country
Canada
1.) Looking into now, Just going with a certain brand won't solve the problem, brands use whatever chipset they feel like, and the chipset is what matters. You could look around wikidevi to find out chipset/adapter names, then google to see if anyone's posted on the net that they work with MAC changing or not. I'm currently waiting on an RTL8192CU but might also get an RTL8188CUS since there are tutorials for that as well. Those two have relatively cheap options but other than that I'm not sure. I CAN tell you that my atheros TL-WN822N V2 doesn't work, but their v3 is an RTL8192CU, though probably more expensive than adafruit's options.
RTL8188SU does work with mac changing in LINUX but if you do it on windows it won't connect to the internet, and hostapd on linux doesn't work with it.
and my alfa AWUS036NH doesn't want to get a changed mac, so though it might work with hostapd, I didn't bother... Speaking of, since it doesn't work and another user's reported that an RT3070 does work, I'm wondering if maybe the ones that connect directly to the computers USB port will work, while the ones that have a cord between them dont/won't... I'll have to see if my other atheros card works sometime.
2.) Yes. You can use any mac for streetpassing, as long as your SSID is set to attwifi or whichever NZone SSID you want to use for it, that your 3DS picks up.

Hmm I see, as for the second question, best news I heard ALL DAY!
 

BlueLobstah

Member
Newcomer
Joined
Oct 17, 2009
Messages
13
Trophies
0
XP
78
Country
United States
After much hacking away, I finally got a script working with WRT54G virtual wireless and tomato:

Code:
#!/bin/sh
 
# Prime mac
PRIME=4E:53:50:4F:4F:46
WLIF=$(nvram get wl0.1_ifname)
RAND=$(cat /dev/urandom | tr -dc 'A-F0-9' | head -c 1)
MAC=${PRIME%?}${RAND}
 
echo "Setting MAC of ${WLIF} to ${MAC}..."
 
ifconfig ${WLIF} down
ifconfig ${WLIF} hw ether ${MAC}
ifconfig ${WLIF} up
 
nvram set wl0.1_hwaddr=${MAC}
nvram commit
 
service net restart

I'm sure someone more proficient with bash could come along and make this better, but I'm happy to have this working, and it doesn't seem to reboot the router everytime I want to update the mac.

Edit: Upon further testing, it still appears this brings down my connection to my modem as my WAN uptime resets every time the script is run. At least I can schedule it for a time early in the morning when I won't be using it, but is there any ideas how to get the WL driver to update the BSSID without bringing down everything with it?
 

gamefan5

Kid Icarus Uprising connoiseur
Member
Joined
Aug 29, 2010
Messages
5,010
Trophies
2
Location
Somewhere in this Earth
XP
4,064
Country
Canada
Hmm I think I'll be able to do the streetpass relay tommorow. Gonna buy this router:
TP-LINK 150Mbps Wireless N Router (TL-WR720N)

s0645413_sc7

Good great reviews apparently. It's fast and ez to install. Supports MAC cloning natively apparenly.
Best of all, it's cheap! :D
Hoping it works.
 

Rahzadan

Active Member
Newcomer
Joined
May 28, 2007
Messages
44
Trophies
0
Age
40
XP
356
Country
Canada
Just deployed v.3.1 script as the main one. Now random MAC will not repeat until all MAC from the list was used.

Ok, so now that I've been running duke's v3.1 DD-WRT script for a couple of days now, I don't know if I'm going crazy or what's going on, but I think there may be a slight issue with it. I'm using the "49,BASE16,GBATEMP" MAC set, which currently contains 40 MAC addresses. This means that with the v3.1 script, the MAC *should* cycle every 12 minutes, based on the 480/number_of_macs_in_list rule. This doesn't seem to be working 100%.

I think that the 'used' MACs in the list are bringing down the total count of MACs, resulting in a steadily increasing amount of time between cycles. I've been waking up in the morning only to find 7/10 or 6/10 Mii Plaza hits after 8 hours of the 3DS being in standby. With 40 MACs supposedly being cycled in 8 hours overnight when I sleep I should most certainly have 10/10! I've also been checking /tmp/nzone.macs, and whenever a MAC gets used, it puts a little 'x' in front of it. When the list is fresh, there are no X's and my first MAC cycle does take 12 minutes, however as more macs get 'used' the time between cycles seems to increase. Tonight I checked 'ifconfig eth1' and it took over an hour for the next MAC to cycle when they were almost depleted. AM I crazy or has anyone else noticed this?

I've double and triple checked the the cron service has not stalled. (stopped and restarted cron several times to test). Also the MAC does eventually cycle it just take a LONG time when the list of MACs gets down to the last few before the list starts over.
 

Xellos Metallium

Active Member
Newcomer
Joined
Aug 22, 2013
Messages
26
Trophies
0
Age
39
Location
Philadelphia, Pennsylvania
Website
fanelia.co.nr
XP
165
Country
United States
/ghaladream.81805/

my 3ds picked up streetpass after i got home today, i was happy to leave it there to collect. 3 hours later i checked but there was only 2 streetpasses. liked you said, i found x'ses in the macs file.

i find this weird, my router is blocked off from outsider, only recognized devices may access my wifi network. so there is no way my neighbor could have gotten streetpass from the script. i went back to using older script, which it rotates all the times thus i gets to collects all the times.

i guess you could limited the working hours under "cron" command line from 1-7 instead of half or whole day. let us know how that work out for you, i may go back into using script 3.1 again if you have better results.
 

Rahzadan

Active Member
Newcomer
Joined
May 28, 2007
Messages
44
Trophies
0
Age
40
XP
356
Country
Canada
Yeah, if I go back to using script v2 with:

Code:
*/10 * * * * root /tmp/nzone 49,BASE16,GBATEMP

instead of v3.1's:

Code:
* * * * * root /tmp/nzone 49,BASE16,GBATEMP

Then the mac does reliably cycle every 10 minutes. But I like the way duke_srg's script works based on the total number of MACs.

duke_srg, can you fix this so that the time between cycles doesn't increase as the MACs in the list get used up? I *think* the issue is the MACNUM value in your script is not taking the MACs with 'x' in front of them into account when calculating "8*60/MACNUM" but I wouldn't know where to correct this in the script due to my lack of knowledge in this area :(
 

duke_srg

Well-Known Member
Member
Joined
Mar 1, 2011
Messages
1,862
Trophies
0
Age
44
Location
Moscow
XP
807
Country
Serbia, Republic of
Ok, so now that I've been running duke's v3.1 DD-WRT script for a couple of days now, I don't know if I'm going crazy or what's going on, but I think there may be a slight issue with it. I'm using the "49,BASE16,GBATEMP" MAC set, which currently contains 40 MAC addresses. This means that with the v3.1 script, the MAC *should* cycle every 12 minutes, based on the 480/number_of_macs_in_list rule. This doesn't seem to be working 100%.

I think that the 'used' MACs in the list are bringing down the total count of MACs, resulting in a steadily increasing amount of time between cycles. I've been waking up in the morning only to find 7/10 or 6/10 Mii Plaza hits after 8 hours of the 3DS being in standby. With 40 MACs supposedly being cycled in 8 hours overnight when I sleep I should most certainly have 10/10! I've also been checking /tmp/nzone.macs, and whenever a MAC gets used, it puts a little 'x' in front of it. When the list is fresh, there are no X's and my first MAC cycle does take 12 minutes, however as more macs get 'used' the time between cycles seems to increase. Tonight I checked 'ifconfig eth1' and it took over an hour for the next MAC to cycle when they were almost depleted. AM I crazy or has anyone else noticed this?

I've double and triple checked the the cron service has not stalled. (stopped and restarted cron several times to test). Also the MAC does eventually cycle it just take a LONG time when the list of MACs gets down to the last few before the list starts over.


Yes you're right. I was aware of this issue developing 3.1 but missed something! Please update now to 3.2
 

duke_srg

Well-Known Member
Member
Joined
Mar 1, 2011
Messages
1,862
Trophies
0
Age
44
Location
Moscow
XP
807
Country
Serbia, Republic of
After much hacking away, I finally got a script working with WRT54G virtual wireless and tomato:

Code:
#!/bin/sh
 
# Prime mac
PRIME=4E:53:50:4F:4F:46
WLIF=$(nvram get wl0.1_ifname)
RAND=$(cat /dev/urandom | tr -dc 'A-F0-9' | head -c 1)
MAC=${PRIME%?}${RAND}
 
echo "Setting MAC of ${WLIF} to ${MAC}..."
 
ifconfig ${WLIF} down
ifconfig ${WLIF} hw ether ${MAC}
ifconfig ${WLIF} up
 
nvram set wl0.1_hwaddr=${MAC}
nvram commit
 
service net restart

I'm sure someone more proficient with bash could come along and make this better, but I'm happy to have this working, and it doesn't seem to reboot the router everytime I want to update the mac.

Edit: Upon further testing, it still appears this brings down my connection to my modem as my WAN uptime resets every time the script is run. At least I can schedule it for a time early in the morning when I won't be using it, but is there any ideas how to get the WL driver to update the BSSID without bringing down everything with it?

There is not sence runing ifconfig if you're changing MAC in an nvram and rebooting router. This cycle wear your router flash chip. Send me output for
Code:
ps
from the running router, I'll see what can we do.
 

AndyN

Well-Known Member
Newcomer
Joined
Aug 21, 2013
Messages
48
Trophies
0
Age
41
Location
Arkansas
Website
www.facebook.com
XP
196
Country
United States
The script is a batch file. You need to put it into like notepad in windows save it as (somename).bat then just run it like you would any other program in Windows. There's also a few things you need to download to make it work, plus you have to enter your own values for like IP and username so you really need to read through it. Also, do the firmware update http://sanoxy.com/product/wap-300/ Then you just change the MAC address under LAN interface (because they share a MAC) without any semicolons. You should be able to change it under the Internet setting with current firmware but I don't remember.

I've just been doing it manually because I've had issues getting the script to run but it's probably on my end. Basicaly my method has been take the final octet and pick one from the :00s, do it, then from the :10s, do it, then the :20s and so on up to :90s to get 10 passes. Works well and I rarely get a duplicate. Takes about 15 minutes.


Thank you for your suggestions Jimbolicious. I used the link you gave me to upgrade the firmware but unfortunately after I installed it using the update button on the repeater's settings. It said the install was complete. I waited for it to restart for a few minutes and it never did. It now isn't broadcasting a signal and won't let me connect to it with the Ethernet cable anymore. I tried a factory reset but that hasn't seemed to help either... Looks like i'm starting from the beginning again :(
 

KamikiriTW

Member
Newcomer
Joined
Aug 16, 2013
Messages
10
Trophies
0
XP
81
Country
Taiwan
Hmm I think I'll be able to do the streetpass relay tommorow. Gonna buy this router:
TP-LINK 150Mbps Wireless N Router (TL-WR720N)

s0645413_sc7

Good great reviews apparently. It's fast and ez to install. Supports MAC cloning natively apparenly.
Best of all, it's cheap! :D
Hoping it works.

Are you sure?:blink:
i read the manual,
this model is only support "mac clone",
"mac clone" is not equal to"wireless mac clone",
not support by DD-WRT too,
can't install script,

i'm using TL-WR740N,
maybe WR740N is more better for home pass.
 

Hulex

New Member
Newbie
Joined
Aug 22, 2013
Messages
2
Trophies
0
Age
37
XP
126
Country
United States
Okay! I have followed the guide and everything SEEMS to be working. HOWEVER, as soon as I close the lid on my 3DS, it disconnects itself from the attwifi network (it doesn't show my 3DS as connected while it is in sleep mode) and thus I don't seem to be getting any SpotPasses. When I open it back up, it reconnects and I am able to access Internet again. MAYBE I am being impatient but how long until I see my first SpotPass? I want to make sure I am doing this correctly. Thank you.
 

Koldur

Virtual Boy Ambassador
Member
Joined
Feb 2, 2008
Messages
294
Trophies
1
XP
1,539
Country
Netherlands
Well, due to this Homepass stuff I have encountered a critical bug in "StreetPass Battle" in the second time conquering the world and beating the 16th country, you get this (before HomePass it was quite impossible to advance, so I am certainly not blaming HomePass ;) but without HomePass I would never have gotten this far)
8f6c.jpg


Unfortunately I get this consistently, so I cannot advance anymore and won't be able to finish it.... Anyone else that got past this?
 

KamikiriTW

Member
Newcomer
Joined
Aug 16, 2013
Messages
10
Trophies
0
XP
81
Country
Taiwan
Well, due to this Homepass stuff I have encountered a critical bug in "StreetPass Battle" in the second time conquering the world and beating the 16th country, you get this (before HomePass it was quite impossible to advance, so I am certainly not blaming HomePass ;) but without HomePass I would never have gotten this far)
8f6c.jpg


Unfortunately I get this consistently, so I cannot advance anymore and won't be able to finish it.... Anyone else that got past this?

How many is your army?
crash timing is?
if your army is already be 9999999,
maybe this is count stop bug,

press home button to end the game when you fighting with COM ,
do it twice,
your army will drop 10% by penalty,
but maybe can fix it.
 

Koldur

Virtual Boy Ambassador
Member
Joined
Feb 2, 2008
Messages
294
Trophies
1
XP
1,539
Country
Netherlands
How many is your army?
crash timing is?
if your army is already be 9999999,
maybe this is count stop bug,

press home button to end the game when you fighting with COM ,
do it twice,
your army will drop 10% by penalty,
but maybe can fix it.

Tried that, didn't help unfortunately, I think it is because I have too many people in my plaza, this was a problem at the beginning of the new SP games. Seems they solved it partly :(
 

MattDragon

Well-Known Member
Newcomer
Joined
May 27, 2011
Messages
46
Trophies
0
XP
121
Country
Italy
Hi guys! I have only a little question: is this trick risky? For example, could nintendo block my 3ds or do something bad? XD
 

Koldur

Virtual Boy Ambassador
Member
Joined
Feb 2, 2008
Messages
294
Trophies
1
XP
1,539
Country
Netherlands
Hi guys! I have only a little question: is this trick risky? For example, could nintendo block my 3ds or do something bad? XD

No, legally they cannot block your 3DS, so they won't (only if they want to go bankrupt lol) even if they legally could, they wouldn't, it would be brand suicide as they will get crushed in the media about this. TL;DR; no they won't.
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    as to you
  • K3Nv2 @ K3Nv2:
    How do you know if the night will be good when you're asleep
  • BakerMan @ BakerMan:
    because i didn't say i was asleep
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
    The Real Jdbye @ The Real Jdbye: never had that i don't think