Page 1 of 2

Sending simple text with bluetouth to the phone

Posted: Fri Apr 29, 2022 10:59 am
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

Re: Sendint simple text with bluetouth

Posted: Fri Apr 29, 2022 11:13 am
by HeX0R
You can try this

Re: Sendint simple text with bluetouth

Posted: Fri Apr 29, 2022 11:48 am
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 :|

Re: Sendint simple text with bluetouth

Posted: Fri Apr 29, 2022 12:09 pm
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.

Re: Sendint simple text with bluetouth

Posted: Fri Apr 29, 2022 12:32 pm
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:

Re: Sendint simple text with bluetouth

Posted: Fri Apr 29, 2022 12:38 pm
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?

Re: Sendint simple text with bluetouth

Posted: Fri Apr 29, 2022 12:55 pm
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

Re: Sendint simple text with bluetouth

Posted: Fri Apr 29, 2022 1:31 pm
by darius676

Re: Sendint simple text with bluetouth

Posted: Fri Apr 29, 2022 3:25 pm
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.

Re: Sendint simple text with bluetouth

Posted: Fri Apr 29, 2022 3:33 pm
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

Re: Sendint simple text with bluetouth

Posted: Fri Apr 29, 2022 4:15 pm
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

Re: Sendint simple text with bluetouth

Posted: Fri Apr 29, 2022 4:35 pm
by Kwai chang caine
Excuse me , but i have not really understand how you send a mail by bluetouth with your code :oops:

Image

Re: Sendint simple text with bluetouth

Posted: Fri Apr 29, 2022 4:54 pm
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:

Re: Sendint simple text with bluetouth

Posted: Fri Apr 29, 2022 7:19 pm
by HeX0R
Yes, that's what I was trying to say.
Of course I'm not sending mails via Bloototh.

Re: Sendint simple text with bluetouth

Posted: Sat Apr 30, 2022 11:52 am
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: