Just recently got the bluetooth working on my desktop now, just updating that the bluetooth radio mentioned in the previous post is now working with both programs.
0 Comments
There has finally been a successful connection between c# and android using bluetooth. Previously I was testing using a Bluetooth USB Adapter (brand "plugable"). I think this was sometimes appearing on the phone as a device, but I was never able to successfully connect to it, and it did not always appear so I'm not actually sure the device that was appearing was from my computer. The USB adapter always lights up when I start the program, but it was making connections. I then started testing the programs using my laptop, which has built in bluetooth. I was able to make a successful connection this way, after first pairing the phone and the laptop in general bluetooth settings on each device. Now that a connection has been made, my next step will be to send some data via the bluetooth connection, hopefully a phone number, and then have the phone make a call using that number. If that happens smoothly I will then try and set up the phone to transmit sound to the computer, and the computer to transmit its sound to the phone so the user can listen and talk to the phone call using the laptop/tablet. I'm still unsure how to do this part however.
I recently started using the 32feet.net library in C# to begin trying to make it bluetooth discover-able. The android app currently activates the phone's bluetooth if it is off, and can see other phones when they are bluetooth discover-able, however it can't see the C# program yet. The C# program is set up to be discover-able and is activating the bluetooth device plugged into my computer's USB port. I'm currently trying to connect the android app and the C# program using a UUID to match them together, but it hasn't worked yet. Hopefully a connection will be established soon.
Have implemented working sockets into the program. The program can send telephone numbers and receives an answer or a decline to the call. This only works when the senior_phonebook is on the same device as the server side, which is currently a dumby program. Going to be working to make the c# program a discoverable bluetooth device so other devices can see it as a bluetooth option. Will be testing this possibly with a separate computer, or if it's simpler just using an andoid phone.Everyone presented their projects to our class (presentations were 2/15/2018) to get some feedback about our ideas and designs. The design/layout of my project is very important because it determines whether the user will be able to effectively use the application or not, so getting some good feedback was very helpful. I have added the suggestions from the poster presentations that I liked to my project, and I believe a Bluetooth piece for my computer has been ordered. The form is looking good and hopefully I will be testing the form with Bluetooth soon.
The form is for the most part coming together. While not very pretty yet, it is feels user friendly. The next step for the form will be to allow an admin user to have control over contact information and such. As for the phone side, I'm currently just playing around with Android Studio and learning how it works. An actual connection between the forms and the phone won't be accomplished until later. A device may need to be purchased to allow my computer to give out a Bluetooth signal. This won't be a problem for a tablet sense tablets already have built in Bluetooth, only a desktop issue.
This is the first post...I've decided C# will be the best option for my program because it needs a very user friendly GUI and I have the most experience with C#. I will be trying to connect with phone/device via Bluetooth. I am currently considering using 32feet.net which seems to be a good source for getting my computer to detect and use a Bluetooth signal from a phone. I am still doing some research to see how exactly this can be used.
|
AuthorHello, my name is William Gallagher. I'm working to better my programming skills along with my Japanese proficiency. Archives
April 2018
Categories |