[Message Deleted]
manju23reddy
Posts
-
[Message Deleted] -
how to close acceptandopen for streamconncetionnotifierhi i have a client server where my client is mobile and server is PC every thing works fine for me like sending and receiving data but the problem is when the there is no clients then the server will will be blocked by acceptandopen, so how can i make it close for some time if there is no clents connections.
-
how to send live recording audiohi i have a below code which was supposed to record every 100ms and send the data to pc via bluetooth but every time the loop starts i asks for permission to access mic and also permission to store the recorded data but i need to supress this message is it possible if so please help me this is my code public void recordData() { dips = Display.getDisplay(this); m_CmdStop = new Command("stop", Command.SCREEN, 1); form = new Form("record"); form.addCommand(m_CmdStop); dips.setCurrent(form); try { DataOutputStream dos = m_Con.openDataOutputStream(); Player p = Manager.createPlayer("capture://audio"); p.realize(); p.prefetch(); RecordControl rc = (RecordControl)p.getControl("RecordControl"); p.start(); while(m_EndNow != true) { ByteArrayOutputStream output = new ByteArrayOutputStream(); rc.setRecordStream(output); rc.startRecord(); //p.start(); Thread.sleep(100); rc.commit(); //p.stop(); rc.stopRecord(); dos.writeUTF(output.toString()); } p.stop(); dos.close(); } catch(Exception e) { Log.log(e.getMessage()); } }
-
serial communication using bluetooth in j2mei want code in J2me or java
-
cannot include" \inc\wxp\warning.h" and environment variables $(BASEDIR) not found URGENT please help!!!!Thanksfor your valuable suggestion but i value time and i have lot of work to be done rather tan chating i amhere because i have problem if you don know please stop advising people and think how to solve problem if u can
-
cannot include" \inc\wxp\warning.h" and environment variables $(BASEDIR) not found URGENT please help!!!!Warning.h file is there in the specified directory i am not getting the solution for this i l send you the demo project please give me your mail ID
-
cannot include" \inc\wxp\warning.h" and environment variables $(BASEDIR) not found URGENT please help!!!!sorry for that title well actually everything is properly installed but i think there is some problem with build environment because i had checked in codeguru where for same problem MICk has written solution but it was in 2003 january it was posted . my doubt is i feel there is some problem with version but i am sure it is problem with build enviroment i am not understanding where to include the path and describe the environment variables.
-
cannot include" \inc\wxp\warning.h" and environment variables $(BASEDIR) not found URGENT please help!!!!hi i am trying to compile a driver program which is giving build error as follows i really don have a clue why this problem The error i am getting is ------ Skipped Rebuild All: Project: CommTest, Configuration: Debug Win32 ------ Project configuration skipped because it is not selected in this solution configuration ------ Rebuild All started: Project: CommDriver, Configuration: Free Win32 ------ Deleting intermediate files and output files for project 'CommDriver', configuration 'Free|Win32'. Compiling... CommDriver.c CommDriver.c(0) : fatal error C1083: Cannot open include file: '\inc\wxp\warning.h': No such file or directory Project : warning PRJ0018 : The following environment variables were not found: $(CPU) $(BASEDIR) Build log was saved at "file://c:\DriveGUIComm_demo\DriveGUIComm_demo\Demo_project\Driver\Free\BuildLog.htm" CommDriver - 1 error(s), 0 warning(s) ---------------------- Done ---------------------- Rebuild All: 0 succeeded, 1 failed, 1 skipped and i am using Windows DDK 3790.1830 and also tried to look at the post which Mr beans and Mick have given before in codeguru but did not help me . Please if any body can give me a hint mail at shwethavg@aol.com
-
problem in bluetooth programming in javahi i have the below code to start bluetooth over PC to accept data from mobile but when i compile i will get the following errors i have widcom bluetooth stack and bluecove.jar and intelbth.dll(i placed this in system32)
/** * * @author manjunath */ public class PC_Bluetooth implements Runnable { private LocalDevice m_LocalDevice; String connectionURL = "btspp://localhost:393a84ee7cd111d89527000bdb544cb1;" + "authenticate=false;encrypt=false;name=RFCOMM Server"; StreamConnectionNotifier server = null; StreamConnection conn = null; public Thread t1 = null; public void startServer() { if (t1 != null) return; t1 = new Thread(this); t1.start(); } public void PC_Bluetooth() { } public void config_bluetooth() { try { m_LocalDevice = LocalDevice.getLocalDevice(); m_LocalDevice.setDiscoverable(DiscoveryAgent.GIAC); server = (StreamConnectionNotifier) Connector.open(connectionURL); conn = server.acceptAndOpen(); } catch (Exception e) { System.out.println(e.getMessage()); } } public void run() { try { config_bluetooth(); } catch (Exception e) { System.out.println(e.getMessage()); } } } and the exceptions are: init: deps-jar: compile: run: here to do..all BlueCove version 2.0.2 on widcomm Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: getProperty0 at com.sun.midp.Configuration.getProperty0(Native Method) at com.sun.midp.Configuration.getProperty(Configuration.java:34) at com.sun.midp.io.InternalConnector.<clinit>(InternalConnector.java:91) at javax.microedition.io.Connector.open(Connector.java:158) at javax.microedition.io.Connector.open(Connector.java:138) at javax.microedition.io.Connector.open(Connector.java:120) at pc_interface.PC_Bluetooth.config_bluetooth(PC_Bluetooth.java:42) at pc_interface.PC_Bluetooth.run(PC_Bluetooth.java:56) at java.lang.Thread.run(Thread.java:595) BlueCove stack shutdown completed BUILD SUCCESSFUL (total time: 3 seconds) please suggest me...
-
serial communication using bluetooth in j2mehi, i want some code or tutorials specifying how to use bluetooth in mobile for serial communication. i.e i dont want it use as obex, RFCOMM, L2cap only as com port cant it be if so how is to do..
-
problem in reading data from com porthi the at command works correctly it echos ok. this is my read data code
bool ReadPort() { long int dwSize = 0; bool hResult = false; std::string sb = ""; DWORD dwEventMask; if(!SetCommMask(hComm, EV_RXCHAR)) /* Setting Event Type */ { return hResult; } if(WaitCommEvent(hComm, &dwEventMask, NULL)) /* Waiting For Event to Occur */ { char szBuf[1024]; DWORD dwIncommingReadSize; do { if(ReadFile(hComm, &szBuf, 1024, &dwIncommingReadSize, NULL) != 0) { if(dwIncommingReadSize > 0) { dwSize += dwIncommingReadSize; sb.append(szBuf); } hResult = true; } else { unsigned long error = ::GetLastError(); hResult = false; printf("the error while reading error is %dl\n", error); break; } } while(dwIncommingReadSize > 0); *readData = new char[dwSize]; strcpy(*readData, sb.c_str()); return hResult; } else { return hResult; } }
it stops to WaitCommEvent function i feel i need to do some settings for my phone and pc to transfer the data serially but now it is PIM iam totally blank if u have any such settings for the transfer of data via serial com of bluetooth plz send in me... my phone is nokia 6288 i know this is not the forum for phone settings but please help me... -
how to read data from com porti have a program to connect the system with mobile via bluetooth serial connection and when it comes to read method it just stops. and the read methos is
bool ReadPort() { long int dwSize = 0; bool hResult = false; std::string sb = ""; DWORD dwEventMask; if(!SetCommMask(hComm, EV_RXCHAR)) /* Setting Event Type */ { return hResult; } if(WaitCommEvent(hComm, &dwEventMask, NULL)) /* Waiting For Event to Occur */ { char szBuf[1024]; DWORD dwIncommingReadSize; do { if(ReadFile(hComm, &szBuf, 1024, &dwIncommingReadSize, NULL) != 0) { if(dwIncommingReadSize > 0) { dwSize += dwIncommingReadSize; sb.append(szBuf); } hResult = true; } else { unsigned long error = ::GetLastError(); hResult = false; printf("the error while reading error is %dl\n", error); break; } } while(dwIncommingReadSize > 0); *readData = new char[dwSize]; strcpy(*readData, sb.c_str()); return hResult; } else { return hResult; } }
the program just goes to wait mode in the WaitCommEvent function, even when i send a file via bluetooth from my mobile it does'nt reads and while iam sending the file the bluetooth pops the message that PIM transfer is happining, how to send file serial so that my read function should read the data and store in a file...... -
problem in reading data from com porthi i have a code which was supposed to read data from serial com (bluetooth) and save in a file. but when i send a audio file from my mobile to pc the program will not read the port i have configured the bluetooth connection for serial communication (i.e from system stray selecting bluetooth icon and from quick connect selecting serial connection). instead it shows that connection is succesfull for PIM transfer, so do i need to write a application in my mobile to send data serially.. if u have any details about it please post me.. (right now i dont have any application in mobile iam directly sending file via bluetooth)...
-
HANDLE in MFCwhat does the handle types exactly means...
-
problem in connection to serial portno i am a begginer and i used AT command to test a while long back but now i dont remember it plz.. which is the command to type in and check for the status... and one thing when i open hyperterminal and select com4 and try to type some thing then my mobile disconnects the bluetooth connection...
-
problem in connection to serial portiam not using for windows CE its PC to mobile VC++ 2005 and appending of : has not solved, plz give me some soln..
-
problem in connection to serial porthi i have written the following code to receive data from mobile using bluetooth through serial communication. but it is not working
#include <stdio.h> #include <conio.h> #include <windows.h> #include "stdafx.h" #include "bluetoothConnection.h" bool BluetoothConnection::openPort(char *portNum) { if (portNum != NULL) { hcomm = CreateFile((LPCWSTR)portNum, GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, NULL, 0); if (hcomm == INVALID_HANDLE_VALUE) { return false; } else { return true; } } else { return false; } } bool BluetoothConnection::initPort() { dcb.fOutxCtsFlow = false; dcb.fOutxDsrFlow = false; dcb.fDtrControl = DTR_CONTROL_DISABLE; dcb.fOutX = false; dcb.fInX = false; dcb.fRtsControl = RTS_CONTROL_DISABLE; //time settings timeouts.ReadIntervalTimeout = 20; timeouts.ReadTotalTimeoutMultiplier = 10; timeouts.ReadTotalTimeoutConstant = 100; if (!SetCommTimeouts(hcomm, &timeouts)) { return false; } else { return true; } } void BluetoothConnection::ReadPort() { memset(chRead, '\x91', 250); Sleep(1000L); ReadFile(hcomm, chRead, 250, &dwRead, NULL); } void BluetoothConnection::display() { printf("%s\n", chRead); } int main() { BluetoothConnection *bth1 = new BluetoothConnection(); if (bth1 != NULL) { if (bth1->openPort("COM4")) { if (bth1->initPort()) { bth1->ReadPort(); printf("the data from com4 is ....\n"); bth1->display(); } else { printf("fail in init\n"); } } else { printf("unable to connect\n"); } } else { printf("unable to connect failed in initial state\n"); } Sleep(1000L); return 0; }
its failing in CreateFile function coz its returns 0xffffff.. can this code be used for bluetooth coz i found such code for serial port comm and infrared. is there any configurations between mobile and pc before running this application if there please provide me the steps.. -
programming for bluetooth using serial communicationprviously i tried with sockets for bluetooth programming but i found microsoft supports only a few dongle so now i decided to go with serial communication, so any body have tutorials or any materials regarding this if plz.. post me...
-
problem in acessing bluetooth dongle from c++ problemhi i have a bluetooth dongle and a program to serach all the devices using bluetooth, but the problem is findFirstDevice() function always returns null so it fails in searching but, i know that micrososft will support only a few dongles, mine is broadcom bcm2045a, but is there any alternative than this i came to know that we can use serial communication, but i have a doubt that by using serial com can we able to discover the devices and also can we able to connect to specified device... and if u have any code and tutorials related to this topic plz provide me the link...
-
problem in linking bluetooth related header files in VC++yes i have set the additional libraries to my sdk path but even then it is same.