Sending simple text with bluetouth to the phone

Just starting out? Need help? Post your questions and find answers here.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5527
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Sending simple text with bluetouth to the phone

Post by Kwai chang caine »

Hello at all :D

I know a little bit the answer :oops:
But we never know, like with PB there are often somes miracles :shock:

Somebody know a way for sending simple text in bluetouth ?

Have a good day
Last edited by Kwai chang caine on Sat Apr 30, 2022 5:30 pm, edited 1 time in total.
ImageThe happiness is a road...
Not a destination
User avatar
HeX0R
Addict
Addict
Posts: 1227
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Sendint simple text with bluetouth

Post by HeX0R »

You can try this
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5527
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Sendint simple text with bluetouth

Post by Kwai chang caine »

Hello HEXOR :D
Really happy to can talk directly to you :wink:
I'm not sure i have already talk to you,but you are one of my heroes since numerous years Image

Thanks a lot for your quick answer 8)
But since you give this link of your splendid code, i search to obtain the "bthprops.lib" without succes :oops:

I go to your link
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
And not have found link for download "Windows Vista SDK" :|

And i have look in my machine, and i not have this directory
C:\Program Files\Microsoft SDKs\Windows\<version number>\Samples\NetDs\winsock\Bluetooth.

I have download and install "DXSDK_Jun10.exe" and that not works better :|
ImageThe happiness is a road...
Not a destination
User avatar
HeX0R
Addict
Addict
Posts: 1227
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Sendint simple text with bluetouth

Post by HeX0R »

Hi Kcc :D
I have download and install "DXSDK_Jun10.exe" and that not works better
Did you just download it, or did you move the bthprops.lib also to the system32 (or SysWOW64) folder?

I don't know where you downloaded it from, but If I look at that here e.g.:
https://www.heise.de/download/product/w ... dows-61897

The bthprops.lib is in:
10\Lib\10.0.10240.0\um\x86
and
10\Lib\10.0.10240.0\um\x64

[Edit]
Not sure, but isn't that lib already included in Windows 10?
I seem to have it here on my office PC, and I can't remember having copied it.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5527
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Sendint simple text with bluetouth

Post by Kwai chang caine »

Yeeees !!!!
That works now !!! 8)

I see my "new" SAMSUNG Note 2 :mrgreen:

Excuse me for abuse to your time, how you can send a simple text like "Hello" for example ? :oops:
Is it possible ? Or if not :| .... a simple "c:\file.txt" with "Hello" inside it ? :oops:
ImageThe happiness is a road...
Not a destination
User avatar
HeX0R
Addict
Addict
Posts: 1227
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Sendint simple text with bluetouth

Post by HeX0R »

You need to add a virtual serial port via AddSerialPortToDevice() and then you can use the SerialPort commands of PB to send/receive data to the device.
But you'd need some app on the other side which is able to handle the incoming, of course.
What exactly are you trying to do?
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5527
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Sendint simple text with bluetouth

Post by Kwai chang caine »

In fact i want do the most simple thing of the world, finally i believe :oops:

When i have a link, a text in my computer i cannot send a SMS with it, so i must send the text to my phone
And Microsoft have not planning a simple sending text function :?
It's possible to send a file, so a Txt file for example but not directly a text

It's a pity because for sending a simple link or text in a SMS, i must :

1/ Create a file.txt on my PC
2/ Open it and paste the link or txt, close it
3/ Right click on the file and choose "send to"
4/ Choose in context menu "Bluetouth device"
5/ Choose the cible device (in my case my samsung phone)
6/ Accept on my phone the file text
7/ Open the file text on android
8/ Copy the text, link sending
9/ Paste it in the SMS message

It's incredible, i'm the only one to need this simple and very usefull Copy/Paste between a PC and phone :shock:
For the moment i use my server for sending txt on it and receive the text with android Firefox, but i wondering if it's not possible with bluetouth
ImageThe happiness is a road...
Not a destination
User avatar
darius676
Enthusiast
Enthusiast
Posts: 303
Joined: Thu Jan 31, 2019 12:59 am
Contact:

Re: Sendint simple text with bluetouth

Post by darius676 »

User avatar
HeX0R
Addict
Addict
Posts: 1227
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Sendint simple text with bluetouth

Post by HeX0R »

Yes, I also would recommend to use some existing app, that was not what my include was meant to be.

I personally simply send mails from the phone to the PC, or vice versa, when I have to share something :mrgreen:
You could also use a cloud provider, but they need a hell of a time to synchronize all clients sometimes.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5527
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Sendint simple text with bluetouth

Post by Kwai chang caine »

Thanks for you link darius676 8)
Microsoft wrote:Série Samsung Galaxy Note10
Série Samsung Galaxy Note20
Unfortunalely i believe i'm a "little bit" too old for use this new feature :mrgreen:
KccProgrammingWafer wrote:I see my "new" SAMSUNG Note 2 :mrgreen:
Image
Hexor wrote:I personally simply send mails from the phone to the PC, or vice versa, when I have to share something
If you can share a mail...you can perhaps share a txtfile no ? :idea: :D
ImageThe happiness is a road...
Not a destination
User avatar
HeX0R
Addict
Addict
Posts: 1227
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Sendint simple text with bluetouth

Post by HeX0R »

Kwai chang caine wrote: Fri Apr 29, 2022 3:33 pm If you can share a mail...you can perhaps share a txtfile no ? :idea: :D
Sure, you can attach to a mail anything you like
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5527
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Sendint simple text with bluetouth

Post by Kwai chang caine »

Excuse me , but i have not really understand how you send a mail by bluetouth with your code :oops:

Image
ImageThe happiness is a road...
Not a destination
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

Re: Sendint simple text with bluetouth

Post by Marc56us »

You have an android phone, you have a gmail address ? so you have google drive installed on phone.
Install google drive on windows and you will have a directory that match google drive.
If you do not want to install google drive windows, use it on browser.
Drop files from windows and open it in "Mes Fichiers" app on android.
:wink:
User avatar
HeX0R
Addict
Addict
Posts: 1227
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Sendint simple text with bluetouth

Post by HeX0R »

Yes, that's what I was trying to say.
Of course I'm not sending mails via Bloototh.
User avatar
Caronte3D
Addict
Addict
Posts: 1379
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Sendint simple text with bluetouth

Post by Caronte3D »

I use Chrome every time for that:

Open the link on the Chrome PC and the you can see the tab from Chrome Android and viceversa (must be the same account, of course) :wink:
Post Reply