in reply to Re^4: r/w attached infrared head on /dev/ttyUSB0
in thread r/w attached infrared head on /dev/ttyUSB0
try this
before
insertmy $raw = "\x06\x30\x30\x30\x0D\x0A";
select (undef,undef,undef,.5); # sub sec sleep
hint via https://volkszaehler-users.demo.volkszaehler.narkive.com/yAisjztI/vz-users-wiki#post14
and https://chromium.googlesource.com/apps/libapps/+/HEAD/hterm/doc/ControlSequences.md#C0 saying \x00 is "ignored", but perl will try to send it.
there was a time break between the two echos that may not have existed in your perl
In Section
Seekers of Perl Wisdom