Differences between revisions 3 and 12 (spanning 9 versions)
Revision 3 as of 2006-05-29 21:36:07
Size: 832
Editor: Dagobah
Comment: And then...
Revision 12 as of 2011-02-26 18:30:30
Size: 1423
Editor: BobAdamson
Comment: Applicable to old dispense, not the new one
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from FixCoke
Line 4: Line 5:
                 "killall -9 dispense ; rmmod 8250 ; modprobe 8250 ; dispense
                 
standalone coke"
  {{{pkill -9 dispense ; rmmod 8250 ; modprobe 8250 ; dispense standalone coke}}}
Line 10: Line 10:
Bernard says some more: If that doesn't fix it, after modprobe'ing 8250 but before starting dispense, fire up minicom on mermaid, and try to talk to the coke machine. You should be greeted with a prompt ":" when you press enter. Type "d7\n" (doesn't acutally dispense anything). Type "s\n" for good measure (it'll throw at you current slot names, which may be garbage, but don't worry). Exit minicom (^B-Q). Then start up dispense. To fix that:

{{{
/etc/init.d/vendserver stop
/etc/init.d/coke-server stop
rmmod 8250_pnp
rmmod 8250_pci
rmmod 8250
modprobe 8250
modprobe 8250_pci
modprobe 8250_pnp
/etc/init.d/vendserver start
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}}}

If you add more than six non-drink items to `coke.conf` dispense will stop working properly, including not dispensing drinks and showing everyone's balance as 0.

RufusGartonSmith says:

Run the following on mermaid to do all of the above:

{{{
fixcoke}}}


----
CategorySystemAdministration

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/vendserver stop
/etc/init.d/coke-server stop
rmmod 8250_pnp 
rmmod 8250_pci
rmmod 8250
modprobe 8250
modprobe 8250_pci
modprobe 8250_pnp
/etc/init.d/vendserver start
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

If you add more than six non-drink items to coke.conf dispense will stop working properly, including not dispensing drinks and showing everyone's balance as 0.

RufusGartonSmith says:

Run the following on mermaid to do all of the above:

fixcoke


CategorySystemAdministration