Skip to content

Instantly share code, notes, and snippets.

@njmube
Forked from jdpurdyvi/Magellan 8500
Created April 15, 2020 23:07
Show Gist options
  • Save njmube/d9cdbe4c2803a231577ffb876337f909 to your computer and use it in GitHub Desktop.
Save njmube/d9cdbe4c2803a231577ffb876337f909 to your computer and use it in GitHub Desktop.
default prefix byte = 'S'
default terminator byte = '\n'
0x30 = '0', 0x31 = '1', etc
Hard Reset
command: any of S00\n , S10\n , S20\n , S30\n
response: none
Scanner Enable
enabled by default; only needed after Not-On-File or Scanner Disable
command: S01\n
response: S00\n
Scanner Disable - No Indication
disable scanner, no visual indication
command: S02\n
response: S00\n
Scanner Status
command: S03\n
response: S0301x0\n where x=0 if scanner disabled, 1 otherwise
Scanner Switch Read
command: S04\n
response: S03010000102\n
Scanner Not-On-File
disable scanner, blink red light, continuous error tone
command: S05\n
response: S00\n
Scanner Disable - Red Light
disable scanner, blink red light
command: S06\n
response: S00\n
Scale Valid Weight Request
returns scale weight if non-zero, non-negative, non-excessive, and non-transient;
if no such weight is available, scale delays response until it is
command: S11\n
response: S11abcd\n where abcd is weight in pounds as "ab.cd"
Scale Cancel
cancel a pending valid weight request
command: S12\n
response: S10\n
Scale Status
command: S13\n
response: S13ab12c\n where
a=0 for english weight, 1 for metric;
b=0 if scale enabled, 1 otherwise;
c=0 if scale not ready, 1 if weight transient, 2 if weight >30lb,
3 if weight=0, 4 if weight stable and non-zero, 5 if valid weight has been sent
Scale Monitor
returns scale weight no matter its status
command: S14\n
if scale has stable non-zero weight or is not ready,
response: S14x0abcd\n where x=0 if not ready, 4 if scale has stable non-zero weight,
abcd=weight in pounds as "ab.cd"
if scale has zero weight, or under zero, or over capacity, or transient,
response: S14a where a=1 if weight transient, 2 if over capacity, 3 if zero, 5 if <0
Display Data
apparently not implemented on our 8500s
supposed to print a custom string "abcdefg" on the poll display
command: S21abcdefg\n
response: S20\n
Display Status
command: S23\n
response: S23a\n where a=0 if showing price/weight, 1 if weight only, 2 if alphanumeric
soft reset
command: S320\n
response: none
hard reset
command: S321\n
response: none
disable scanner - red light
command: S32B\n
response: ?
default params
command: S32C\n
response: ?
disable scanner - no indication
command: S32D\n
response: ?
enable tone
command: S32F\n
response: ?
good beep
command: S334\n
response: none
soft power down
command: S335\n
response: ?
send status to host
command: S336\n
response: ?
save and reset
command: S337\n
response: ?
disable tone
command: S339\n
response: ?
enter toad mode ..?
command: S33A\n
response: ?
not-on-file
command: S33F\n
response: ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment