wifi module & WEP

Expansion modules and attachments
Post Reply
d0lph1n
Posts: 121
Joined: Tue Dec 06, 2011 10:16 am

wifi module & WEP

Post by d0lph1n »

Guys,

I know wep is not the ideal encryption, but that's all I have right now (I'm using my iMac as a virtual router).
I've spent all day yesterday trying to make the wep 64bit or 128bit work:
- input the passcode in ASCII or HEX
- used reef angel wifi dos utility: Associated: false / Auth: False / DHCP: false IP: 10.0.2.22:2000
- used dave molton's wifi utility: bad len=13, ERR: Bad args....disconnect from XXX, AUTH-ERR
- used teraterm pro without any success, can't connect.

Without encryption, I was able to connect the module to my wifi and dl the latest firmware.

Please help.
Last edited by d0lph1n on Tue Apr 24, 2012 9:25 am, edited 1 time in total.
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: wifi module & WEP

Post by rimai »

The new wifi utility assumes WPA1 or WPA2.
Try using Dave's utility. You can set WEP128 on his.
WEP64 is not supported. It's too weak.
https://github.com/davemolton/Graphical ... ves/master
Roberto.
d0lph1n
Posts: 121
Joined: Tue Dec 06, 2011 10:16 am

Re: wifi module & WEP

Post by d0lph1n »

dave's output:

CMD
get ip

IF=DOWN
DHCP=ON
IP=0.0.0.0:2000
NM=255.255.255.0
GW=0.0.0.0
HOST=0.0.0.0:2000
PROTO=TCP,
MTU=1524
FLAGS=0x7
TCPMODE=0x0
BACKUP=0.0.0.0
<2.32> get w

SSID=AGB
Chan=0
ExtAnt=0
Join=1
Auth=WEP
Mask=0x1fff
Rate=12, 24 Mb
Linkmon=0
Keynum=1
Key=74 6f 62 65 6f 72 6e 6f 74 74 6f 62 65
<2.32> get u

Baudrate=9600
Flow=0x0
Mode=0x0
Cmd_GPIO=0
<2.32> Disconn from AGB,AUTH-ERR
Auto-Assoc AGB chan=8 mode=WEP SCAN OK
Joining AGB now..
Disconn from AGB,AUTH-ERR
Auto-Assoc AGB chan=8 mode=WEP SCAN OK
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: wifi module & WEP

Post by rimai »

Is your WEP open or shared?
According to the manufacturer's manual, only open mode is supported.
Roberto.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: wifi module & WEP

Post by rimai »

Ahh, also on the latest firmware, it seems they have added WEP64 too.
Roberto.
d0lph1n
Posts: 121
Joined: Tue Dec 06, 2011 10:16 am

Re: wifi module & WEP

Post by d0lph1n »

it's shared :(
Image
d0lph1n
Posts: 121
Joined: Tue Dec 06, 2011 10:16 am

Re: wifi module & WEP

Post by d0lph1n »

I tried with an open network, no encryption, the green led stays green even after connecting the wifi module to RA. I can ping the ip but I can't access the 10.0.2.22:2000 via browser or iPhone app. Please advise. Thank you
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: wifi module & WEP

Post by rimai »

Did you enable wifi feature on RAGen before you upload the code?
Roberto.
d0lph1n
Posts: 121
Joined: Tue Dec 06, 2011 10:16 am

Re: wifi module & WEP

Post by d0lph1n »

it looks like it's on:

#define VersionMenu
#define DisplayLEDPWM
#define wifi
#define WDT
#define SIMPLE_MENU
*/


#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <ReefAngel.h>
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: wifi module & WEP

Post by rimai »

Ah, I remember seeing on your previous post that you were using baud rate 9600.
When you used Dave's utility, you missed the first button that says "Apply Basic Settings"
That button changes a bunch of settings and also change the baud rate to 57600.
If you use the new wifi utility, it will be done automatically for you.
Roberto.
Post Reply