DIY control
-
- Active
- Posts: 12
- Joined: Wed Feb 22, 2012 12:12 am
Re: DIY control
I think there's a typo there for the data bits - I was able to connect via HyperTerminal using 9600, 8,None,1,No Flow Control which is encouraging. I think knowing now what the commands are, it'll be simple for me to control what I want to happen using my own software
- admin
- Site Admin
- Posts: 2111
- Joined: Tue Feb 19, 2008 8:14 pm
- Location: Watford,UK
- Contact:
Re: DIY control
Hi again, sorry everyone been snowed under with paying work so this got shelved for a while. I am going to resurrect it but doesn't look like I'll have much spare time until at least May. Sorry for the typo, it is of course 8 bit.
- admin
- Site Admin
- Posts: 2111
- Joined: Tue Feb 19, 2008 8:14 pm
- Location: Watford,UK
- Contact:
Re: DIY control
Its a typo, its 8N1 @ 9600Cyberprog wrote:Is that a typo for the Data Bits, being 9? Or is that just deliberate to stop me from playing with it via HyperTerminal for example! I assume there's no flow control also?
Admin
E-Stim Systems Ltd
- estim_si
- Staff
- Posts: 359
- Joined: Tue Feb 19, 2008 11:23 pm
- Location: Watford
- Contact:
DIY control
no problem, I know the feelingMFX wrote:Hi again, sorry everyone been snowed under with paying work so this got shelved for a while. I am going to resurrect it but doesn't look like I'll have much spare time until at least May. Sorry for the typo, it is of course 8 bit.
Si
Re: DIY control
A bit of an update, I've been doing little bits when I have time, I now have my own watchdog unit plugged into the 2B basically it works as follows :-
In addition to the normal commands the Android phone sends a "W" (watchdog) character every at just under half second intervals.
The watchdog has a relay which can turn either the 2B unit on and off or the outputs on and off it also has a half second timer which is reset when it receives a "W" character, if the timer doesn't get reset it switches the relay off so if the phone/network crashes or there is a powercut that turns your network off then the relay will switch off, the Watchdog unit also then sends a "K" command to the 2B to set all outputs to 0. If it starts getting "W" characters again then it turns the relay back on. It isn't in a releasable state yet, but it's getting there.
In addition to the normal commands the Android phone sends a "W" (watchdog) character every at just under half second intervals.
The watchdog has a relay which can turn either the 2B unit on and off or the outputs on and off it also has a half second timer which is reset when it receives a "W" character, if the timer doesn't get reset it switches the relay off so if the phone/network crashes or there is a powercut that turns your network off then the relay will switch off, the Watchdog unit also then sends a "K" command to the 2B to set all outputs to 0. If it starts getting "W" characters again then it turns the relay back on. It isn't in a releasable state yet, but it's getting there.
- estim_si
- Staff
- Posts: 359
- Joined: Tue Feb 19, 2008 11:23 pm
- Location: Watford
- Contact:
DIY control
I'm going to look into adding a watchdog option to the 2b...
Di
Di
- LondonSubNigel
- Active Developer
- Posts: 324
- Joined: Wed Jul 06, 2011 5:13 pm
- Location: London
- Contact:
Re: DIY control
I'm interested in trying something like this out, having just got an android tablet and a USB otg cable that should let it drive the serial port directly.
Would out be interested I sharing your code? I'm not so hot in Java, but program in other languages so would be interested in seeing if your ui could drive the serial port that way, which would give another useful way of controlling the box
Would out be interested I sharing your code? I'm not so hot in Java, but program in other languages so would be interested in seeing if your ui could drive the serial port that way, which would give another useful way of controlling the box
-
- Newbie
- Posts: 1
- Joined: Sat Feb 22, 2014 1:30 am
Re: DIY control
Hi,
The app sounds good, and well done on the progress so far!
Hows about Commandroid for a name?
Just my 2d worth.
baldy
The app sounds good, and well done on the progress so far!
Hows about Commandroid for a name?
Just my 2d worth.
baldy
-
- Newbie
- Posts: 2
- Joined: Sat Aug 23, 2014 12:07 pm
Re: DIY control
Hi,
I'm trying this out using a new 2B and Teraterm.
I seem to have everything working except the J (join) command.
J doesn't seem to make any difference to the returned status or the unit operation.
Is J correct for the latest firmware?
Thanks,
Epi
I'm trying this out using a new 2B and Teraterm.
I seem to have everything working except the J (join) command.
J doesn't seem to make any difference to the returned status or the unit operation.
Is J correct for the latest firmware?
Thanks,
Epi