Hi I am new to b4a and not the most experienced programmer. Over the years though I have written a few programs in VB and VBA out of desperation in my work as an offshore surveyor.
Right now I am trying to make my win7 pc and Samsung galaxy communicate serial data via blue tooth. I am also testing with transfer between the Samsung SII and an HTC Sensation. Both android devices are running 4.0.3.
I am using the new version of the tutorial and have serial lib version 1.21
When I was using Connect I could connect to the Samsung from the HTC and have text transfer in both directions but could not connect to the HTC or PC from the Samsung with the following error.
Javaio.io.IOException connection refused.
I modified the code on the Samsung for Connect3 and had to add a new integer variable for port. I don’t really know what this number is. I tried 1 and 8.
Now I can make a connection from the Samsung to the PC and from the HTC to the Samsung but still cant connect the Samsung to the HTC . The app on the HTC is still using connect.
My real question here is how can I easily test the transfer of serial data between the PC and Samsung galaxy sii. The app on the sii says it is connected to pc and the text box comes up.
I have added an incoming com port in the bt driver on the pc and it comes up as com8. I tried with a terminal program to send and receive data but I don’t think the bt connection with the phone ‘knows’ about the com port.
If I can solve this problem I have the skills to write the rest of my application but this is a bit beyond me. Can anyone help. Thx
Right now I am trying to make my win7 pc and Samsung galaxy communicate serial data via blue tooth. I am also testing with transfer between the Samsung SII and an HTC Sensation. Both android devices are running 4.0.3.
I am using the new version of the tutorial and have serial lib version 1.21
When I was using Connect I could connect to the Samsung from the HTC and have text transfer in both directions but could not connect to the HTC or PC from the Samsung with the following error.
Javaio.io.IOException connection refused.
I modified the code on the Samsung for Connect3 and had to add a new integer variable for port. I don’t really know what this number is. I tried 1 and 8.
Now I can make a connection from the Samsung to the PC and from the HTC to the Samsung but still cant connect the Samsung to the HTC . The app on the HTC is still using connect.
My real question here is how can I easily test the transfer of serial data between the PC and Samsung galaxy sii. The app on the sii says it is connected to pc and the text box comes up.
I have added an incoming com port in the bt driver on the pc and it comes up as com8. I tried with a terminal program to send and receive data but I don’t think the bt connection with the phone ‘knows’ about the com port.
If I can solve this problem I have the skills to write the rest of my application but this is a bit beyond me. Can anyone help. Thx