J2ME - Bluetooth Serial Port Communication Between PC And Mobile

Feb 7, 2012

I am trying to create a client server application. I am going to make this simple so that a basic chat application. I have gone through these tutorials:

[Code]...

View 1 Replies


ADVERTISEMENT

Java - Communication Between Computer And Mobile Using Bluetooth

Feb 6, 2012

I am trying to create a client server application. Server side is vb.net program which runs in my computer and listens for commands. Client side is J2ME application which is in my mobile that will send commands.

I have a Bluetooth dongle for my computer and I am going to use Bluetooth as the medium. Wifi is not supported by my mobile.

I know basics of VB.Net(using VB2010). And I have Oracle's J2ME SDK installed in my computer and I have created small(simple applications) applications using it.

So, I have searched in Google. But most of the results are confusing. Today I found Wireless Communication Library .NET Edition. But documentation is very poor. So I don't know in between things, that is connection establishment. But I can code how to execute when each command is received at both sides.

View 1 Replies

Java - J2ME, InputStream Hangs Up After Receving 40K Of Data Over Bluetooth?

Nov 18, 2009

On sending data over bluetooth from PC to my mobile(N73), the Input Stream seems to hang up.InputStream is derived from StreamConnection.Does the InputStream have an internal buffer that needs to be emptied while reading large chunks of data?Data is being received in chunks of 10Kb to 15Kb range, and the reading stops after receiving the 3rd chunk.

View 1 Replies

.net - Serial Port Communication?

Dec 30, 2009

i'm creating a windows form to send/receive data to/from serial port.At first : i send the data as string to the serial port .Second: i tried to read the string again for test the successfull transmission , but i recieved empty string

[Code]...

View 4 Replies

Using Two Serial Port For Communication

Feb 9, 2009

I am using two serial port in my programm.What is want is, i need to receive data from one port and send on another port and vice a versa.This code receive data from one port but can't receive data from another port. I have tried to simulate this code by using hyper terminal and it works properly with both com port. Where as i have written code in Vb6 too and its is giving same problem as giving interupt while recieved data from one port but not giving interupt which receiving from another port. I know the another way to receive data is by using timer and read data by command as readline(), but what to do to make both the port gives interupt which receive data.Please help to find out the porblem, the code is in Vb.net and it is as under.[code]

View 1 Replies

Get Serial Port Communication Working Between Two PC's?

Dec 23, 2011

I am trying to get serial port communication working between two PC's.

My environment is: XP SP3, 9 pin serial ports on both ends, connected by a null modem cable, Visual Basic 2010 Express.

I have a sending routine and a receiving routine, both based on the on line documentation.

There are no Errors, Warnings or messages.

Problem: The receiving machine shows no sign of receiving a message sent by the sending PC. I have tried making the sending PC into the receiving PC - makes no difference.

My sending routine looks like this:

Sub SendSerialData(ByVal SendData As String)
'Send string to serial port
Using com1 As IO.Ports.SerialPort = My.Computer.Ports.OpenSerialPort("COM1", 9600, Parity.None, 8, StopBits.One)

[Code].....

View 1 Replies

Implement Serial COM Port Communication?

Apr 10, 2009

How do I implement Serial COM Port communication?

View 1 Replies

Serial Port Communication VS2008?

Nov 14, 2011

I am trying to interface an instrument that I send orders to.An order consists of 4 lines which I am to write to the serial port one at a time and receive an ACK before sending the next line.I have interfaced in the past using the MSCOMM, I'm new to the Serial Port class. But even then I've always received data, never sent anything.My question is when I'm looping through my 4 lines of my order, at what point do I receive ACK? Obviously, not in the same function, right? And how do I know I received an ACK and can go on to output the next line?

View 2 Replies

VS 2010 Serial Port Communication?

Dec 31, 2010

I'm trying to read data coming from a serial port. I simply want to ignore all other data besides the string "button_pushed". The device actually writes "button_pushed" to clean up the display when viewing the serial connection from console or similar. I can change this easily but I'd like to keep it if possible.

My code is as follows:

[Code]...

I'll get an IOException from readLine(). I tried using readExisting() which prevented the error but results in the block being executed twice (probably caused by the "") so the log reads "No data match" and "Data match" for one button push.I have a few questions. First, why does ReadLine cause an exception? I tried to negate that with is_closing but it still occurs. Second, will I run into problems using readExisting as it reads the entire buffer?

View 1 Replies

Forms :: Serial Port Communication With PLC Machine

Nov 1, 2010

I am working on an application on serial port communication with PLC machine. Now this communication is only done with one PLC at a time. So I m sending a query to PLC and until its responds back the application goes into wait mode. i.e. no other operations can be done, and an hourglass cursor should be displayed with all other components locked on the form. So how do I achieve this using vb.net?

View 3 Replies

Settings Required For Serial Port Communication

Aug 6, 2009

tell me the settings required for serial port communication

View 1 Replies

VS 2010 - Serial Port Communication Between Two Computers

Feb 22, 2012

I am using two computer to connect to each other via serial port, I have made a program in VB that allows me to read from the serial port then store whatever that character is to a variable. The only problem is I have to hit a button to read in from the serial port and pass the character to the variable. Is there any way to do this automatically?

View 6 Replies

Serial Port - Initial Communication Not Respond To Any Commands

Jul 9, 2007

I have a VB2005 application that sends and recieves data with another application (3rd party, not vb 2005) via COM port. When I run the apps on different computers they work great, they send all data to eachother and everything is fine. When I run them both on the same computer with either virtual null modem ports or with 2 hardware ports connected together via null modem cable they stop communicating.

[Code]....

View 5 Replies

Using MSComm32.ocx Control For The Purpose Of Serial Port Communication?

Jun 16, 2010

In my application I am using MSComm32.ocx control for the purpose of serial port communication.
when i am using it I am getting a following error while writing data to the port.

"AxMSComm1.Output {"Exception from HRESULT: 0x800A018A (CTL_E_GETNOTSUPPORTED)"} Object "

I am writing the output to the port like below. AxMSComm1.Output ="Hello"

I mention the properties of the ocx control in the form load like below. AxMSComm1.CommPort = 1

AxMSComm1.Settings ="9600,N,8,1"
AxMSComm1.InputLen = 0
AxMSComm1.PortOpen =True

I searched for this error in the net.But I am not found any information for this issue.

can anybody explain why I am getting that error and how to resolve it???

View 5 Replies

Communications :: Serial Port Communication Via Null Modem Cable?

Sep 4, 2009

I have a VB.net app running on one computer, displaying text into 2 texboxes or labels.I need to see the two values in two sperate textboxes or labels from the two labels on another computer via a null modem serial adapter.

1st computer.

Code:

serialport1.writeline(label1.txt)

straight forward right?

2nd computer to read the data

Code:
Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived
dim s as new string = serialport1.readline()
label1.text = s

This is what I was thinking;

Code:
serialport.writeline(label1.text & label2.text

This would send the two values over the serial port. How would I seperate the two values and display them in two different texboxes?cannot use them together)Am I on the right path at all? Or using the serialport.writeline method won't work at all....

View 4 Replies

VB 2005 - Serial Port Communication - Error: AxMSComm1.Output

Jun 16, 2010

I am using MSCOMM (mscomm32.ocx) for serial Comm. using VB.NET 2005:

Receiving Error: "AxMSComm1.Output {"Exception from HRESULT: 0x800A018A (CTL_E_GETNOTSUPPORTED)"} Object "

How to resolve this Issue, Below is the code snippet which i am using. [Code]

View 1 Replies

Control Bluetooth Adapter To Connect One Mobile Via USB?

Apr 7, 2011

I am working on a project and i need to connect a mobile to a PC automatically through a known port No from (USB ports)

to get an IMSI No. by AT command " AT + CIMI "

View 1 Replies

Send File From My Pc To Mobile Using Bluetooth @ Vb2005

May 14, 2012

how to send file from my pc to my mobile using bluetooth @ vb2005

by making a program and inclouding it this feature?

View 1 Replies

Reading Serial Port Read Data From Serial Port?

Aug 16, 2011

i am a absolute beginner and i want to use vb to receive data from micro controller through serial port using rs232 standards, i found this code to receive the data serially, can any one tell me where should i paste this code, so that the data received will be displayed in message box.Private Sub DataReceived(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) HandlesSerialPort1.DataReceived

[Code]...

View 9 Replies

Serial Port Example Code - Connect To A Modem Thru The Serial Port

Oct 26, 2011

The link below has code to connect to a modem thru the serial port but it is for an earlier version of VB. when I convert the code, it does not fully convert and has 4 errors that prevent building the project. can someone tell me what needs to be changed or added?

[URL]

Note: the error: not CLS-Compliant

View 8 Replies

Connect Pc Through Mobile Phone Using Bluetooth So That The Mobile Phone?

Aug 13, 2009

I want to connect my pc through mobile phone using bluetooth so that the mobile phone act as a remote of my pc.How can i do dat do you have any idea??.I have to make a project for final year using vb.net..

View 1 Replies

VS 2008 : Create Application For Mobile Phone Sony Ericsson To Remote Control Program Using Bluetooth Connection?

Mar 20, 2009

is it possible to create application for my mobile phone Sony Ericsson to remote control my program using Bluetooth connection which have simple functions?I have came across one program that is able to do that which is floAt's Mobile Agent. It can control from media player, powerpoint slides and even mouse cursor movement.

View 10 Replies

[2008] Getting Strings From A Bluetooth Com Port?

Jan 9, 2009

i'm currently trying to make a connection between my phone to my PC using vb .net and a program I will build for my phone.my phone should send information (some strings) through the com port, I wrote in google "VB .net bluetooth" and I sew there is a library for vb .net, but I don't think I need that library, can I communicate with a com port without this library? like making a connection with a normal com port?If I'm right, how do I do that? how can I recieve information from the bluetooth com port?

View 7 Replies

Read Data Through The Virtual COM Port Created By Bluetooth?

Oct 25, 2010

Trying to read data through the virtual COM port created by bluetooth.

The original console program (and the trimmed version below) was designed to read data from serial port COM1 and output the data to notepad. The program works; hook the bar code reader to COM1, activate bar code reader, swipe card, bar code reader beeps, data input collected from COM1 and sent out to notepad.

The problem: Bluetooth is wanted instead of serial cable.

We disconnected the serial cable, we connected a USB bluetooth receiving device onto the XP. XP installed the bluetooth device drivers 'Generic Bluetooth Radio' and 'MS Bluetooth Enumerator'. Bluetooth detected the bar code reader device and created COM5 outgoing SPP slave and created COM6 incoming.

But now; activate bar code reader, swipe card, bar code reader beeps, NO data input collected from COM5.

[Code]....

View 7 Replies

Unable To Close Serial Port After USB / Serial Converter Disconnected

Mar 28, 2006

I have a stand alone VB.Net 2005 application that uses a serial port that generally stays open while the application runs on a Windows XP system. In trying to bullet-proof the UI, I ran into a problem when the USB to Serial Converter normally used to provide the serial port is disconnected while the serial port is open. In trying to handle the resulting error when accessing the port, I find I cannot close the port.

When trying to do so, the error message says something like "unable to close the port. You may not have sufficient permissions." Reconnecting the USB/Serial Converter does not reactivate the port.

[Code]...

View 8 Replies

Read The Data From Barcode Weight Scales By Serial Port And TcpIp Port?

Nov 27, 2010

I'm mohammed from Oman ,I'm visual studio.net programmer How I can Read the Data From Barcode Weight scales By Serial port and TcpIp port

View 7 Replies

Get FullName From Available Serial Port (Com Port) From Device Manager In Windows Form With .net?

Jul 25, 2011

I have a Windows form.in windows form have a combo box that give me a list of available port serial with it code (Dim ports As String() =SerialPort.GetPortNames())for example( Com1,Com8,Com15,...).but I want to give me fullname of serial port in device manager for example in dvice manager is these (Comunication Port(COM1) - Printer Port(LPT1) And USB Serial Port(COM8)).how to Get it?

View 2 Replies

The Given Port Name Does Not Start With COM/com Or Does Not Resolve To A Valid Serial Port?

Aug 2, 2011

If I uninstall the COM1 and reboot, it works. If I shut down (power off) and restart, I get the message below. If I uninstall then click on Scan for Hardware Changes,The given port name does not start with COM/com or does not resolve to a valid serial port. Parameter name:portName

View 8 Replies

Serial Communication Using .net?

Aug 3, 2011

I am using serial port class from VB.net to communicate my hardware. Some times I may lost or get incorrect data. I am just wondering how to implement hardware flow control in Vb.net

View 1 Replies

Serial Communication With .net?

Feb 7, 2011

Imports System.Threading
Imports System.IO
Imports System.Text
Imports System.IO.Ports

[code]....

in my code,im inputting a byte coming from Arduino board microncontroller..im sending character 'N' to com5, and the code above is fetching that data from arduino board..my problem is the output string on the textbox is <78> which is the ASCII equivalent of 'N' how will i convert that to what is really being sent by the board which is 'N'..

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved