473,320 Members | 2,189 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

get 7-bit from character (GSM 03.38)

Hi,

I need to a way to find the 7-bit code from a character. Or a function like
Asc() but that will give the character code based on the 7-bit ecoding (I
needf it fo convert text to GSM 03.38).

For exemple:
in ASCII (what I don't need!):
"é" -> 233 (= Asc("é") -> 11101001 (8 bits)

in 7-bit GSM 03.38 (what I need!!):
"é" -> 5 -> 0000101 (7 bits)

Does anybody knows how to get this?

Thanks a lot in advance,

Pieter
Jul 21 '05 #1
1 8922
DraguVaso <pi**********@hotmail.com> wrote:
I need to a way to find the 7-bit code from a character. Or a function like
Asc() but that will give the character code based on the 7-bit ecoding (I
needf it fo convert text to GSM 03.38).

For exemple:
in ASCII (what I don't need!):
"é" -> 233 (= Asc("é") -> 11101001 (8 bits)
No, that's not ASCII. There are no accents in ASCII.
in 7-bit GSM 03.38 (what I need!!):
"é" -> 5 -> 0000101 (7 bits)

Does anybody knows how to get this?


It looks like you just need a mapping table - the reverse of the map
listed at

http://www.smsitaly.com/Download/ETSI_GSM_03.38.pdf

It shouldn't be too hard, especially given that all the valid
characters are in the first 256 values of unicode. Just have a byte
array with 256 values, where anything over 0x7f indicates that the
value is missing. For each character, check that the unicode value is
in the range 0-0xff, then find the byte value in the array. If it's
< 0x80, that's the value you want. If it's not, there's no such
character in GSM 03.38.

I suggest you write it as an Encoding, as you can then plug it into
your serial port code very easily.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Joe Black | last post by:
Hi all, Just wondering if any one can help here, I have been asked if I can create an app that will communicate with a piece of hardware in a remote location that has a GSM module fitted. The...
1
by: DraguVaso | last post by:
Hi, I need to a way to find the 7-bit code from a character. Or a function like Asc() but that will give the character code based on the 7-bit ecoding (I needf it fo convert text to GSM 03.38)....
6
by: Nuno Magalhaes | last post by:
Is there any way to encode a byte stream of audio data into GSM or other codec data, and the decode also? I searched all over the Internet and didn't find any valid solution applying to C#. I'm...
1
by: mavester | last post by:
Hi all, i need some help in order for me to startup my project. Here is the device and dscription i stated below: s/w needed: vs2003 or vs 2005 language: any code behind for which is suitable ...
1
by: SRN | last post by:
Hi, I am doing the coding for send SMS from PC to Mobile Using GSM Modem in ASP.Net Framework 3. I am having SAMBA GSM modem and i am using the following code that is working fine. This...
1
by: ieyra204 | last post by:
hi guys, i wanna know about how to implement the data in microsoft access to GSM module. my project is for student to know their result using SMS. GSM module is between handphone and pc which has...
1
by: XD | last post by:
Hi All, Can anyone give me a sample code to write an vb.net app to send sms using GSM Modem? I chekced websites out - but I don't get any good results for a sample code using GSM modem to send...
16
by: Gianmaria Iaculo - NVENTA | last post by:
Hi there, I'm so new to python (coming from .net so excuse me for the stupid question) and i'm tring to do a very simple thing,with bytes. My problem is this: i've a byte that naturally is...
0
by: ajorge | last post by:
I'm a rookie with C# and VB programming languages, but I need to make a connection of two GSM Modems for Remote Monitoring. I've done some web research and i've found a C# code to make the two modems...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.