It´s possible to use the Iphoneapp over a VPN-Connection trought Internet ?

99 views
Skip to first unread message

unic

unread,
Aug 8, 2012, 2:15:37 PM8/8/12
to rc...@googlegroups.com
I want to control a slow robotor over the internet. Can i User the Iphone App and the RCOIP protocol for that purpose ?

greets
Rafael

Mike McCauley

unread,
Aug 8, 2012, 4:15:08 PM8/8/12
to rc...@googlegroups.com
Hello,

On Wednesday, August 08, 2012 11:15:37 AM unic wrote:
> I want to control a slow robotor over the internet. Can i User the Iphone
> App and the RCOIP protocol for that purpose ?

Yes, provided you have your AP and internet routing set up properly.
RCOIP is UDP over IP.

Cheers.

>
> greets
> Rafael
--
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.

unic

unread,
Aug 8, 2012, 7:13:56 PM8/8/12
to rc...@googlegroups.com
Thx for fast response. I will try to start with local ethernet interface, as i dont have the wifishield yet. I hope i will find a fast way to replace the wifi-library in the examplecodes. 

My goal is to connect to the arduino over a vpn wirelss router. Hope i will get it.

unic

unread,
Aug 10, 2012, 6:12:13 PM8/10/12
to rc...@googlegroups.com
Hello Again. i think this code is a littel to hard for my knowledge. Cant find out to configure this for an ethernet arduino like xboard v2. If anyone has an example for me it would be great.

best regards

Mike McCauley

unread,
Aug 10, 2012, 7:38:02 PM8/10/12
to rc...@googlegroups.com
Hi,

we are considering some changes to allow RCKit to support receivers other than
WiShield. Especially EtherShield/EtherTen, but maybe others too.

Alas this will mean significant changes to the API

Is anyone strongly in favour or against such a move?

Cheers.

On Friday, August 10, 2012 03:12:13 PM unic wrote:
> Hello Again. i think this code is a littel to hard for my knowledge. Cant
> find out to configure this for an ethernet arduino like xboard v2. If
> anyone has an example for me it would be great.
>
> best regards
>
> Am Donnerstag, 9. August 2012 01:13:56 UTC+2 schrieb unic:
> > Thx for fast response. I will try to start with local ethernet
> > interface,
> > as i dont have the wifishield yet. I hope i will find a fast way to
> > replace the wifi-library in the examplecodes.
> >
> > My goal is to connect to the arduino over a vpn wirelss router. Hope i
> > will get it.
> >
> > Am Mittwoch, 8. August 2012 22:15:08 UTC+2 schrieb mikem:
> >> Hello,
> >>
> >> On Wednesday, August 08, 2012 11:15:37 AM unic wrote:
> >> > I want to control a slow robotor over the internet. Can i User the
> >>
> >> Iphone
> >>
> >> > App and the RCOIP protocol for that purpose ?
> >>
> >> Yes, provided you have your AP and internet routing set up properly.
> >> RCOIP is UDP over IP.
> >>
> >> Cheers.
> >>
> >> > greets
> >> > Rafael
> >>

mikem

unread,
Aug 26, 2012, 7:30:09 PM8/26/12
to RCKit
See the new version 2.0 for Ethernet support

unic

unread,
Aug 27, 2012, 3:07:11 PM8/27/12
to rc...@googlegroups.com
Thx for development and information. 
Ive tried to compile the code and i have some problems:

first:
i downloaded the zipfile, but the ****transceiver.h files are missing in it.
i used the one from the homepage but now i get this error :

C:\arduino\libraries\Ethernet\utility\w5100.cpp: In member function 'void W5100Class::init()':
C:\arduino\libraries\Ethernet\utility\w5100.cpp:28: error: 'delay' was not declared in this scope
C:\arduino\libraries\Ethernet\utility\w5100.cpp:30: error: 'SPI' was not declared in this scope
C:\arduino\libraries\Ethernet\utility\w5100.cpp: In static member function 'static uint8_t W5100Class::write(uint16_t, uint8_t)':
C:\arduino\libraries\Ethernet\utility\w5100.cpp:133: error: 'SPI' was not declared in this scope
C:\arduino\libraries\Ethernet\utility\w5100.cpp: In static member function 'static uint16_t W5100Class::write(uint16_t, const uint8_t*, uint16_t)':
C:\arduino\libraries\Ethernet\utility\w5100.cpp:146: error: 'SPI' was not declared in this scope
C:\arduino\libraries\Ethernet\utility\w5100.cpp: In static member function 'static uint8_t W5100Class::read(uint16_t)':
C:\arduino\libraries\Ethernet\utility\w5100.cpp:159: error: 'SPI' was not declared in this scope
C:\arduino\libraries\Ethernet\utility\w5100.cpp: In static member function 'static uint16_t W5100Class::read(uint16_t, uint8_t*, uint16_t)':
C:\arduino\libraries\Ethernet\utility\w5100.cpp:172: error: 'SPI' was not declared in this scope

