PDA

View Full Version : RN-131 WiFly Module



gavo
- 30th December 2015, 10:57
Hi All,

Has anyone played with the RN-131 WiFly Module?, I have one and been playing about and seem to have everything working except trying to log onto an Access Point, I can keep getting the error AUTH-ERR, if someone could help me see where I am going wrong that would help allot!,

Many Thanks,

Regards,

Gavo

aerostar
- 30th December 2015, 20:23
How about posting some relevant code.

gavo
- 31st December 2015, 07:16
Hi,

I don't have code at the moment as I have playing in a Terminal Program, please see below:

wifly-GSX Ver 4.00.1, Apr 19 2013 11:48:28 on RN-131
MAC Addr=00:06:66:21:c5:61
*READY*
CMD
scan
ERR: ?-Cmd
<4.00> scan
<4.00>
SCAN:Found 5
01,01,-48,00,0104,00,00,00:9c:02:cc:6a:18,HP-Print-18-Officejet Pro 8600
02,01,-29,04,110c,28,c0,a0:63:91:d0:4d:f5,OConnor-Bedfordview_2GEXT
03,01,-75,02,1104,28,00,c8:3a:35:2d:b0:c8,Gaspari
04,04,-66,04,1115,28,40,a4:2b:b0:f0:b7:be,TP-LINK_2.4GHz_F0B7BE
05,06,-41,04,3104,28,40,9e:a9:e4:a8:3a:c0,VodafoneMobileW iFi-A83AC0
END:
set wlan phrase <mVT6705985>
AOK
<4.00> join # 5
Auto-Assoc VodafoneMobileWiFi-A83AC0 chan=6 mode=MIXED SCAN OK
<4.00> Joining VodafoneMobileWiFi-A83AC0 now..
Disconn from VodafoneMobileWiFi-A83AC0,1:2
Disconn from VodafoneMobileWiFi-A83AC0,1:2
Disconn from VodafoneMobileWiFi-A83AC0,1:2
Disconn from VodafoneMobileWiFi-A83AC0,AUTH-ERR
Disconn from VodafoneMobileWiFi-A83AC0,1:2
scan
<4.00>
SCAN:Found 5
01,01,-49,00,0104,00,00,00:9c:02:cc:6a:18,HP-Print-18-Officejet Pro 8600
02,01,-29,04,110c,28,c0,a0:63:91:d0:4d:f5,OConnor-Bedfordview_2GEXT
03,01,-76,02,1104,28,00,c8:3a:35:2d:b0:c8,Gaspari
04,04,-68,04,1115,28,40,a4:2b:b0:f0:b7:be,TP-LINK_2.4GHz_F0B7BE
05,06,-33,04,3104,28,40,9e:a9:e4:a8:3a:c0,VodafoneMobileW iFi-A83AC0
END:
set wlan pass <mVT6705985>
AOK
<4.00> join # 5
Auto-Assoc VodafoneMobileWiFi-A83AC0 chan=6 mode=MIXED SCAN OK
<4.00> Joining VodafoneMobileWiFi-A83AC0 now..
Disconn from VodafoneMobileWiFi-A83AC0,1:2
Disconn from VodafoneMobileWiFi-A83AC0,1:2
Disconn from VodafoneMobileWiFi-A83AC0,1:2
Disconn from VodafoneMobileWiFi-A83AC0,AUTH-ERR
Disconn from VodafoneMobileWiFi-A83AC0,1:2
set wlan number <mVT6705985>
AOK
<4.00> join # 5
Auto-Assoc VodafoneMobileWiFi-A83AC0 chan=6 mode=MIXED SCAN OK
<4.00> Joining VodafoneMobileWiFi-A83AC0 now..
Disconn from VodafoneMobileWiFi-A83AC0,1:2
Disconn from VodafoneMobileWiFi-A83AC0,1:2
Disconn from VodafoneMobileWiFi-A83AC0,1:2
Disconn from VodafoneMobileWiFi-A83AC0,AUTH-ERR
Disconn from VodafoneMobileWiFi-A83AC0,1:2

aerostar
- 31st December 2015, 17:38
You have set wlan phrase <mVT6705985> and set wlan pass <mVT6705985> both seem incorrect according to following.

In the PDF page 27 I got from here http://ww1.microchip.com/downloads/en/DeviceDoc/50002230B.pdf it says

If the access point is secure, the passphrase must be set prior to issuing the join
command. The RN module attempts to inquire and determine the access point’s
security protocol which means the authentication mode does not need to be set. To set
the WPA passphrase use the set wlan passphrase <string> command.

For WEP,
set the key using the set wlan key <value> command.

Could this be your problem, I would also have turned off encryption when testing, when that is working then try with encryption.

gavo
- 2nd January 2016, 12:18
I found the problem - have it working now, I put the Password as set wlan passphrase <gavo1234> and it should of been set wlan passphrase gavo1234

All working now and thanks for the help!