hello hey can any one please provide me a complete program ( in "C") of sending a SMS from a GSM modem to an 8051 microcontrolleer. for example: I want to turn on a light with the help of 8051 using an SMS. If possible also provide me the circuit diagram of interfacing between GSm modem and 8051. PLz help meee
Thank you...
At the risk of having this being taken the wrong way, I feel this has to be said:
Is there a way for you people to make some of these comments sticky on this forum.
I come here occasionally to see what's been occuring and so frequently see almost the same comments being made by the same people.
Only if it's basically similar to the other n languages.
I get the impression that Assembler is the OP's only language; moving to a high-level language - any HLL - is quite a large step. But, thereafter, learning another HLL will be much easier...
As you say, knowing assembler will be some help - but not as much as knowing another HLL.
I don't consider assembler a programming language. To me, it is just a set of mnemonics.
So, in this case C is most probably the first language. And the first language normally takes a lot of time to learn and understand. Especially pointers, arrays, and the importance of evaluation order.
When you do know n languages, where n is starting to get big, then even "strange" languages will have pieces that are similar with the already known languages. The first functional language will feel strange, but the second or third will just be different writings of known concepts.
In this case, the big value with knowing assembler is that it helps with pointers, and it helps with understanding what SFR are and what makes a processor tick. Knowledge of assembler also allows the user to realize why a trivial C source line may expand into a large number of assembler instructions, or into function calls to helper functions. It is so easy to think that a source code line that looks trivial really is trivial for the processor. There should be a law that every programmer has to implement a division routine in assembler - especially since all that code represents a single little forward slash character in the HLL.
Trevor: Yes, sticky threads would be nice. But we are just end users, so we would not be allowed to edit them, or make them sticky.
Keil already have their own way to handle common questions. They have a number of FAQ pages that contains links to one or more forum threads that does cover the specific question. But it requires the users to use the search function, and a lot of Keil visitors have a policy that search engines must not be used.
Which, of course, also defeats the object of "Sticky" threads...
:-(
One thing that would be useful, though, is an easy way to get a link to an individual post - rather than just entire threads...
uk.youtube.com/watch
If your hardware is ready and You know how to solve it in ASM, your are half way there. Look at the RS-232 sample in the samples folder that was installed with the compiler. Get a C reference book so that you can modify the code to match your needs. Post here if you any questions. Avoid the temptation to organize the program as if it was ASM ( Do not use goto to jump around)
hey thanks for replying. my email ID is mlk_mehta@yahoo.co.in. What I exactly want is a "C" code for turning on a fan or a tubelight through SMS with the help of microcontroller....
thank you
Note: I had co-workers and friends who were in the original ANSI groups trying to develop an official "ANSI C." (Honestly, these guys were indeed geniuses--I was lucky to learn from them).
I envy you!
per westermarck what kind of fool are you????
"per westermarck what kind of fool are you????"
You have not provided any context whatsoever. If I can't determine a reason for such a silly question, Per won't be able to either.
So, what, precisely, is your issue?
Presuming you are just being socially inquisitive, of the "fool" categories, Per is in the "anti" category. And as long as were so inquisitive and interested in each other here, what kind of fool are you?
No, I envied them! (2x, but one in particular...)
WARNING: Another Off-Topic Rambling:
While I was over at this kid's house using one of his 'other' computers as he was logged onto that pre-ANSI chat thing (BBS, or whatever it was). I wrote a "C" program to parse a source file, extract what I needed and write the results to another file:
C:>parse source.c results.x
I was so proud of it and its direct simplicity: it was only two screens worth of code. I showed the kid, and he told me it was 'nice' and would work just fine. Then he asked my why I just didn't do this... and in one line of code, he wrote the exact same thing:
int main( argc, argv ) int argc, char **argv; { ONE_LINE_OF_CODE; }
Then he went back to discuss some esoteric "C" thing on his blazingly fast behemoth UNIX system.
I sat there and thought about the word 'envy.' On one hand, I hated him for being way smarter than me (I had 'ego troubles' back then too), on the other hand, he was my friend and I was proud of him and proud to be in his presence.
Yes, he was a kid. Living with his mother, and didn't even have a drivers license yet. He was fluent in seven (7) spoken languages, skipped High School altogether and had finished most of his undergrad at the local college before I knew him. (He was 'smuggled' into the country after an amazing trek across the globe. He then attended 2 days of High School, walked over to the college, signed up after he was interviewed by their admissions staff--I'm sure they were stunned). He and his mother were relatively 'poor' and lived in a small house in the 'bad side of town.'
He and I worked at the same place (dealing with IEEE 696 systems--lol) so that is how I met him.
He was the true hacker. He liked cracking codes and had used his UNIX system in questionable ways. AT&T busted him while I knew him, and the deal they struck was that they wouldn't press charges if they could use his computer between 8PM and 8AM every day for some kind of node transfers they needed.
He and I had the same chemistry professor. He told me about how that professor thought he cheated on a lab assignment. The professor was sure of it since the class was given the wrong molarity of a solution and this kid had the only correct answer; whereas the whole class had the common error. This kid explained that he did the lab assignment at home, so the professor showed up at his house to inspect his tall story. When this kid told me this story, I also disbelieved it as for this particular experiment, one would need a full lab.
The kid showed me what he showed the professor: his garage. A full chemistry lab was in there! I'm sure he earned the money via his talents. (A few years later, he was contracted out to the CDC to help do some research on AIDS)
Again, I was over at his house one day to ask him for help on purchasing an X-Y monitor for a circuit I had. Another friend of his dropped by... a burned out middle-aged 'crazy' guy. This guy started arguing about how my circuit would not work with any X-Y monitor. He used copious quantities electronics jargon that made no sense to me (and it didn't make any sense---and my circuit did work ...as is).
I eventually asked this guy what he did for a living, and he explained how he was unemployed (go figure) ...but he used to work for Intel. He had some personal grudge against them: I'll bet they thought he was unstable. I asked exactly what he did for Intel. He said he designed the internal FIFO architecture for their 8080 CPU. I looked at the kid for verification, and the kid nodded that it was true.
I think I was the kid's retarded charity-case friend.
I've worked with other geniuses over the years (real ones who are 'famous' within the aerospace and R&D military world), but this kid was over the top. And no, he had no flaws or holes in his education or personality: from automotive repairs to sports, to mathematics to bio-science, to women, to you-name-it, this kid had it all... including a hot, very rich, and semi-celebrity girlfriend. Aaarrgggh!
I lost track of him before he was legally able to drink alcohol. Last year he sent me a Linkedin invite, but I have yet to respond. If you're out there reading this, I'll get around to it. But, I'm sure he's not... he would have written his own ARM compiler & IDE suite... and the odds of him reading this forum for 'advice' is just plain funny--no offense, as I read this forum: you know, the rambling retarded friend).
Tamir: 'envy' ...you have no idea.
--Cpt. Vince Foster 2nd Cannon Place Fort Marcy Park, VA
Vince, Thanks for this very inspiring story. If I compare this guy to the semi-mediocrity of my previous employer's workers (that would be an understatement. Somebody there was shocked to learn the I am very capable of making my own program from scratch. These are the people who actually have lives in there incapable hands...) I have to think - some of us are luckier than others! particularity the guy in question, with that hot babe hanging over his arm...