Reply
Thread Tools
Posts: 25 | Thanked: 1 time | Joined on Mar 2010 @ dallas
#1
guys i was just hoping that someone with more knowledge than me with programming and developing apps for n900 could let me know if its possible to do this with the n900 somehow. Im refering to bluetooth controlled relays that uses a software name promote originally compiled for windows mobile. Please refer to all links. Thanks in advance!!


http://www.controlanything.com/
then navigate to

http://www.controlanything.com/Relay/Device/A0012


UPDATE: SIMENTRY.COM THEY HAVE JUST WHAT I NEED IN A CLEAN TESTED RELIABLE PACKAGE.

Last edited by knopow; 2010-03-21 at 13:27. Reason: UPDATE
 
Posts: 540 | Thanked: 288 times | Joined on Sep 2009
#2
They sure make the communication protocol definition difficult to find, but as I supposed the communication is done over BT serial profile, so once you get a proper protocol documentation from the manufacturer things get relatively simple as far as controlling the relays go.

Making a code-builder that builds programs to control relays is of course a lot more complex (though it could be handled by some sort widget naming convention in an existing UI builder like Glade or QTCreator)
 

The Following 2 Users Say Thank You to rambo For This Useful Post:
Posts: 481 | Thanked: 190 times | Joined on Feb 2006 @ Salem, OR
#3
If you want to control anything, relays, servos,sensors, etc, I recommend Arduino. Arduino is well documented and you can find plenty of help on the internet. If you want to control Arduino from N900, get a wifi shield or connect Arduino via serial to a cheap router with openwrt and build a simple webpage to manage your relays... etc. I can help you with Arduino. I can't help you with the product from the link you posted. .
 

The Following 4 Users Say Thank You to ioan For This Useful Post:
lcuk's Avatar
Posts: 1,635 | Thanked: 1,816 times | Joined on Apr 2008 @ Manchester, England
#4
mmm 32 relay controllers
that could potentially allow the most awesome hexapod to be created (with head/mandible control too)
__________________
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk
 
Posts: 25 | Thanked: 1 time | Joined on Mar 2010 @ dallas
#5
yeah i would really appreaciate if you would point me in the right direction to get started. i am hoping to get as much info as possible, cant wait to start controlling things with my n900, mainly focused toward automotive applications. thanks again.
 
Posts: 26 | Thanked: 6 times | Joined on Mar 2010
#6
I have a perl script I wrote last year to control a whole lot of stuff from those guys (pimp my caravan). So, perl should run ok on n900 I've been led to believe. You might have put some sort of shim in.
The script that I have uses the serial port, so should be easy enough to adapt to bluetooth (as I think it's just serial over bluetooth for those units).
It's object based, and probably a little more sophisticated than the app you mention (e.g. was used to RGB control LED strips using their PWM modules so had all sorts of extra gubbins).
You would need to strip out all the bits you need, but the bits you need are easy to get at.
Any use?

Last edited by special circumstances; 2010-03-15 at 15:40. Reason: grammar
 

The Following User Says Thank You to special circumstances For This Useful Post:
Posts: 481 | Thanked: 190 times | Joined on Feb 2006 @ Salem, OR
#7
If you want to try to do this with Arduino, first of all get an Arduino Duemilanove board:
http://www.sparkfun.com/commerce/pro...roducts_id=666

If you want to connect the Arduino to the internet, the cheapest way (and the easiest) is to get a router that is supported by openwrt.org, and has a serial port. This is what I use:
http://www.newegg.com/Product/Produc...k=asus%20520gu

Burn openwrt on the router, then open the router and install a header on the serial port of the router.
You can follow those instructions:
http://mightyohm.com/blog/2008/10/bu...-introduction/
You only need the step 3 and 4.

Then connect the GND of the router's serial port to the GND of Arduino, RX from the router to TX from Arduino, router's TX to Arduino RX.

Now you have an Arduino with Wifi powers.
To connect a relay to Arduino, you have to do something like this:
http://www.synbio.org.uk/component/c...?directory=257

If you go Arduino way, you need to learn some programming. You will learn bash on Linux (openwrt on the router is Linux) and you will learn Arduino Sketch which is based on C. It is a lot of fun and after your first successful project you will realize how much power you have, how many things you can make that before seemed impossible.

I'll help you turn on/off a LED over the internet with Arduino :-)
 

The Following 4 Users Say Thank You to ioan For This Useful Post:
Posts: 25 | Thanked: 1 time | Joined on Mar 2010 @ dallas
#8
ioan, man you are the best thanks for all the info. I will keep in touch and let you guys know my progression status. keep helping and keep learning. Knowledge is Power
 
Posts: 26 | Thanked: 6 times | Joined on Mar 2010
#9
[QUOTE=rambo;567399]They sure make the communication protocol definition difficult to find, but as I supposed the communication is done over BT serial profile, so once you get a proper protocol documentation from the manufacturer things get relatively simple as far as controlling the relays go.

Yep BT = Serial on COM Port.
Serial Protocol easy - and is shown at
http://www.controlanything.com/Relay/Device/A0010

They've got some Visual Basic and C examples up there too:
http://www.controlanything.com/Relay...ProgramSamples

Regarding the Arduino - their board already have microprocs on - (PICs I thinK), so it might be overkill as between the n900 and the onboard you've probably got everything you need.
PS Arduino are very cool though!

Last edited by special circumstances; 2010-03-15 at 18:46. Reason: not but so
 

The Following 3 Users Say Thank You to special circumstances For This Useful Post:
Posts: 481 | Thanked: 190 times | Joined on Feb 2006 @ Salem, OR
#10
Originally Posted by special circumstances View Post
Regarding the Arduino - their board already have microprocs on - (PICs I thinK), so it might be overkill as between the n900 and the onboard you've probably got everything you need.
PS Arduino are very cool though!
That depends on what you want to do. Anyway, at $13 a piece, even if it is an overkill, it's wort it:
http://wulfden.org/TheShoppe/freeduino/rbbb.shtml
 

The Following User Says Thank You to ioan For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 10:03.