Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Compiling and uploading a crontab to my Radioduino

by cavac (Parson)
on May 30, 2021 at 09:56 UTC ( [id://11133299]=note: print w/replies, xml ) Need Help??


in reply to Re: Compiling and uploading a crontab to my Radioduino
in thread Compiling and uploading a crontab to my Radioduino

Oh, yes. It's badly named. This function actually turns the bytes (which ARE bytes) from the binary packet frame into "cavac-encoded" half-bytes for serial transmission.

So, $highbyte (which should actually be $highnibble or something) can't go over 255).

The reason i'm using this encoding is because it's dead simple to turn it back into real bytes, while allowing proper framing for transmitting over serial.

perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133299]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found