Skip to main content

AS-613 Command and Data Reference

This page presents the commands and packet layouts documented in the official AS-613 User Manual, Ver.1.3.1 Jul.2026.

note

Manual scope The manual does not define the Mode 1/2 zone-packet fields, the complete Mode 12 packet, several timing details, or every invalid-value behavior. A host parser must reject frames that do not match a documented layout.

Transport rules​

  • ASCII commands and data
  • Commands in lowercase
  • Command terminator: LF or CR
  • 8 data bits, no parity, 1 stop bit, no flow control
  • Supported baud values: 115200, 230400, 460800, 921600
  • Default baud: 460800 bps in the protocol section
  • Command-table initial value: 921600 bps
  • Command responses begin with = and end with !
  • Send the next command after the previous response
  • Allow several hundred milliseconds or more after commands that reset or fast-reset the module

Response types​

ResponseMeaning
=<value>!Query or setting completed
=OverRange!Invalid argument count, range, or format
=UnSupport!Command unsupported in active mode/mount/work profile
=UnKnown!Unknown command or internal queue-registration failure
=Error!Internal failure such as flash-write failure
=Missing!Missing target parameter, documented for exclusion-zone selection
=NoTarget!Requested target does not exist, documented for exclusion-zone selection
=PresenceClr!Live presence slots/counter initialized

Packet identifiers​

