Page 1 of 1

lost port connection

Posted: Mon Feb 11, 2013 12:53 pm
by aus996
Hi Guys, my airport had an update which has impacted the wifi module i think.
So went back to scratch and successfully did the inti memory and uploaded code so the controller is working but when I go into the wifi wizard i cant get a port connection as the first step, never had this issue before, picking exact same port as the successful upload, any thoughts?

Re: lost port connection

Posted: Mon Feb 11, 2013 1:05 pm
by rimai
Is the module blinking blue?

Re: lost port connection

Posted: Mon Feb 11, 2013 2:16 pm
by aus996
It was totally blank when i noticed the error, reconnected it and it was blinking blue, so thats when I figured it needed to be reconencted/reconfigured. I went back to the usb TTl cable to go through the process again and thats where the issue arose with the serial port connection

Re: lost port connection

Posted: Mon Feb 11, 2013 2:33 pm
by rimai
Try hard factory reset using button/jumper pins or you may need to connect it with putty or another serial terminal to see what it is saying.

Re: lost port connection

Posted: Mon Feb 11, 2013 11:29 pm
by aus996
Hmm okay, i not sure where the hard factory reset button is located, is this on the main unit? I tried to connect with cool term but its not sending the string for some reason, it did before, although when i did log in initially the program switched of the RA program, not sure if this is what happens each time you connect to the port though

Re: lost port connection

Posted: Tue Feb 12, 2013 10:02 am
by rimai
There is a button/jumper for hard reset inside the wifi attachment.
Please check the manual for instructions on how to reset.

Re: lost port connection

Posted: Wed Feb 13, 2013 1:04 am
by aus996
Hi roberto it doesnt seem to want to reset, have follwed the instructions but it just reverts back to flashing blue and green, not solid red as per instructions

Re: lost port connection

Posted: Wed Feb 13, 2013 9:12 am
by rimai
Ok, let's try the cool term again.
Make sure you are using the same serial port and start with baud rate 9600.
Send $$$ to the device. If you get the command prompt, you are in. If you get nothing, disconnect and try 57600 baud and send $$$ again. You should get the command prompt now.
Make sure you send all 3 $ within a second. You can't pause between the 3 signs.

Re: lost port connection

Posted: Wed Feb 13, 2013 11:42 pm
by aus996
ok mate will do, just got home and have a bit of time tonight to play with it cheer steve

Re: lost port connection

Posted: Thu Feb 14, 2013 12:26 am
by aus996
OK so i have disconnected the controller from the tank along with all the senors and got it plugged into another spare relay for power.
I can, through arduino run the initial memory upload and still upload code without issue.

When I open a connection the red light on he controller flashes rapidly

I put in the code ($$$) and press send (how this option works) but, unlike before, nothing appears to be sending to the port, i have tried both 9600 and 57600, i believe last time it was 57600 that worked.
Last time i was getting the 2.32 indication and could then scan, but not this time around. Not sure what I am doing differently

Re: lost port connection

Posted: Thu Feb 14, 2013 3:18 am
by aus996
also just noticed this coming up on cool term, so it must have been talking tot he controller at some stage

GET /status/submitp.aspx?t1=0&t2=0&t3=0&ph=827&id=aus996&em=72&rem=1&key=&atohigh=0&atolow=0&r=67&ron=0&roff=255&r1=0&ron1=0&roff1=255&pwma=20&pwmd=20&sal=60&phe=0

Re: lost port connection

Posted: Thu Feb 14, 2013 10:11 am
by rimai
You are connected to the controller.
You need to have the wifi attachment connected to the usb-ttl cable instead.
That's what we are trying to get configured, right?
The wifi attachment, right?

Re: lost port connection

Posted: Thu Feb 14, 2013 12:43 pm
by aus996
Yes sorry, have tried both, just gave it another shot this morning. Wifi is flashing quick blue and slow green, have tried the cool term connection with both 9600 and 57600 but its still not sending the $$$ string like it did last time to get the 2.32 coding message, although the controller was plugged back into the tank with PH and temp sensors attached so i might have to retry it again this afternoon when I take it off and put it on the standby relay. I am beginning to think it could be an issue with cool term perhaps?

Re: lost port connection

Posted: Thu Feb 14, 2013 12:55 pm
by rimai
You don't need the controller to setup the wifi attachment.
Simply plug the wifi attachment into the usb-ttl cable.

Re: lost port connection

Posted: Thu Feb 14, 2013 12:59 pm
by aus996
ahh, leave it with me, been plugging and unplugging so many things this is where i have been going wrong

Re: lost port connection

Posted: Thu Feb 14, 2013 1:07 pm
by aus996
Okay so I have activity on both 9600 and 57600
at 9600 I am getting an $$$...ERR: ? - Cmd..<2.32>.

and on 57600 just get 00 E0

Re: lost port connection

Posted: Thu Feb 14, 2013 1:13 pm
by rimai
Ahhh.
There we go.
You should be able to setup the wifi attachment without messing with Cool Term then.
Use the wifi utility to set it up.

Re: lost port connection

Posted: Thu Feb 14, 2013 1:54 pm
by aus996
Yep cool I will give it a shot tonight, thanks once again for all your help

Re: lost port connection

Posted: Thu Feb 14, 2013 11:50 pm
by aus996
And once again all is good :mrgreen:

Real steep learning curve here, got stop doing things with this on about 3 hours sleep, make too many stupid mistakes :roll: