Converting a 15-character all-numeric string from ASCII to 2-3 unsigned longs

First check to see how many characters you receive.

Then convert the last 5 (or less) to a long.

If more than 5 characters, remove the last 5 characters.

Repeat two more times for the remaining longs.