RSSI and troubles again

21 views
Skip to first unread message

Jason Kotecki

unread,
Mar 12, 2013, 8:35:05 AM3/12/13
to rc...@googlegroups.com
Mike, I thought I found the problem with the RSSI. In the G2100.h file it appears to be missing 'U16 get_rssi();' I added it in and recompiled. Now I can't get it to work with your app at all. I tried taking it back out and recompile and it still doesn't work. I just don't understand why sometimes it just doesn't work.

-Jason

Mike McCauley

unread,
Mar 12, 2013, 8:49:48 AM3/12/13
to rc...@googlegroups.com, Jason Kotecki
Hello,


On Tuesday, March 12, 2013 05:35:05 AM Jason Kotecki wrote:
> Mike, I thought I found the problem with the RSSI. In the G2100.h file it
> appears to be missing 'U16 get_rssi();'

I dont think that is likely to be the problem.
WiShieldTransceiver.cpp has this: extern uint16_t get_rssi();
If the compile and link succeeded before then get_rssi() was in your sketch.


> I added it in and recompiled. Now I
> can't get it to work with your app at all. I tried taking it back out and
> recompile and it still doesn't work. I just don't understand why sometimes
> it just doesn't work.

I think these difficulties are to do with your environment, and not the code I
provide.

Sounds a bit like you have another version of WiShield on your host somewhere.
Find and remove all instances of WiShield. Download and install
http://www.open.com.au/mikem/arduino/WiShield-v1.3.0-0-mikem-RCKit.zip
in the usual way. You should *not* need to modify it to work with RCKit.

If you have further problems you will need to post more details about your
Arduino sketch, how you are testing, the hardware you are using etc.

See for example:

http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

Cheers.


>
> -Jason
--
Mike McCauley mi...@open.com.au
Open System Consultants Pty. Ltd
9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.open.com.au
Phone +61 7 5598-7474 Fax +61 7 5598-7070

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.

Jason Kotecki

unread,
Mar 12, 2013, 8:00:00 PM3/12/13
to rc...@googlegroups.com, Jason Kotecki
Mike, I've been playing around with the RCKit and noticed something. If the iPod goes to sleep or if I hit the power button to turn the screen off, the next time I open the app it doesn't work. If I reboot my iPod, never touching the RCRx, and open the app it works again.

I still can't get the RSSI or battery level to work though.

Jason

Mike McCauley

unread,
Mar 12, 2013, 8:36:53 PM3/12/13
to rc...@googlegroups.com
Hello,

Hmmm, I think that might be due to the WiShield losing the wifi association
with the iPod. WiShield can only handle one connection per startup.

Without seeing your code and knowing more about your setup I cant say any
more.

Cheers.

Jason Kotecki

unread,
Mar 12, 2013, 10:31:55 PM3/12/13
to rc...@googlegroups.com
My code is your code, I did not customize anything. But the problem must be on the Arduino side. I fired up the UDP test tool and set my computer to listen on UDP 9048 to simulate a receiver so I could see what the app was sending. I waited for the screen to go dark and saw that the app stopped sending packets. Once I went back into the app I could see that it was sending data again so I know it's not the app at least.

I am running an Arduino Uno with a Copperhead shield from LinkSprite which is an Asynclabs clone. Could it be a failsafe on the Arduino? If the RCRx goes into failsafe will it start back up when the transmitter comes back?

Jason

Mike McCauley

unread,
Mar 12, 2013, 10:38:27 PM3/12/13
to rc...@googlegroups.com
On Tuesday, March 12, 2013 07:31:55 PM Jason Kotecki wrote:
> My code is your code, I did not customize anything.

But which sketch are you using?


