LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strings to 7-Bit binary

Dear Sebastian,

some years later ... I have the same issue, can you explain how you have solved the conversion from the ascii to 7-bit PDU.

 

Regards,

Asper

0 Kudos
Message 11 of 13
(826 Views)

Well, as you noticed, this is a very old thread, but the problem sounds very similar to the bit-twiddling challenge from 2002. This means that very efficient algorithms exsts, we just need to do a few tweaks to adjust the lenghts. (For some reason, the result page (link currently broken!) of the challenge has disappeared. I contacted NI to see if it caqn be restored...).

 

(Hint: avoid any green datatypes and do it all in blue code :D)

 

Does performance matter? How long are you strings?

 

Can you attach a very simple VI containing a typical input string and the expected result?

0 Kudos
Message 12 of 13
(816 Views)

Dear altenbach,

as Sebastian, my goal is to encode an ASCII text in PDU GSM standard alphabet.


The PDU format is a 7-bit code packed in 8-bit, the 7-bit characters have a own conversion table vs ASCII.
The text length is maximum 160 character (standard SMS).


I have solved the issue, let say, by brute force, see attached image.

SMS_PDU_Message_8bit_to_7bit_Converter.png

 

I was wondering if Sebastian, or someone else,  has found a more efficient solution.

 

Asper

0 Kudos
Message 13 of 13
(785 Views)