i use arduino 1.0.1. should i use an older version ?

unic

unread,
Aug 27, 2012, 4:32:32 PM8/27/12
to rc...@googlegroups.com
After playing around with the code ive found aut that i have to include SPI.h BEFORE Wishield.h and Ethernet.h.
Now this error is disappeard.

I tried the  RCRxEthernet.pde example from your homepage and after i fixed the SPI error i get a new one:

sketch_aug27a.cpp.o: In function `__static_initialization_and_destruction_0':
C:\Users\rafael\AppData\Local\Temp\build6547842039514942253.tmp/sketch_aug27a.cpp:56: undefined reference to `EthernetTransceiver::EthernetTransceiver(unsigned char*, IPAddress*, unsigned int)'

any ideas ?

Mike McCauley

unread,
Aug 27, 2012, 4:39:25 PM8/27/12
to rc...@googlegroups.com
Hello,

What version of Arduino IDE are you using?


On Monday, August 27, 2012 01:32:32 PM unic wrote:
> After playing around with the code ive found aut that i have to include
> SPI.h BEFORE Wishield.h and Ethernet.h.
> Now this error is disappeard.
>
> I tried the
> RCRxEthernet.pde<http://www.open.com.au/mikem/arduino/RCKit/RCRxEthernet_8p
> de-example.html> example from your homepage and after i fixed the SPI error

unic

unread,
Aug 27, 2012, 5:17:26 PM8/27/12
to rc...@googlegroups.com
ive tried 1.0.1, 1.0 and 0018.

Mike McCauley

unread,
Aug 27, 2012, 10:06:15 PM8/27/12
to rc...@googlegroups.com, unic
Hi,

thank for reporting these issues.
There were a number of files missing from the 2.0 distro.

It appears that only Arduino 1.0 and
later can be supported, (due to incompatible changes in Ethernet UDP support)

New version 2.1 is uploaded that fixes and clarifies these issues.

Please let me know how you get on.
Cheers.

unic

unread,
Aug 28, 2012, 9:01:32 AM8/28/12
to rc...@googlegroups.com
Thank You. With your new package the code compiles correct.
But I still need to change  RCRxEthernet.pde code from:
[...]
#include <WiShield.h>
#include <Ethernet.h>
#include <SPI.h> 
[...]

to: 
[...]
#include <SPI.h>
#include <WiShield.h>
#include <Ethernet.h>
[...]

i will report my further process....

unic

unread,
Aug 28, 2012, 5:09:53 PM8/28/12
to rc...@googlegroups.com
After playing around with motorcontrollersetter i finaly get rctx on iphone to work with my arduino. the Ethernetversion runs without any problems with the XBoard2 Ethernet arduinoclone. At the moment i use an Raspberry PI with USB-Wifidongle as "wi-fi shield" (portforwarding). Later on the raspberry will be used as the vpnclient.

But i still have some small problems:

first: is this correct if i want to use both joysticks only Forward an Backward (tanklike controlling) ?
Setter*  outputs[NUM_OUTPUTS] = {0, &mcL, 0, &mcR,&horn};

second: 
the keft joystick is using the accelerometer. How can i use it as normal "touchjoystick" ?

For me your code is more magic than code, as iam not very good in coding. :)
So maybe you can give me some spells to fix my problems ;-)

thx for support.
Rafael



Am Mittwoch, 8. August 2012 20:15:37 UTC+2 schrieb unic:

Mike McCauley

unread,
Aug 28, 2012, 5:49:05 PM8/28/12
to rc...@googlegroups.com, unic
On Tuesday, August 28, 2012 02:09:53 PM unic wrote:
> After playing around with motorcontrollersetter i finaly get rctx on iphone
> to work with my arduino. the Ethernetversion runs without any problems with
> the XBoard2 Ethernet arduinoclone. At the moment i use an Raspberry PI with
> USB-Wifidongle as "wi-fi shield" (portforwarding). Later on the raspberry
> will be used as the vpnclient.
>
> But i still have some small problems:
>
> first: is this correct if i want to use both joysticks only Forward an
> Backward (tanklike controlling) ?
> Setter* outputs[NUM_OUTPUTS] = {0, &mcL, 0, &mcR,&horn};

Yes, that looks right.

>
> second:
> the keft joystick is using the accelerometer. How can i use it as normal
> "touchjoystick" ?

At present, only by holding your finger on the joystick: if you list your
finger it reverts to accelerometer.

This may change i the future.

Cheers.