> But the problem must be
> on the Arduino side. I fired up the UDP test tool and set my computer to
> listen on UDP 9048 to simulate a receiver so I could see what the app was
> sending. I waited for the screen to go dark and saw that the app stopped
> sending packets. Once I went back into the app I could see that it was
> sending data again so I know it's not the app at least.
>
> I am running an Arduino Uno with a Copperhead shield from
> LinkSprite<http://www.linksprite.com/product/showproduct.php?id=73&lang=en>
> which is an Asynclabs clone. Could it be a failsafe on the Arduino? If the
> RCRx goes into failsafe will it start back up when the transmitter comes
> back?

My recollection of the WiShield library is that it accepts the first
connection after startup only.

You may want to test that behaviour.

Cheers.


>
> Jason

Jason Kotecki

unread,
Mar 13, 2013, 1:50:55 PM3/13/13
to rc...@googlegroups.com
I'm using the RCRxWiShield.pde sketch. I'll do some more testing tonight. It's weird that if I reboot my iPod and leave the Arduino alone that it will work again though.

-Jason

Jason Kotecki

unread,
Mar 14, 2013, 6:42:56 PM3/14/13
to rc...@googlegroups.com
Mike, I am now working with the Ethernet version of RCRx and I am still not receiving the reply messages. The receiver is working and responds to the iPod app but it still says "not connected". I ran the UDP test tool on my laptop instead of the iPod app so I can see what's happening and I never receive any data from the RCRx. I attached a screenshot of the UPD test tool for you to see what I'm talking about. I'm sending "01 7f 7f 7f 7f 00 00 00 00 00 00" every second to the receiver which you can see on the left side. On the right side you should see any reply from the RCRx. I can confirm that communication is working one way by send different values for the channels ie. "01 ff ff ff ff 01 01 01 01 01 01". If I uncheck the box to send every second, the RCRx goes into failsafe as expected. I tried looking at the code but can not figure out how to get the sendReply to work. Let me know if you have any ideas.

Thanks,
Jason Kotecki
UDPTest.png

Mike McCauley

unread,
Mar 14, 2013, 9:46:57 PM3/14/13
to rc...@googlegroups.com
Hello,

Thanks for this report.

Which ethernet shield are you using?

Are you sure you are using the example sketches I provide without *any*
modification?

How was the UDP test tool sniffing the traffic? Was the arduino, the UDP test tool
and the AP all on the same ethernet subnet?

It sounds a lot to me like a routing problem.

Cheers.

Are you using the example sketches

Jason Kotecki

unread,
Mar 14, 2013, 10:31:51 PM3/14/13
to rc...@googlegroups.com
They are all on the same subnet so now routing is involved. The UDP test tool is not a sniffing tool. I can use it to send and receive UDP data. I have used it where I had your iPod app talking to my computer so I can wee what your app is outputing. I have also used the tool to send RCOIP packets to the RCRx from my laptop basically using my laptop instead of your iPod app.

Mike McCauley

unread,
Mar 14, 2013, 11:03:16 PM3/14/13
to rc...@googlegroups.com, Jason Kotecki
Hi,

Are you using one of the example sketches?
Have you made any changes to the sketch?
It would be very helpful if you posted *exactly* what you are testing with.

Cheers.


On Thursday, March 14, 2013 03:42:56 PM Jason Kotecki wrote:

Jason Kotecki

unread,
Mar 14, 2013, 11:06:49 PM3/14/13
to rc...@googlegroups.com, Jason Kotecki
I am using your RCRxEthernet.pde sketch. The only thing I changed was the IP to put it on my network.

Mike McCauley

unread,
Mar 14, 2013, 11:51:25 PM3/14/13
to rc...@googlegroups.com
On Thursday, March 14, 2013 08:06:49 PM Jason Kotecki wrote:
> I am using your RCRxEthernet.pde sketch. The only thing I changed was the
> IP to put it on my network.

And what ethernet card/shield/board are you using?
What Arduino board?
How are they connected
How is your network set up?

A full description of your setup and test procedure will help others
understand your test environment and maybe spot the problem.

Cheers.
Reply all
Reply to author
Forward
0 new messages