caramoan tour package

caramoan tour package

caramoan tour package

Author Topic: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1  (Read 9129 times)

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2190
  • Pogi/Ganda Points: 307
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« on: November 14, 2008, 07:41:03 PM »
I had posted this on my BTSerial1 thread but I will also post it here on the projects forum so that many can see this release.
Many are looking for SMS solutions so I hope this can help most of them.

Quote
As promised, here is the release of a GSM SMS controller project using this BTSerial1 module.



Download the complete project here GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
The Cebuano Geek

Philippine Electronics Forum

GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« on: November 14, 2008, 07:41:03 PM »

Online marcelino

  • Global Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6265
  • Pogi/Ganda Points: 272
  • ...keep moving forward! - Robinson's
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #1 on: November 17, 2008, 03:16:39 PM »
advantageous masyado ang ginawa mo sir. ganda nito for home automation using embedded controllers... gawa ako nito pagkatapos ng project ko.
natry ko na din yung simulation mo na video, gamit ako bluetooth dongle sa USB. nakakahyperterminal pala yun.
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Philippine Electronics Forum

Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #1 on: November 17, 2008, 03:16:39 PM »

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2190
  • Pogi/Ganda Points: 307
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #2 on: November 17, 2008, 03:24:51 PM »
Yes. BTSerial1 works is similarly like a USB bluetooth dongle using SPP/DUN profile but using serial port.
Thus easier to interface with an MCU than the USB dongles.
The Cebuano Geek

Philippine Electronics Forum

Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #2 on: November 17, 2008, 03:24:51 PM »

Online marcelino

  • Global Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6265
  • Pogi/Ganda Points: 272
  • ...keep moving forward! - Robinson's
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #3 on: November 17, 2008, 03:44:16 PM »
Yes. BTSerial1 works is similarly like a USB bluetooth dongle using SPP/DUN profile but using serial port.
Thus easier to interface with an MCU than the USB dongles.

by any chance sir, you know a downloadable software where i could compose a text on my PC?... as well receive also?
the setup is still the same as with what i did above.
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Philippine Electronics Forum

Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #3 on: November 17, 2008, 03:44:16 PM »

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2190
  • Pogi/Ganda Points: 307
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #4 on: November 17, 2008, 03:49:34 PM »
I don't know of such software.

Normally no need for a program.  This is just AT commands.

Here is a good link for sending and receiving SMS using hyperterminal http://www.developershome.com/sms/howToSendSMSFromPC.asp
The Cebuano Geek

Philippine Electronics Forum

Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #4 on: November 17, 2008, 03:49:34 PM »

Online marcelino

  • Global Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6265
  • Pogi/Ganda Points: 272
  • ...keep moving forward! - Robinson's
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #5 on: November 17, 2008, 03:55:50 PM »
I don't know of such software.

Normally no need for a program.  This is just AT commands.

Here is a good link for sending and receiving SMS using hyperterminal http://www.developershome.com/sms/howToSendSMSFromPC.asp

actually this is out of topic. I already understood the concept of sending sms using hyperterminal. I have not yet memorized it though. what i am referring is a software that i can use to send and receive sms when i am infront of my PC. Anyway, this is not that important... i just had a thought.
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Online marcelino

  • Global Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6265
  • Pogi/Ganda Points: 272
  • ...keep moving forward! - Robinson's
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #6 on: November 17, 2008, 03:57:49 PM »
meron pala sir, nandun din sa link na binigay mo: http://www.developershome.com/sms/#quickGuideNonDevelopers
teka test ko lang po.

again another OT. heheheh ;D
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline alyas

  • Hydroelectric
  • ***
  • Posts: 3092
  • Pogi/Ganda Points: 210
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #7 on: March 07, 2009, 10:03:50 AM »
Master Zerowing,

Regarding rebuilding and recompiling your code from the other mcu+bt thread where I originally posted.

Rebuilding and recompiling directly the mplab project from your source files, I get the error below:

Code: [Select]
Build C:\Documents and Settings\siako\Desktop\zerowing_sms\pic_bt_sms for device 16F876
Using driver C:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe

Executing: "C:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe" --pass1 "C:\Documents and Settings\siako\Desktop\zerowing_sms\app.c" -q --chip=16F876 -P --runtime=default --opt=default -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Executing: "C:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe" --pass1 "C:\Documents and Settings\siako\Desktop\zerowing_sms\uart.c" -q --chip=16F876 -P --runtime=default --opt=default -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Executing: "C:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe" -opic_bt_sms.cof -mpic_bt_sms.map --summary=default --output=default app.p1 uart.p1 "C:\Documents and Settings\siako\Desktop\zerowing_sms\btserial1.obj" --chip=16F876 -P --runtime=default --opt=default -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
HI-TECH C PRO for the PIC10/12/16 MCU family  V9.60PL5
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Thu, 09 Apr 2009
Error   [712] C:\Documents and Settings\siako\Desktop\zerowing_sms\app.c; 570. can't generate code for this expression

Then I tried to start a new project using only your source files but then I get the below errors

Code: [Select]
Build C:\Documents and Settings\johnwho\Desktop\btsms\btsms for device 16F876A
Using driver C:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe

Make: The target "C:\Documents and Settings\johnwho\Desktop\btsms\app.p1" is up to date.
Make: The target "C:\Documents and Settings\johnwho\Desktop\btsms\uart.p1" is up to date.
Executing: "C:\Program Files\HI-TECH Software\PICC\PRO\9.60\bin\picc.exe" -obtsms.cof -mbtsms.map --summary=default --output=default app.p1 uart.p1 --chip=16F876A -P --runtime=default --opt=default -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
HI-TECH C PRO for the PIC10/12/16 MCU family  V9.60PL5
Copyright (C) 1984-2009 HI-TECH SOFTWARE
licensed for evaluation purposes only
this licence will expire on Thu, 09 Apr 2009
Error   [500] ; 0. undefined symbols:
_bts1_rx_buffer(btsms.obj) _bts1_is_error_received(btsms.obj) _bts1_send_const(btsms.obj) _bts1_is_ok_received(btsms.obj) _bts1_putch(btsms.obj) _bts1_clear_ok_error(btsms.obj) _bts1_wait_tx(btsms.obj) _bts1_task(btsms.obj) _bts1_is_connected(btsms.obj) _bts1_init(btsms.obj) _bts1_connect(btsms.obj)

********** Build failed! **********

I even tried to create a new project in hitide and got exactly the same error as above.

What I realized now is that the bts1_* functions are declared in btserial1.h but they are not defined in any of the source files.  The btserial1.c source file is missing.  Can you please share your btserial1.c source code.

Is my understanding and conclusion correct?  I wish to port your code to use an 877A instead but I have to make it work on a 876a first.

Offline alyas

  • Hydroelectric
  • ***
  • Posts: 3092
  • Pogi/Ganda Points: 210
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #8 on: March 07, 2009, 10:31:29 AM »
Oh please disregard my request for the btserial1.c source as you have already provided the btserial1.obj file.  Including the btserial1.obj file for a fresh new project still gets me the original error encountered "Error   [712] C:\Documents and Settings\siako\Desktop\zerowing_sms\app.c; 570. can't generate code for this expression"

Also checking for error 712,

Code: [Select]
(712) canít generate code for this expression (Code Generator)
This error indicates that a C expression is too difficult for the code generator to actually compile. For
successful code generation, the code generator must know how to compile an expression and there
must be enough resources (e.g. registers or temporary memory locations) available. Simplifying
the expression, e.g. using a temporary variable to hold an intermediate result, may get around this
message. Contact HI-TECH Support with details of this message.
This error may also be issued if the code being compiled is in some way unusual. For example
code which writes to a const-qualified object is illegal and will result in warning messages, but the
code generator may unsuccessfully try to produce code to perform the write.

