Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

manju23reddy

@manju23reddy
About
Posts
23
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [Message Deleted]
    M manju23reddy

    [Message Deleted]

    C / C++ / MFC

  • how to close acceptandopen for streamconncetionnotifier
    M manju23reddy

    hi 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.

    Java sysadmin help tutorial question

  • how to send live recording audio
    M manju23reddy

    hi 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()); } }

    Java help tutorial

  • serial communication using bluetooth in j2me
    M manju23reddy

    i want code in J2me or java

    Mobile com tutorial

  • cannot include" \inc\wxp\warning.h" and environment variables $(BASEDIR) not found URGENT please help!!!!
    M manju23reddy

    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

    C / C++ / MFC help workspace com debugging

  • cannot include" \inc\wxp\warning.h" and environment variables $(BASEDIR) not found URGENT please help!!!!
    M manju23reddy

    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

    C / C++ / MFC help workspace com debugging

  • cannot include" \inc\wxp\warning.h" and environment variables $(BASEDIR) not found URGENT please help!!!!
    M manju23reddy

    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.

    C / C++ / MFC help workspace com debugging

  • cannot include" \inc\wxp\warning.h" and environment variables $(BASEDIR) not found URGENT please help!!!!
    M manju23reddy

    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

    C / C++ / MFC help workspace com debugging

  • problem in bluetooth programming in java
    M manju23reddy

    hi 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...

    Java c++ java com sysadmin data-structures

  • serial communication using bluetooth in j2me
    M manju23reddy

    hi, 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..

    Mobile com tutorial

  • problem in reading data from com port
    M manju23reddy

    hi 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...

    C / C++ / MFC com help

  • how to read data from com port
    M manju23reddy

    i 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......

    C / C++ / MFC com help tutorial

  • problem in reading data from com port
    M manju23reddy

    hi 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)...

    C / C++ / MFC com help

  • HANDLE in MFC
    M manju23reddy

    what does the handle types exactly means...

    C / C++ / MFC c++

  • problem in connection to serial port
    M manju23reddy

    no 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...

    C / C++ / MFC help

  • problem in connection to serial port
    M manju23reddy

    iam not using for windows CE its PC to mobile VC++ 2005 and appending of : has not solved, plz give me some soln..

    C / C++ / MFC help

  • problem in connection to serial port
    M manju23reddy

    hi 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..

    C / C++ / MFC help

  • programming for bluetooth using serial communication
    M manju23reddy

    prviously 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...

    C / C++ / MFC

  • problem in acessing bluetooth dongle from c++ problem
    M manju23reddy

    hi 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...

    C / C++ / MFC c++ com algorithms help

  • problem in linking bluetooth related header files in VC++
    M manju23reddy

    yes i have set the additional libraries to my sdk path but even then it is same.

    C / C++ / MFC c++ help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups