![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Dear all m designing a sms based car theft alarm system. m using visiontek gsm modem to communicate with pic16f877a. now i want to send the at commands from controller to gsm . what is the ascii value for "Enter","cltlz" of the keyboard etc..where can i find this chart for converting this into ascii value or hex . actually when we write it thru hyperterminal and send to gsm does the hyperterminal itself change it to ascii or hex to send it to gsm modem? and what will the controoler pic send to gsm modem...will it accept hex or ascii ? m confused.please help me out............ | |
| |
| | (permalink) |
| You can Google for an "ASCII table" to find those. Like this one: http://www.neurophys.wisc.edu/comp/docs/ascii.html ALL signals are binary in 0s and 1s. Every single signal. Every last one. The only difference is how you interpret them. ASCII is one way to interpret a binary signal. Hexadecimal is just another way to write a number, just like decimal. THey are just different number/counting systems used to represent the same number. Hexadecimel (and octal) are a shorter more convenient ways to write binary. They are used for this purpose instead of decimel because it is easier and more straightforward to convert back and forth between a hex/octal number into binary. It tends to be faster (and read with less mistakes) to read FF (hex) instead of 11111111 (binary) because you are more likely to get lost in all the digits of a binary number, since they have so many digits because binary has a small base number. When you type a number into the compiler, you have to tell the compiler what number system you are using. FOr example, some compilers recognize a number 0x______ as hexadecimel and 0b________ or %________ as binary and assume any number that is just ____ is decimel. For example, 0b11111111 (11111111 in binary) = 0xFF (FF in Hex) = 255 (in decimal) Last edited by dknguyen; 14th March 2008 at 03:40 AM. | |
| |
| | (permalink) |
| thanks for replying ...i know the difference of hex and ascii...just want to know modem accepts ascii or hex value thru pic to send sms | |
| |
| | (permalink) |
| A GSM phone does not use the ASCII character set. It is close but it is not 1:1 and onto. Here is the top google hit for GSM 03.38 character set: http://www.csoft.co.uk/sms/character_sets/gsm.htm
__________________ We never have time to do it right; but we always have time to do it over. | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| PIC communication with external serial flash | mzd2 | Micro Controllers | 3 | 29th March 2008 12:42 PM |
| how send serial data with PIC | HCT-Pirate | Micro Controllers | 7 | 3rd February 2008 05:27 PM |
| DS1302 with PIC16f877 program | RasCreationKing | Micro Controllers | 28 | 3rd May 2007 01:03 PM |
| Need some help with a code provided by ATMEL | ikalogic | Micro Controllers | 1 | 23rd January 2007 03:46 PM |
| HOW TO INTERFACE RTC DS1307 WITH PIC MICROCONTROLLER. | ANUPAMA | Micro Controllers | 4 | 22nd March 2004 08:43 PM |