>
> For me your code is more magic than code, as iam not very good in coding. :)
> So maybe you can give me some spells to fix my problems ;-)
>
> thx for support.
> Rafael
>
> Am Mittwoch, 8. August 2012 20:15:37 UTC+2 schrieb unic:
> > I want to control a slow robotor over the internet. Can i User the
> > Iphone
> > App and the RCOIP protocol for that purpose ?
> >
> > greets
> > Rafael

Mike McCauley

unread,
Aug 28, 2012, 5:49:10 PM8/28/12
to rc...@googlegroups.com
Hi,

thanks for that.
I have updated the example to suit in new version 2.2


On Tuesday, August 28, 2012 06:01:32 AM unic wrote:
> Thank You. With your new package the code compiles correct.
> But I still need to change
> RCRxEthernet.pde<http://www.open.com.au/mikem/arduino/RCKit/RCRxEthernet_8p
> de-example.html> code from:
> [...]
> #include <WiShield.h>
> #include <Ethernet.h>
> #include <SPI.h>
> [...]
>
> to:
> [...]
> #include <SPI.h>
> #include <WiShield.h>
> #include <Ethernet.h>
> [...]
>
> i will report my further process....
>
> Am Mittwoch, 8. August 2012 20:15:37 UTC+2 schrieb unic:
> > I want to control a slow robotor over the internet. Can i User the
> > Iphone
> > App and the RCOIP protocol for that purpose ?
> >
> > greets
> > Rafael

unic

unread,
Aug 28, 2012, 6:04:07 PM8/28/12
to rc...@googlegroups.com
mhh, but if i cant disable the accelerometer my robot will move around everytime i release the joystick. isnt it quite annoying ?


unic

unread,
Aug 28, 2012, 6:44:32 PM8/28/12
to rc...@googlegroups.com
Sry for spamming, is there an edit function for googlegroups ? :)

I saw your tank.mp4 video on youtube and both of our joysticks dont use the accellerometer in this video. Is this an old Version of your app ?

btw, if i add or edit a profile and restart the app all my profilesettings are gone.

greets and good night. Need some sleep, its 0:45 already :)

Mike McCauley

unread,
Aug 28, 2012, 6:52:55 PM8/28/12
to rc...@googlegroups.com
On Tuesday, August 28, 2012 03:44:32 PM unic wrote:
> Sry for spamming, is there an edit function for googlegroups ? :)
>
> I saw your tank.mp4 video on youtube and both of our joysticks dont use the
> accellerometer in this video. Is this an old Version of your app ?

Yes.

>
> btw, if i add or edit a profile and restart the app all my profilesettings
> are gone.

This is a bug that is fixed in the next release 1.2 of RCTx. It has been sent
to Apple for approval and should be available on the app store in a few days.

Cheers.

>
> greets and good night. Need some sleep, its 0:45 already :)
>
> Am Mittwoch, 29. August 2012 00:04:07 UTC+2 schrieb unic:
> > mhh, but if i cant disable the accelerometer my robot will move around
> > everytime i release the joystick. isnt it quite annoying ?

unic

unread,
Aug 29, 2012, 4:07:54 PM8/29/12
to rc...@googlegroups.com
Okay after i played around with the rctx app i have another small problem that maybe can fixed in future releases.

1. As said: Option to disable accelerometer
2. Option to change the behavior of the joystick when you release the finger. As i cant use the second joystick because of the accelerometer i used the left stick for both motors. If i release the x-axis the stick will jump back to zero position. If i release the y-axis nothing happens. It would be nice when i can change this behavior by profilesettings.

Greets Rafael

Mike McCauley

unread,
Aug 29, 2012, 5:09:46 PM8/29/12
to rc...@googlegroups.com, unic
Hello,

Yes, we plan to add both those features in the future.

Cheers.

Mike McCauley

unread,
Sep 6, 2012, 9:37:48 PM9/6/12
to rc...@googlegroups.com
Hello,


On Wednesday, August 29, 2012 08:52:55 AM Mike McCauley wrote:
> On Tuesday, August 28, 2012 03:44:32 PM unic wrote:
> > Sry for spamming, is there an edit function for googlegroups ? :)
> >
> > I saw your tank.mp4 video on youtube and both of our joysticks dont use
> > the accellerometer in this video. Is this an old Version of your app ?
> Yes.
>
> > btw, if i add or edit a profile and restart the app all my
> > profilesettings are gone.
>
> This is a bug that is fixed in the next release 1.2 of RCTx. It has been
> sent to Apple for approval and should be available on the app store in a
> few days.

This version is now available on the App store.

Cheers.

Mike McCauley

unread,
Sep 6, 2012, 9:38:30 PM9/6/12
to rc...@googlegroups.com, unic
Hello,

the next release 1.3 will add these features. It has been sent to Apple and is
waiting approval. It should be available in the app store in about 1 week.

Cheers.
Reply all
Reply to author
Forward
0 new messages