The Godfather talking
Share your stuff or I will make you regret it.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 08, 2016, 02:59:49 02:59


Login with username, password and session length


Pages: [1]
Print
Author Topic: Bluetooth communication between PIC and Cellphone(Android OS)  (Read 1495 times)
0 Members and 1 Guest are viewing this topic.
diamadiss
Junior Member
**
 Muted
Offline Offline

Posts: 69

Thank You
-Given: 202
-Receive: 4



« on: February 16, 2014, 11:52:05 23:52 »

Hello,
I would like to deal with bluetooth communication between PIC and Cellphone(Android OS). Because I don't know about bluetooth communication; I would like to start with making an application which will be a portable device and when I push a button  I can see in my cellphone (Android OS) a warning. For this application I think that I must have a bluetooth mudule and a microcontoller which will drive the bluetooth module. I would like to find someone to teach-guide me; with pay of course. If there is someone who could do this please send me a personal message to discuss with more details.
 
I want something like this but with bluetooth communication and not with USB.
http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=DM240415
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 3816

Thank You
-Given: 567
-Receive: 2049


There is no evidence that I muted SoNsIvRi


« Reply #1 on: February 17, 2014, 12:20:51 00:20 »

Google is your friend Learn to abuse him... failing that use the search function here...
http://www.sonsivri.to/forum/index.php?topic=54858.msg157719#msg157719
Logged

Note: If you have no posts other than, I want or reporting a dead link Then you can't complain If I remove your post So Stop Leeching
lmmasc
Inactive

Offline Offline

Posts: 0

Thank You
-Given: 3
-Receive: 0


« Reply #2 on: February 17, 2014, 03:57:35 03:57 »

well , i helped a friend with a project with BT and an andorid phone using this module from dx http://dx.com/p/hc-06-wireless-bluetooth-serial-pass-through-module-for-arduino-works-with-official-arduino-board-238364#.UwF4LPmSwkA , it have a serial interface so its ez to use a pic to comunicate , also used a terminal soft on android for testing, one like this https://play.google.com/store/apps/details?id=com.sena.bterm&hl=en
Logged
Gallymimu
Hero Member
*****
Offline Offline

Posts: 579

Thank You
-Given: 101
-Receive: 151


« Reply #3 on: February 18, 2014, 01:30:58 01:30 »

Hello,
I would like to deal with bluetooth communication between PIC and Cellphone(Android OS). Because I don't know about bluetooth communication; I would like to start with making an application which will be a portable device and when I push a button  I can see in my cellphone (Android OS) a warning. For this application I think that I must have a bluetooth mudule and a microcontoller which will drive the bluetooth module. I would like to find someone to teach-guide me; with pay of course. If there is someone who could do this please send me a personal message to discuss with more details.
 
I want something like this but with bluetooth communication and not with USB.
http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=DM240415

If you are open to it Bluetooth 4.0 SMART or LE is VERY easy to use.  Most radios have a processor built in.  Radio modules from bluegiga, roving networks (now microchip) and blueradios are VERY easy to use.  I have had great luck with bluegiga, a high school intern brought one up in a couple weekends.

I'd be happy to discuss further if you want to send me a note.
Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 277

Thank You
-Given: 197
-Receive: 95


Tuco ... dead or Alive


« Reply #4 on: February 18, 2014, 03:39:59 03:39 »

yeah gallimimu, ble112a is a very nice device, except that programming it in C is kinda tricky (kinda weird mini os abstraction that is still obscure to me)  but with bgscript is ok for low rate data exchange [i did some 500Hz sampling and it worked nice with C, with bgscript it was buggy because of the nature of bgscript decompiling]
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
Gallymimu
Hero Member
*****
Offline Offline

Posts: 579

Thank You
-Given: 101
-Receive: 151


« Reply #5 on: February 19, 2014, 10:55:52 22:55 »

yeah gallimimu, ble112a is a very nice device, except that programming it in C is kinda tricky (kinda weird mini os abstraction that is still obscure to me)  but with bgscript is ok for low rate data exchange [i did some 500Hz sampling and it worked nice with C, with bgscript it was buggy because of the nature of bgscript decompiling]


Yes, the callback structure in C isn't obvious if you are not used to it.  Plus the state machine you need to form connections takes a little bit of time to get right.  BUT, it's a lot easier than working with a raw stack!
Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 277

Thank You
-Given: 197
-Receive: 95


Tuco ... dead or Alive


« Reply #6 on: February 20, 2014, 09:57:06 09:57 »

yes, i even get up to 500Khz sampling+transmit (do u remember our last discussion...)  but i abandonned the standalone solution, i just reprogrammed it to acchieve the transmission of the reconditionned 16, 10 bit  samples from a chibi 12F1840 ^^

Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
j0k3r
Junior Member
**
Offline Offline

Posts: 38

Thank You
-Given: 32
-Receive: 17


« Reply #7 on: February 21, 2014, 11:09:09 23:09 »

Check the RN42 modules, easy to work with them.
Logged
diamadiss
Junior Member
**
 Muted
Offline Offline

Posts: 69

Thank You
-Given: 202
-Receive: 4



« Reply #8 on: March 04, 2014, 10:04:44 22:04 »

Thanks all of you for your replies but I would like to find a person to teach some things from begin and I would like to create my own functions to make the communication and not to use existing codes; for instance Arduino. If you know anyone that will be interesting to do this, please send me a pm to give you my email. Thanks!
Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 277

Thank You
-Given: 197
-Receive: 95


Tuco ... dead or Alive


« Reply #9 on: March 05, 2014, 12:33:39 00:33 »

what about using the search button to gather a book about android (and android ADK) ? ( even arduino related books are quite interesting on explaining java stuff for your android app)

for the bluetooth, usually is a clear AT interface or uart link to put your data directly.  
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
Gallymimu
Hero Member
*****
Offline Offline

Posts: 579

Thank You
-Given: 101
-Receive: 151


« Reply #10 on: March 09, 2014, 05:47:04 05:47 »

Thanks all of you for your replies but I would like to find a person to teach some things from begin and I would like to create my own functions to make the communication and not to use existing codes; for instance Arduino. If you know anyone that will be interesting to do this, please send me a pm to give you my email. Thanks!

What exactly do you want to learn?  Do you want to write your own stack?   Do you want to leverage a stack?  Do you want to use an integrated module with an API?  Do you want to design a discrete chip solution?  do you want to build something with a FCC certified module?

Let me offer a suggestion:

If you are building as a hobby, use a module with an API
if you are building a few hundred per year, use a module with an API
if you are building a few thousand per year, use a module with an API
if you are building a few 10s of thousands per year, consider a packaged stack and a discrete chip solution and pay for FCC compliance (easily $20k for worldwide compliance)
if you are building a few 100k a year or more, then get your chip manf to design it for you Smiley
Logged
Gallymimu
Hero Member
*****
Offline Offline

Posts: 579

Thank You
-Given: 101
-Receive: 151


« Reply #11 on: March 16, 2014, 03:03:56 15:03 »

I think it's better to discuss advice here instead of over private messages so that everyone can benefit from my bad suggestions.

Based upon your PMs you are insterested in learning a discrete solution with antenna design and everything which is great!  I've not done a discrete design myself, though it shouldn't be hard and we have a project as such coming up this quarter.

I'd strongly suggest starting with a BLE module such as the BLE112 from bluegiga.  OR getting a BLE demo board from TI.

You don't want to take on too many aspects of the design at once.  For instance if you design a discrete solution, your own antenna and start messing with the stack, and suppose you can't see the bluetooth device from your phone...  Is it the stack you messed up?, the hardware design? or the RF side?

After you get competent with a module and how the GATT attributes work for sending data back and forth, and the state machines for a scan, pair, connect process work, then maybe you can move to a custom stack.

After that you can start playing with the hardware and antenna design since you will have a stable knowledge of the software side.

TI has a LOT of app notes (as do other manufacturers) related to various PCB antenna designs.  They are pretty much off the shelf, require some basic rule following, and use of controlled dielectrics on you PCB.  The first cut of your antenna will probably work but may require some "trimming" to get perfect.  Trimming is usually done with some inductor and capacitor adjustment or physically shortening the antenna (after intentionally designing it a little too long). 

Keep in mind for an FCC 15(c) device it can cost many thousands of dollars for approval in the US, and about 3 to 4 times as much for basic worldwide compliance in the major markets. (at least that's been my experience with quotes for 2.4GHz intentional radiators)
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC