473,385 Members | 1,907 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,385 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 8932
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.