ModeNormal/basicWaveform/alternateVacancy or short state
1 Wall position# distance* zone#0!
2 Ceiling position$ distance~ zone$0!
5 Vital% no waveform@ waveform%0!, @0!
6 Vital + position& no waveform? waveform&0!, ?0!
11 Advanced vital} no waveform{ waveform}0!, {0!
12 Restroom^Not fully documented^0! mentioned in setup only
13 Hospital bed/ no waveform\ waveform/A! or \A! short states
14 Presence< distance work> vital work<ZZZ!, >ZZZ!
Command response=-Ends with !

*, ~, and the complete ^ packet are not defined in the supplied manual.

Command reference​

Flow and reset​

CommandDocumented valuesPurpose / notes
startRuntimeStart data output; also reactivates from idle. Initial frames may contain buffered state.
stopRuntimeStop data output while internal detection continues.
pwr0..3; source discusses defaults 2/3 inconsistently0 idle; 1 minimum output; 2 initial/factory output; 3 configured output. Values 1-3 apply immediately.
reset-Software restart, retain settings.
freset-Restore factory settings; changed baud is documented as retained.
mreset-Restore active mode only; other mode settings retained.

Identification and mode control​

CommandDocumented valuesPurpose / notes
verQueryReturn model/date/time/version string. The manual example is not a production requirement.
infoQuery or 1..100 sNo argument: settings blocks. Timed value: real-time coordinates; not supported in Mode 14.
test0, 1Test output; 1 reduces wait to 11 s and stops data output, 0 restores default wait.
winkRuntimeBlink LED about 10 times at 150 ms intervals.
mode1,2,5,6,11,12,13,14Select operating mode. License restrictions apply.
exten0, 1Basic/extended packet; Mode 14 adds signed Y. No effect in Mode 12 per summary.
interval1..255 × 100 msOutput interval; waveform output can force 100 ms.
wait3..43200 s; default 15Vacancy/no-target packet interval.
baud115200/230400/460800/921600Set UART baud; changed value survives freset and mreset. Use 460800 for the initial connection described by the protocol section.

Detection sensitivity and persistence​

CommandDocumented valuesPurpose / notes
sena1..1000; default missingPrimary target sensitivity; higher is more sensitive/noise-prone.
senb1..100; default missingSecondary sensitivity; detailed semantics missing.
senc1..100; default 30Minimum reflected-energy percentage accepted as target.
senin1..9; default 6Entry confidence; higher can reject false targets but increases acquisition time.
senout2..50 s; default 10Target-maintenance time.

Geometry and orientation​

CommandDocumented valuesPurpose / notes
xminWall -450..450; ceiling -300..300 cmMinimum X boundary. Mode/profile-specific limits may differ.
xmaxWall -500..500; ceiling -400..400 cmMaximum X boundary.
yminWall -450..450; ceiling -300..0 cmMinimum Y; ceiling uses negative values.
ymaxWall -450..450; ceiling -300..0 cmMaximum Y; ceiling positive values ignored/unsupported.
zminWall 0..900; ceiling -300..300 cmMinimum Z; wall uses positive values.
zmaxWall 0..900; ceiling -300..300 cmMaximum Z; wall uses positive values.
alrmin-90..0°Left boundary.
alrmax0..90°Right boundary.
aduminNegative angle; exact table range missingDown boundary.
adumax0..90°Up boundary.
rotate0/90/180/270°Clockwise board rotation correction.
walltilt0..45°; default 0Downward wall tilt correction in supported wall modes.
geometryReferenced in mode summaries; command row absentQuery/set geometry behavior requires firmware documentation.

Waveform and vital limits​

CommandDocumented valuesPurpose / notes
wave0, 1; default 0Respiration waveform. Documented for Modes 5, 6, 13 and inconsistently for Mode 14.
pulse0, 1; runtimePulse aligned to breathing-detection timing; not retained.
hmaxRow incompleteHeart-rate detection distance; syntax/default/range absent.
bmaxSource says default 300 cm, max 600 cm and ≤ zmaxBreathing detection distance. Command examples/ranges are incomplete.

Mode 12 restroom​

CommandDocumented valuesPurpose / notes
rstc1..30 min; default 5Stay-time-over reference.
rrsh100..300 cm; default 220Sensor height.
rrdoorx-50..50 cm; source default 0Entrance X.
rrdoorz-40..100 cm; source default 100Entrance Z.
rrdoorwd60..120 cm; source default 80Entrance detection diameter.

Mode 13 hospital bed​

CommandDocumented valuesPurpose / notes
hbinstall0 ceiling; 1 wallSelect installation. Wall assumes 170 cm; the angle reference requires confirmation.
hbsh100..300 cm; default 220Ceiling sensor height only.
hbh10..69 cm; default 55Mattress-top height. At ≤30 cm, floor mattress behavior disables fall detection according to source.
hbw90..160 cm in the Mode 13 description; command table shows 80..1700Bed width. Use the Mode 13 installation range unless working with firmware documentation that defines another range.
hoffset1..9 in setup; 5 centerCorrect left/right bed shift. The command text uses hoffset; one diagram labels it hboffset.
wallside0 head, 1 left, 2 rightBed direction; unsupported in wall install where head direction is fixed.
hbdsFour HRDL bits; default 0000Direction disable flags; relationship to wallside requires clarification.
fallsh10..300 cm; 0 restore; default 90Fall-detection sensor height; automatic restart.
falleh10..fallsh; 0 restore; default 50Exclude positions above this height from fall decision; automatic restart.
hbfalla0/1; default 1Fall-risk warning output.
hbfalls0/1; default 1Fall-occurrence warning output.
bedsorea0/1; default 1Pressure-ulcer-risk warning output.
bedsores0/1; default 1High pressure-ulcer-risk warning output.
hrv0/1; default 1HRV output.

Mode 14 presence​

CommandDocumented valuesPurpose / notes
pmount0 wall, 1 ceiling, 2 cornerSelect installation profile.
pwork0 distance, 1 vitalSelect presence work profile.
cornerleft1..1000 cm; default 300Measured left-wall length in corner installation.
cornerright1..1000 cm; default 300Measured right-wall length in corner installation.
doorxSource general range -300..300 cm; profile-specificEntrance X or negative left-wall door distance in corner mode.
doorzSource general range 0..600 cm; profile-specificEntrance Z or positive right-wall door distance in corner mode.
doorwd80..150 cm; default 90Entrance detection diameter/width; source terminology must be normalized.
presenceclrRuntimeClear live presence slots and vacancy counter.

Exclusion zones​

CommandDocumented purposeConflict requiring validation
exzonQuery/disable/enable active profileConfirm persistence and profile key.
exzinfoQuery count or slot coordinatesEmpty-slot output and slot numbering.
exzsetStore center/half-width rectangleOverview uses coordinates without slot; command table appears to use slot first.
exzpickStore rectangle around current targetOverview says target 1-5; command table refers to target 0.
exzdelDelete slot 1-5 or all with 0Confirm sorting and whether 0 also disables function.

Packet layouts​

Lengths below are counts of the displayed fixed-width ASCII templates, including the start marker and !, excluding any trailing CR/LF. They are not measured firmware output lengths. Confirm padding and actual emitted frames before implementing a parser.

Mode 1 - wall position​

#ABBBBCCCDDD! 13 bytes
#ABBBBCCCCDDDEEE! 17 bytes, extended

A target; signed X; optional signed Y; positive Z; energy.

Mode 2 - ceiling position​

$ABBBBCCCCDDD! 14 bytes
$ABBBBCCCCDDDDEEE! 18 bytes, extended

A target; signed X; optional negative Y; signed Z; energy.

Mode 5 - vital​

%ABBBCCDDD! 11 bytes
%ABBBCCDDDDEEEEFFFGGG! 22 bytes, extended
@ABBBCCDEEEFFF! 15 bytes, waveform
@ABBBCCDEEEFFFFGGGGHHHIII! 26 bytes, waveform + extended

Vital state; heart rate; breathing rate; optional pulse/waveform; position and distance/power by variant.

Mode 6 - vital + position​

&ABBBBCCCDDDEFFFGG! 19 bytes
?ABBBBCCCDDDEFFFGGHIII! 23 bytes, waveform

Target; signed X; positive Z; energy; vital state; heart rate; breathing rate; optional pulse/waveform.

Mode 11 - advanced vital​

}ABBBCCDDEEFFF! 15 bytes
}ABBBCCDDEEFFFFGGGGHHHIII! 26 bytes, extended
{ABBBCCDDEEFGGGHHH! 19 bytes, waveform
{ABBBCCDDEEFGGGHHHHIIIIJJJKKK! 30 bytes, waveform + extended

Vital state; heart rate; breathing rate; RMSSD; SDNN; optional pulse/waveform; position/power by variant.

Mode 13 - hospital bed​

/A! short state
/ABBBCCDDEEFFGGHIIJJJ! 22 bytes
\A! short waveform-state
\ABBBCCDDEEFFGGHIIJJJKKK! 25 bytes

State; heart rate; breathing rate; optional external SpO2 and temperature; RMSSD; SDNN; external-device fields; temporary data; optional respiration waveform.

Mode 14 - presence​

<ZZZ! vacant duration, hexadecimal minutes
<ABBBBCCCDEEEFFFGGG! 20 bytes
<ABBBBCCCDEEEFFFGGGHHHH! 24 bytes, extended Y

>ZZZ! vacant duration, hexadecimal minutes
>ABBBBCCCDEEEFFFGGGHHHIIJJJ! 28 bytes
>ABBBBCCCDEEEFFFGGGHHHIIJJJKKKK! 32 bytes, extended Y

Presence slot; signed X; Z; status; hexadecimal presence/non-detection time; temporary data; optional closest-person heart/breath/waveform; optional signed Y.

State values​

Vital state in Modes 5 and 6​

ValueMeaning in source
0No target
1Target moving
2Target, no valid vital signal
3Target, valid vital signal
4Fall detection

Mode 11 packet tables list only 0-3. The meaning, availability, and algorithm behind state 4 in Modes 5/6 are not described.

Hospital-bed state​

ValueMeaning in source
0Bed empty
1Standing beside/outside bed
2Sitting or lying beside/outside bed
3On bed, awake
4On bed, tossing/turning
5On bed, sleeping
6Bed fall-risk warning
7Bed fall occurrence
8Pressure-ulcer-risk warning
9High pressure-ulcer-risk warning

Parser implementation notes​

  • Match the active mode, start character, exten setting, and waveform setting before decoding a frame.
  • Validate fixed widths, signs, and decimal or hexadecimal fields exactly as shown.
  • Treat undocumented packet variants and malformed frames as unsupported input.
  • The manual does not define overflow, saturation, unavailable-value codes, object-index lifetime, or maximum response time.

AS-613 UART packet anatomy and parser checks

Use the active mode, start character, frame length, and settings to select the correct parser schema.