Offline paranz

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4574
  • Pogi/Ganda Points: 178
  • Gender: Male
  • 1/4W resistor specialist
    • RapidSignal Electronics
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #9 on: March 07, 2009, 11:23:12 AM »
I compiled bt_sms (without any modification sa program) using hitech C standard V9.60 compiler. Ok lang naman. i tried using PIC16F877a and PIC16F876a. :)

Baka compiler problem lang talaga
PIC16 Programming Tutorial using MPLAB and Hi-Tech C
www.rapidsignalph.com/tutorials/pic16-tutorials

Arduino & gizDuino Tutorials
www.rapidsignalph.com/tutorials/arduino-tutorials

Offline alyas

  • Hydroelectric
  • ***
  • Posts: 3092
  • Pogi/Ganda Points: 210
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #10 on: March 07, 2009, 02:42:10 PM »
I compiled bt_sms (without any modification sa program) using hitech C standard V9.60 compiler. Ok lang naman. i tried using PIC16F877a and PIC16F876a. :)

Baka compiler problem lang talaga
Thanks, I'll try to use 9.60 standard,  9.60 pro na kasi yung included sa mplab 8.20.

Offline alyas

  • Hydroelectric
  • ***
  • Posts: 3092
  • Pogi/Ganda Points: 210
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #11 on: March 07, 2009, 03:01:18 PM »
Ok it really is a compiler issue  linking the btserial1.obj file.  Just tried it with 9.60 standard pl3 and compiled wthout any erros. 

Many thanks!


Offline the_next_big_name

  • Size D Battery
  • ******
  • Posts: 250
  • Pogi/Ganda Points: 2
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #12 on: April 22, 2009, 08:52:08 PM »
actually this is out of topic. I already understood the concept of sending sms using hyperterminal. I have not yet memorized it though. what i am referring is a software that i can use to send and receive sms when i am infront of my PC. Anyway, this is not that important... i just had a thought.
try mo yung sa smart bro software using their hsdpa modem, palitan ng ibang sim yung modem kase kung smart bro sim na prepaid, hindi allowed na magsend ng sms

Offline the_next_big_name

  • Size D Battery
  • ******
  • Posts: 250
  • Pogi/Ganda Points: 2
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #13 on: May 20, 2009, 01:08:11 PM »
saan makakabili ng btserial1?

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2190
  • Pogi/Ganda Points: 307
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #14 on: May 20, 2009, 01:40:07 PM »
saan makakabili ng btserial1?

Sa akin. Meron pa akong konting ready stocks.
The Cebuano Geek

Offline the_next_big_name

  • Size D Battery
  • ******
  • Posts: 250
  • Pogi/Ganda Points: 2
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #15 on: May 20, 2009, 02:58:26 PM »
how much?

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2190
  • Pogi/Ganda Points: 307
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
The Cebuano Geek

Offline the_next_big_name

  • Size D Battery
  • ******
  • Posts: 250
  • Pogi/Ganda Points: 2
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #17 on: May 20, 2009, 03:09:24 PM »
walang discount?

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2190
  • Pogi/Ganda Points: 307
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #18 on: May 20, 2009, 03:52:05 PM »
walang discount?

This is already discounted if you buy 2 pieces and shipping is free.
If you purchase more than 6, I could give more.
The Cebuano Geek

Offline the_next_big_name

  • Size D Battery
  • ******
  • Posts: 250
  • Pogi/Ganda Points: 2
Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #19 on: May 22, 2009, 02:38:59 PM »
discount naman ng 200...para bili ako isa...sure buyer

Philippine Electronics Forum

Re: GSM SMS Controller Using Bluetooth Cellular Phone and BTSerial1
« Reply #19 on: May 22, 2009, 02:38:59 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com