Router not receiving data from AVR

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.

Router not receiving data from AVR

Postby Sjurlur » Mon Feb 13, 2012 8:58 am

Hello

I have successfully flashed the AVR, and the display shows which station is playing.
But the router does not receive tuner commands from the AVR. When I launch interface.sh, the script does not echo "Tuner Position: 0", and changing the tuner position does not have any effect.

When I had it all connected on the breadboard it worked fine, so my guess is that it is a bad connection somewhere. But I have tried to:
* resolder the RX on the router twice.
* checked that the ADC4 port on the ATmega receives correct voltage according to tuner position.
* flashed the AVR again, and ran make fuse
* reinstalled interface.sh, and display2.sh

I`m out of ideas. Any help?
Sjurlur
 
Posts: 2
Joined: Mon Jan 16, 2012 1:42 pm

Re: Router not receiving data from AVR

Postby jeroen94704 » Tue Feb 14, 2012 10:55 am

Are you comfortable making changes to the code? I tend to connect an LED to one of the GPIO pins of the microcontroller so I have at least some means of producing debugging output. That way, you can check if the ADC value inside the microcontroller corresponds with what you expect.

As a last ditch effort, you could put everything back on your breadboard, just to make sure the RX side of the router's serial port got fried somehow.

Jeroen
jeroen94704
 
Posts: 109
Joined: Sat Feb 13, 2010 4:27 am
Location: Eindhoven, the Netherlands

Re: Router not receiving data from AVR

Postby mightyohm » Wed Feb 15, 2012 9:31 am

I suggest testing the serial port on the router with an FTDI cable so you can make sure that part works before spending too much time troubleshooting the AVR stuff.
User avatar
mightyohm
Site Admin
 
Posts: 779
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA

Re: Router not receiving data from AVR

Postby Sjurlur » Thu Feb 16, 2012 3:49 am

How do I do that? When I press keys in Zterm a light on the cable blinks, but no text is showing in the window. The router does not give any response either.
Sjurlur
 
Posts: 2
Joined: Mon Jan 16, 2012 1:42 pm

Re: Router not receiving data from AVR

Postby mightyohm » Fri Feb 17, 2012 12:39 am

Which cable are you using? Has it ever worked? Sounds like it's not now - do you see boot messages or anything?
User avatar
mightyohm
Site Admin
 
Posts: 779
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA

Re: Router not receiving data from AVR

Postby djmasterg » Sat Mar 17, 2012 8:18 am

Hi

Had the same situation here, the soldering point was not in contact with the asus board, it only hold the pin in place. After chcecking with multimeter, I had to resolder it again porperly. So it was not the AVR fault, as Jeff says.

Regards
Greg.
djmasterg
 
Posts: 17
Joined: Fri Mar 09, 2012 8:46 am
Location: Glasgow, UK


Return to Wifi Radio Project / Hacking the Asus WL-520gU

Who is online

Users browsing this forum: No registered users and 2 guests

cron