Differences between revisions 6 and 14 (spanning 8 versions)
Revision 6 as of 2010-08-30 12:41:21
Size: 1314
Editor: BobAdamson
Comment:
Revision 14 as of 2012-07-20 10:25:22
Size: 1297
Editor: DylanKerr
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
If the door sensors die: == The Door Lock ==
{{{
Hi All,
Line 3: Line 5:
 * On Mussel, as root:
{{{
/etc/init.d/uccdoors stop
/etc/init.d/latd restart
/etc/init.d/uccdoors start
The modem has now been replaced with the arduino and the small 5v relay
board. It's working for now, but it's a hack and not even properly boxed
up. [TPG] has already modified dispense to suit it. If it breaks, I'll let
you keep the pieces.

For posterity, here are the super-sekret settings and commands:

Serial over USB connected to merlo, 115200 8n1
Type "2;" and it will respond with "1,The UCC door is alive;"
Type "4;" and it will respond with "1,Opening door;" , keep the lock open
for ten seconds and then say "1,Locking door;". The command codes are
strange numbers because I hacked the CmdMessenger [1] library example to
do the job.

I've found using picocom to check it is easier than minicom. The following
command* will start picocom with the correct baud rate and a command
character of x: `picocom /dev/ttyUSB0 -e x -b 115200'

Bob

[1] http://arduino.cc/playground/Code/CmdMessenger
Line 10: Line 28:
 * On Madako, as root:
{{{
moprc -i eth0.2 janus
<enter password>
<enter username (UCC)>
set priv
<enter privilege password>
init del 0
}}}
== Fixing the door lock ==
Symptom: Cries of "The door's broken." Door relay doesn't activate from snack machine, dispense or serial from Merlo.<<BR>>
Cause: The seeduino program seems to hang.<<BR>>
Fix: Restart seeduino (unplug/replug), then restart vendserver.<<BR>>
 - [DTK]
Line 20: Line 34:
Not all these steps may be necessary - often, resetting the DECterm (second item above) will do the trick.

== Some tricks and lessons learned ==
 * The door solenoid requires a fair bit of power, the huge power supply in the machine room is huge because it needs to be. Don't try and substitute it with a wall wart.
 * Similarly, the door solenoid struggles for power when you try and power it with only 2 of the 4 wires. Instead, connect 2 wires to each terminal.
 * The modem takes 12V, so does the solenoid - don't try giving it 9V, it doesn't like it
 * To test if you have connectivity to the modem:
  * From mussel:
  . {{{
llogin door -w-
}}}
  * Enter the password
  * From here you can send characters to the modem (they won't come up on the screen though)
  * Watch the lights on the front of the modem, one of them should turn on and flicker when you're sending data
  * To manually open the door over serial type ATH1F (case sensitive) and hit enter
 

The Door Lock

Hi All,

The modem has now been replaced with the arduino and the small 5v relay 
board. It's working for now, but it's a hack and not even properly boxed 
up. [TPG] has already modified dispense to suit it. If it breaks, I'll let 
you keep the pieces.

For posterity, here are the super-sekret settings and commands: 

Serial over USB connected to merlo, 115200 8n1
Type "2;" and it will respond with "1,The UCC door is alive;"
Type "4;" and it will respond with "1,Opening door;" , keep the lock open 
for ten seconds and then say "1,Locking door;". The command codes are 
strange numbers because I hacked the CmdMessenger [1] library example to 
do the job.

I've found using picocom to check it is easier than minicom. The following 
command* will start picocom with the correct baud rate and a command 
character of x: `picocom /dev/ttyUSB0 -e x -b 115200'

Bob

[1] http://arduino.cc/playground/Code/CmdMessenger

Fixing the door lock

Symptom: Cries of "The door's broken." Door relay doesn't activate from snack machine, dispense or serial from Merlo.
Cause: The seeduino program seems to hang.
Fix: Restart seeduino (unplug/replug), then restart vendserver.

  • - [DTK]


CategorySystemAdministration