Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2006-05-29 21:26:10
Size: 210
Editor: MattJohnston
Comment:
Revision 5 as of 2007-09-23 22:30:35
Size: 951
Editor: NickBannon
Comment: reformat, use pkill/init script
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
                 "killall -9 dispense ; rmmod 8250 ; modprobe 8250 ; dispense
                 standalone coke"
  {{{pkill -9 dispense ; rmmod 8250 ; modprobe 8250 ; dispense standalone coke}}}

DavidAdam says:
Yeah, but occasionally this doesn't fix it - we end up with trash in the coke contents (control characters on morwong, off-by-one dispense protocol dumps on mussel...

To fix that:

{{{/etc/init.d/coke-server stop
rmmod 8250 ; modprobe 8250
minicom}}}

Fire up minicom on mermaid with the default config (9600bps, 8N1 on /dev/ttyS0) and try to talk to the coke machine. You should be greeted with the prompt ":" when you press enter. Enter "d7" (doesn't actually dispense anything). Enter "s" for good measure (it'll throw at you current slot names, which may be garbage, but don't worry, they'll be reset when dispense runs). Quit minicom with no reset ({{{^B-Q}}}) - do not eXit (with {{{^B-X}}}). Then:
{{{
/etc/init.d/coke-server start}}}

Bernard says:

21:25 < bernard> Zanchey: typically it involves running on mermaid as root

  • pkill -9 dispense ; rmmod 8250 ; modprobe 8250 ; dispense standalone coke

DavidAdam says: Yeah, but occasionally this doesn't fix it - we end up with trash in the coke contents (control characters on morwong, off-by-one dispense protocol dumps on mussel...

To fix that:

{{{/etc/init.d/coke-server stop rmmod 8250 ; modprobe 8250 minicom}}}

Fire up minicom on mermaid with the default config (9600bps, 8N1 on /dev/ttyS0) and try to talk to the coke machine. You should be greeted with the prompt ":" when you press enter. Enter "d7" (doesn't actually dispense anything). Enter "s" for good measure (it'll throw at you current slot names, which may be garbage, but don't worry, they'll be reset when dispense runs). Quit minicom with no reset (^B-Q) - do not eXit (with ^B-X). Then:

/etc/init.d/coke-server start