HOW-TO: Make a Remote Controlled vehicle with an SBC

danhoskin
Phidgetly
Posts: 45
Joined: Wed Jan 16, 2008 6:05 pm

Re: HOW-TO: Make a Remote Controlled vehicle with an SBC

Postby danhoskin » Fri May 14, 2010 6:10 am

OK,

That got me a bit farther along. I got stuck (again) at:

Now, we must edit the startup script to run this rather than wpa_supplicant. This script is located at /etc/udev/rules.d/70-usb-wifi.rules

comment out the line:

Code:
ACTION=="add", RUN+="/sbin/start-stop-daemon --start -background --pidfile /var/run/network/bogus --startas /sbin/wifi -- start $env{INTERFACE}"


I get a 'Permission denied' error. Any thoughts as to what I am not doing?

Thanks again.

Robert

Re: HOW-TO: Make a Remote Controlled vehicle with an SBC

Postby Robert » Fri May 14, 2010 9:26 am

Can you copy/paste what you have inside that file?

danhoskin
Phidgetly
Posts: 45
Joined: Wed Jan 16, 2008 6:05 pm

Re: HOW-TO: Make a Remote Controlled vehicle with an SBC

Postby danhoskin » Fri May 14, 2010 10:09 am

Password:
ifconfig wlan0 down
iwconfig wlan0 mode ad-hoc
iwconfig wlan0 essid 'phidget'
iwconfig wlan0 key 1234567890
ifconfig wlan0 up
ifconfig wlan0 192.168.100.2
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
# /etc/udev/rules.d/70-usb-wifi.rules
-sh: /etc/udev/rules.d/70-usb-wifi.rules: Permission denied
#

Robert

Re: HOW-TO: Make a Remote Controlled vehicle with an SBC

Postby Robert » Fri May 14, 2010 10:47 am

oh I see what you're doing. You need to edit that file:

Code: Select all

vi /etc/udev/rules.d/70-usb-wifi.rules

danhoskin
Phidgetly
Posts: 45
Joined: Wed Jan 16, 2008 6:05 pm

Re: HOW-TO: Make a Remote Controlled vehicle with an SBC

Postby danhoskin » Fri May 14, 2010 11:55 am

Thanks again.

danhoskin
Phidgetly
Posts: 45
Joined: Wed Jan 16, 2008 6:05 pm

Regarding bandwidth

Postby danhoskin » Fri May 21, 2010 11:48 am

It's all working great so far but I think the fact that my lan cable is running right beside a 600 v motor cable may be at least partly responsible for the webservice issues I am having. We are giving the wireless a try on the project.
Do you think we would be OK for bandwidth on the SBC with the USB wireless adapter that came with the SBC and 3 Advanced Servo (8) cards attached?

This is the part of your post that got me thinking about it:

ISSUES: NETWORK LATENCY
The SBC runs a USB 1.1 bus. That gives it 12mbit of bandwidth for ALL USB devices on the SBC. That includes all of the phidgets, the webcam, and wifi. If there's too much happening at once, things will start to get delayed. This usually isn't a problem, you can normally get away with a webcam, wifi, and a few phidgets provided that you aren't hammering it with commands.


Thanks,
Dan

Robert

Re: HOW-TO: Make a Remote Controlled vehicle with an SBC

Postby Robert » Fri May 21, 2010 11:57 am

That won't be a problem. The Phidgets themselves consume a fairly small amount of bandwidth.

didier.bravo

Re: HOW-TO: Make a Remote Controlled vehicle with an SBC

Postby didier.bravo » Fri Mar 04, 2011 12:30 pm

Great post Robert,

so if I understood this correctly, you created an application using the phidgets library on windows. then you set up the wireless on theSBC and now you can control your tank from your PC using the jostick. i understand you did more things to connect the josticks and to set up the wireless and all that. but basically that's it right?

this is great for me. i would start a new project with the new SBC2 but i dont know if i would find some limitations with the usb or the wireless adapter. have you tried or know something about this new sbc2??

one more thing, how difficult would be to create a script or a program (i still don't know how that works) that runs on the SBC an not on the pc.

Regards

Jacob
Phidgetly
Posts: 38
Joined: Tue Sep 29, 2009 8:56 pm
Contact:

Re: HOW-TO: Make a Remote Controlled vehicle with an SBC

Postby Jacob » Sat Apr 16, 2011 7:30 pm

This does not appear work on my SBC2.

find / -name *usb-wifi*
returns /lib/udev/rules.d/60-usb-wifi.rules

Which contains

SUBSYSTEM=="net", SUBSYSTEMS=="usb", KERNEL=="wlan*", RUN+="wifi.agent"


Does this work on the SBC2?

_Dejan_

Re: HOW-TO: Make a Remote Controlled vehicle with an SBC

Postby _Dejan_ » Sun Apr 17, 2011 3:43 pm

Jacob wrote:This does not appear work on my SBC2.

find / -name *usb-wifi*
returns /lib/udev/rules.d/60-usb-wifi.rules

Which contains

SUBSYSTEM=="net", SUBSYSTEMS=="usb", KERNEL=="wlan*", RUN+="wifi.agent"


Does this work on the SBC2?


SBC2 work on different OS than SBC1, so network configuration is different...


Return to “Robotics”

Who is online

Users browsing this forum: No registered users and 2 guests