Ubuntu and API bluecove : java and bluetooth

Hi
Here is my final project I want study worked with bluecove api (java bluetooth technology) and J2ME you guessed I am looking to make contacts and nokia laptop via bluetooth
then voila I first exposed my equipment:
hp laptop duel core processor, 200 gig hard drive, 2 GB rowing bone ubuntu 10.10 and set a date and I installed the bluetooth driver that ubuntu recommended me short I followed this short course:
http://myexp101.wordpress.com/2011/11/11/develop-java-bluetooth-application-under-ubuntu-linux/
for the library installed on ubuntu bluecove then I tested a small java program:
http://www.miniware.net/mobile/programs/EchoServer.java
to see that Bluetooth is enabled and can detect the presence of mobile phone nokia
I created a test project in eclipse and I joined the library in my project brief bluecove here is the program:
import java.io.*;
import javax.bluetooth.*;
import javax.microedition.io.*;
public class EchoServer {
public final UUID uuid = new UUID( //the uid of the service, it has to be unique,
               "27012f0c68af4fbf8dbe6bbaf7aa432a", false); //it can be generated randomly
public final String name = "Echo Server"; //the name of the service
public final String url = "btspp://localhost:" + uuid //the service url
+ ";name=" + name
+ ";authenticate=false;encrypt=false;";
LocalDevice local = null;
StreamConnectionNotifier server = null;
StreamConnection conn = null;
public EchoServer() {
try {
System.out.println("Setting device to be discoverable...");
local = LocalDevice.getLocalDevice();
local.setDiscoverable(DiscoveryAgent.GIAC);
System.out.println("Start advertising service...");
server = (StreamConnectionNotifier)Connector.open(url);
System.out.println("Waiting for incoming connection...");
conn = server.acceptAndOpen();
System.out.println("Client Connected...");
DataInputStream din = new DataInputStream(conn.openInputStream());
while(true){
String cmd = "";
char c;
while (((c = din.readChar()) > 0) && (c!='\n') ){
cmd = cmd + c;
System.out.println("Received " + cmd);
} catch (Exception e) {System.out.println("Exception Occured: " + e.toString());}
public static void main (String args[]){
EchoServer echoserver = new EchoServer();
here is the result of the execution in eclipse:
Setting device to be discoverable...
BlueCove version 2.1.1-SNAPSHOT on bluez
Exception Occured: javax.bluetooth.BluetoothStateException: Bluetooth Device is not ready. [1] Operation not permitted
BlueCove stack shutdown completed
Do you have an idea for solving the problem?
cordially

As I can judge, it is not just simple XML. An
ODS-File contains some XML in just one file. It is
not enough, just to parse it once with an XML. Is
there any APIs I could use, to read the field values,
or I have to write it myself?
I don't know why, but if I google for java api and
ods, openoffice etc. there is no information I need
:-((As I said, I've not had the need to do it myself, but as this is one of the primary benefits of the ODF, it shouldn't be too taxing. The format seems to be pretty well documented (try the OO website.....I'm sure theres a developers section), so even if you had to write a parser yourself, I doubt it would be terribly difficult. Sorry I can't be of more help.

Similar Messages

  • MIDP and Bluetooth as Java Card substitute

    Hi,
    I'm a Java developer, but not a Java Card developer, so I'm curious about the opinions of Java Card developers. It seems to me that IR and Bluetooth enabled J2ME/MIDP devices could be used in many situations where Java Cards are currently used. Depending on the adoption rates of
    a) Bluetooth enabled computers, devices, access points, etc... and
    b) cell phones with both Bluetooth and J2ME
    It may soon (a year or two) become cheaper and/or more convenient to issue users without a J2ME Bluetooth phone, such a device, than to issue all users Java Cards.
    So, entrenched coders
    1) Is this migration sane?
    2) Is anybody doing it, now?
    3) How hard/trivial is porting the applications?
    Thanks,
    Curt

    I'm aware of the JSR, but what is the security element ?On Sun Tech Days I was told it should be a Java Card. ;-))
    The main advantage of a smartcard is that it provides a trustworthy and tamper-resistant environment.
    Please have a look at
    http://www.simalliance.org/portal_upload/SIMalliance_comm.PDF
    I quote from the SIM Alliance site:
    "Thanks to a defined standard, easy downloading and powerful operating systems displaying high quality graphics, J2ME phones are making their mark. This leads to the question with such success and a memory capacity up to 1000 times the (U)SIM, will this relegate the Smart Card to a second class citizen?
    While Smart Card cannot compete with a Java handset for the sexy aspects of applications such as graphics, the core attributes of a Smart Card offer a number of significant benefits to application delivery, execution and management. All of these features require privacy management, security, portability and one-to-one personalization.
    Wireless applications must be secure and robust. However, it is feared that operators' revenue streams and secure pipeline will be threatened by the free delivery of applications mimicking the loss-making Internet portal model.
    This is where the Smart Card, (UICC, (U)SIM, and equivalent), will play an essential role in providing security, building trust and protecting revenues for mobile businesses.
    The card will become an integral part of the architecture for distributed applications running at the same time on Server, Handset and Smart Card to leverage the respective benefits of each part of the infrastructure.
    By looking at the strong points of each of the Java standards, Java Card and J2ME are not competing technologies but instead can be used in tandem to create an "open" and "secure" infrastructure that operators and content providers need in order to increase their ARPU and diminish costs. At present this infrastructure does not exist but leading operators, handset manufacturers, content providers and (U)SIM suppliers are working to make it a reality."

  • Intel Galileo and Bluetooth(Master)

    Hello Everyone,
    How would you go about bluetooth usage on the Galileo? I bought an Intel 6235 and I also bought and arudino bluetooth shield. For the bluetooth shield It seems though if you want to use it as a master it does not work.  Whenever I read from Serial or
    Serial1 no data is returned but I should so something like "+OK" according to the HC05 documentation.   I have the same code on arduino and it works fine but for the galileo it does not seem to work.  Also is it possible to use the
    windows bluetooth api with an ardunio bluetooth shield or it can only work with the Intel 6235.  

    Hi there,
    The Bluetooth stack is not available in the Windows Developer Program for IoT Galileo image, so the traditional bluetooth APIs won't function. 
    Which Arduino shield are you using? There are many implementations of Bluetooth shields - some may not be compatible with the Galileo Hardware.
    Thanks,
    Lou

  • Guide for J2ME PP to use RMI and Bluetooth

    hi
    i have a current project its about an Ordering System, and i was thinking of using ppc as an order client
    before i want to get on with this i was just wondering if i can get some help from here.
    i just want to ask would it be any problem if i use J2SE to write a server to communicate with the ppc using rmi methology and bluetooth as network device (USB bluetooth for PC). can some one please give me some direction of how to do it, or maybe there's a beta way to do something like this?
    do i just write the code as how you would normally write for rmi application for PC?
    do i need to use third party driver for bluetooth (PC and PPC)?
    btw my PPC is HP Pocket PC 2003 running Window CE and use J9 JVM
    thank you for in advance as i would really appreciate and so is others :)

    Hi,
    I have the same message "Error: Unable to query value..."
    But I can't read from serial port com8. I need to read data from gps, but first I want to read anything from com8.
    My application looks like that:
    import java.util.*;
    import javax.comm.*;
    import java.io.*;
    public class Porty {
    static CommPortIdentifier portId,tym;
    static Enumeration portList;
    private InputStream cos;
    private SerialPort porty;
    public Porty(){
         CommPortIdentifier portID = null;
         for (Enumeration portList = CommPortIdentifier.getPortIdentifiers();
              portList.hasMoreElements() ;) {
         CommPortIdentifier portId = (CommPortIdentifier)portList.nextElement();
         if (portId.getName().equals("COM8:")) {
              tym = portId;
         if (tym == null) {
         // Unable to find COM8
              System.out.println("No Com8");
         return;
         else {
         // found COM8
              System.out.println("Yes!!! Com8");
         try{
              cos = porty.getInputStream();
         }catch (IOException e){}
         System.out.println("Data from Com8");
         System.out.println(cos);
    public static void main(String[] args){
         Porty porcik = new Porty();
    What is wrog. Could samebody help me !!! What I suppouse to do !!! Could You send me same application, which is working and it reads from port.
    Thank You...

  • We just added a new printer and bluetooth connection to our iMac.  Now iTunes does not recognize our iPads as devices.  Have already tried restarting everything.  Any other suggestions?

    We just added a new printer and bluetooth connection to our iMac.  Now iTunes does not recognize our iPads as devices.  Have already tried restarting everything.  Any other suggestions?

    You can try the steps recommended here: http://www.apple.com/support/ipad/assistant/itunes/

  • Has anyone else downloaded iOS 7 on a 4S and found the WiFi and Bluetooth don't work anymore?

    I'm used to Apple products that "just work", but I'm not seeing it with the installation of iOS 7 on my phone (4S). I installed it earlier today, and the Wi-Fi and Bluetooth worked for about an hour, then just quit working altogether. The WiFi button is grayed out in Settings, and Bluetooth dosen't even display a button (all I get is a throbber that continuously spins). Trying to activate them through the "swipe-up" command center doesn't do the trick, and resetting the network settings also accomplishes nothing. Several reboots later, and I still don't have WiFi and Bluetooth.
    Has anyone else experienced this, and is there a solution? I may just decide to eschew iOS 7 and restore my pph

    After multiple attempts to restore and reboot, I finally decided to take a trip to my local AT & T store. They contacted Apple, and I explained the situation. I ended up moving to the iPhone 5, as my 4S was in the renew period. The 4S is still under warranty, so all I have to do is bring it to an Apple Store, where they will either fix or replace the phone. Looks like one of my kids will be getting a 4S :-)

  • TS1559 still no solution for greyed out wifi and bluetooth - what to do? been messing around with it for weeks and now discover I'm just outside of warranty period? WHAT?

    I am in such a predicament - phone not been quite right since the 6.1 update and I was tolerating the inconvenience of switching off and on etc etc for the past couple of months and now the wifi and bluetooth are totally greyed out all the time - did every restore possible including back to factory settings - still no luck - please don't tell me that trying all the solutions over the past 2 months that temporarily worked for a few days at a time will now mean I have timed myself out of the 1 year warranty? arghhhhh (I can't believe that such an issue will create the response 'oh well, your problem - best just buy another one' ???)
    I can't just drop everything and drive to the apple store and wait for hours every time there's a 'glitch' otherwise I may as well move nextdoor to the mall. They tell you to try and solve it yourself first - which I did - and now it's not responding to anything I try, will I be told - 'too late, out of warranty'???
    I see theres an update for the iphone 5 that fixes wifi bugs - what about us 4s owners? even my 3 year old 3gs is still working on wifi (haven't dared to update it!) so don't start telling me to expect that the iphone will only last 13 months - NOT AT $600 a piece
    This is madness and driving me crazy
    Please has anyone had any luck fixing this problem???

    well, you know how it is - glitches that usually resolve with a hard reset etc
    then a restore. then a factory restore....then ..... nothing fixes so I try the next step with apple online - fill out my serial number and find it is a couple of weeks out of date - and then with the holidays who has time to get to the apple store? this is my second 4s handset as it is - first one the glass cracked from L to R without any impact/damage etc - they changed it out automatically because it's a 'known fault' apparently - so technically, this handset is only 6 months old - but warranty is from original purchase date -
    never imagined it would turn out to be a warranty issue with the phone - and hey maybe when I get a chance to go to the apple store they'll be sympathetic, but I won't be able to get there till at least Jan 4th as it is. On the other hand, another iOS update might resolve the issue - but how long till that release? at the moment I'm having to use my old 3gs for wifi and 4s for phone!!!

  • HT201210 hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    Try the suggestions here to see if they resolve your problem:
    http://support.apple.com/kb/ts1559
    If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support.

  • Re: Windows Vista Ultimate 32-bit FN key and Bluetooth crash

    I have an old problem with FN key. I installed Vista and after a while, it stops working. In Windows, when I press the FN key it freezes about 3 seconds, a blue screen appears that tells me Vista has crashed, a memory dump begins and then the laptop restarts. And now, bluetooth doesn't work anymore and if I try to enable it it dows the same thing.
    P.S. The Windows is new installed (4 days), and has automatic updates to date.
    I reinstalled Toshiba Value Package, Bluetooth Monitor and Bluetooth Stack.

    LE: I uninstalled Value Package and it doesn't give me the blue screen anymore. The FN key works, but it doesn't display that menu on the top of the screen when i press it, but the functions work.

  • Yoga 13 WiFi and bluetooth issue resolved

    Unfortunately, I also met WiFi problems, but also found unexpected and sad solution.
    Wifi worked pretty well at working place, but had problems at home. As an experiment I brought WiFi router from the working place home. It did not work!
    At home I used pretty old keyboard and mouse plugged into passive USB hub. As soon as they were disconnected, problems disappeared. WiFi was also stable after I plugged power supply into the USB hub.
    We are making 24-bit analog-to-digital converter that connects to the PC via USB. I exactly know its current consumption (300 to 330 mA) and know that it correctly handles USB rules about power regulations. Maximum current, specified by USB2.0 standard, is 500mA, so consumption of our ADC is within limits. As soon as I plug this ADC in, WiFi connection immediately disappears at the working place.
    In the case of other devices, such as USB flash drive, power consumption may depend on the activity, increasing as it writes or reads something, and decreasing at the moment of inactivity.
    I'm pretty sure that Lenovo placed their WiFi/bluetooth module on the same USB hub with right-side USB2 connector. Any device, that requires energy, being plugged into USB2.0 port, immediately destroys WiFi (and presumably bluetooth) and it is rather hard to get it back alive without special dancing around.
    So, conclusion: never plug anything into USB2.0 port, if you need WiFi. This decreases number of available USB ports from two to one. Lenovo team should be blamed for that, not driver manufacturers or board manufacturers - Lenovo did non do its construction job well.
    I am not sure, that all WiFi and bluetooth problems of Yoga discussed at this forum have the same reason. But in any case incorrect implementation of USB2.0 power should be considered before any other reason of malfunction.
    Car manufacturers recall their products in the case of a failure. What about computer manufacturers?

    Citation from Wikipedia:
    The USB 1.x and 2.0 specifications provide a 5 V supply on a single wire to power connected USB devices. The specification provides for no more than 5.25 V and no less than 4.75 V (5 V ± 5%) between the positive and negative bus power lines. For USB 3.0, the voltage supplied by low-powered hub ports is 4.45–5.25 V.[61]
    A unit load is defined as 100 mA in USB 2.0, and 150 mA in USB 3.0. A device may draw a maximum of 5 unit loads (500 mA) from a port in USB 2.0; 6 (900 mA) in USB 3.0. There are two types of devices: low-power and high-power. A low-power device draws at most 1 unit load, with minimum operating voltage of 4.4 V in USB 2.0, and 4 V in USB 3.0. A high-power device draws, at most, the maximum number of unit loads the standard permits. Every device functions initially as low-power — but may request high-power, and get it if available on the providing bus.[62]
    Obviously, WiFi adapter is a high-power device. If it does not have sufficient power, it will start power saving program by reducing speed. Even lower power may interrupt ins basic functions. When I connect another high-power device (HDD or ADC) to the same hub, it should get its 500mA from the hub. Seems that starting at this moment  WiFi receives much less current than it requires and stops working. 
    If something is plugged into USB3 port, and this something does not utilize all energy it requested, WiFi starts working again.
    I would greatly appreciate if somebody repeats my tests using Yoga or Yoga 2 Pro.
    Test:
    Reboot your system, all USB devices disconnected
    Open http://www.speedtest.net site and measure Download connection speed (Speed1)
    Connect external HDD to USB2 (NOT USB3!) port
    Wait until HDD is connected
    Test Download speed once again (Speed2)
    Report results to this blog as Speed1/Speed2 couple of numbers
    Thank you in advance

  • Late 2005 - Airport and Bluetooth - won't work together

    Hi everybody!
    I have a problem with my Powermac G5 (late2005).
    I have the Airport Extreme with Bluetooth 2.0+EDR card installed.
    WLAN and Bluetooth work both if operated separately.
    But when Airport is activated and running and I turn on Bluetooth (and connect for example my Magic Mouse) Airport breaks down. - I loose my connection and can't see any other wireless networks.
    Switching to another Airport channel din't help.
    Does anybody have an idea what to do?
    Thanks a lot!
    Chris

    I just started trying BT.
    I allready had a look at the cabling and read about it, that it doesnt matter how the calbes are connected to the airport card.
    I don't think I can put anything between the antennas.
    The late2005 has the build-in antenna (for Airport and BT)...
    But I will have a look if I can place anything between an I will change the cabling...
    Thanks so far!
    Chris

  • Internal Mic and Bluetooth not working together at the same time

    Okay.. so I've been noticing this happen alot lately. Whenever I have my usb wacom tablet plugged in (which is almost always), there would be no internal mic input and bluetooth would become "not unavailable". Also, even when I try an external mic, there was no input. Could this be a coincidence or some related usb-bluetooth problem? Could it be my audio input or tablet driver problem?
    I've used my mic to skype before I had installed the tablet. Also before I used garage band to record my sister's guitar with an external mic, there was no problem at all, and of course I didn't have my tablet plugged in at the time. Recorded a whole hours worth of music, and didn't have any problems.
    Today.. I checked to see if my internal mic was working before I launched skype, and it was working perfectly, and I also noticed my bluetooth was available (didn't test it though). Then I went on skype talked to friend for about 20min, and suddenly the audio stop working. I had my tablet plugged in from earlier today. I restarted my macbook (with no tablet plugged in) and still mic input isn't working. I tried and external mic, but still nothing. I tried uninstalling skype, still nothing.
    This is not the first time this happened, I noticed it would somehow fix itself after a few days every time, and mic and bluetooth would start working again out of nowhere. Which makes it even more weird.
    Need help pleaseee!
    PS. I tried getting someone to fix it before(a few months ago- I don't really use my mic or bluetooth much), but when I brought it in and started up my mac, at that time it was working again. But now it isn't working =(

    UPDATE: I just noticed my bluetooth was no longer "unavailable", so I quickly went into system preferences, and noticed that my internal mic input had some input! Very weak though, only 1-2 bars. So what does this mean?

  • Dual Boot Ubuntu and Windows 8.1 on HP ENVY dv7

    Okay, I've installed 14.04 LTS with EFI and Secure Boot enabled. My problem is that the HP automated boot process ignores the presence of Ubuntu and boots directly into Windows. The only way I can boot into Ubuntu is to intercept the boot process by pressing the Escape key immediately, selecting Boot Device options (F9). choosing "Boot from EFI File", then pressing Enter on the next page (a description of the hard drive), choose EFI from the next screen, select "<ubuntu>" from the subsequent list, the select "shimx64.efi" from the next screen, which gives me the Grub list (without, I might add, any reference to Windows!) So, while it works, it is a laborious process at best. Have tried to follow the following post from an HP help forum:
    So, until HP releases an updated UEFI that allows turning this "feature" off or rearranging boot options through the F10 UEFI setup, this is what you can do to get dual boot with the least amount of hackiness:
    In Windows, mount the UEFI partition (mountvol S: /S mounts it as the S: drive) and copy the file \EFI\Microsoft\Boot\bootmgfw.efi to use some other name (for example, I copied it to "\EFI\Microsoft\Boot\bootmgfw.efi~", but you can change the name to anything else).
    In the Windows command prompt, update the Windows UEFI entry to point to the new name: bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi~ (adapt to your set name accordingly).
    Optionally, change the name of the Windows boot loader so that you would be certain that it points to the new file location: bcdedit /set {bootmgr} description "Fixed Windows path"
    Install the other OS. In my case the bootloader was installed into \EFI\opensuse\grubx64.efi.
    Delete the two files, \EFI\Microsoft\Boot\bootmgfw.efi and \EFI\Boot\bootx64.efi.
    Use efibootmgr to delete the "OS boot Manager" entry: sudo efibootmgr -b 0000 -B
    Set the new OS bootloader to be the default bootloader by using efibootmgr with the -o option. In my case, I had an entry called "opensuse" in slot Boot0001 and the updated path Windows entry in slot Boot0002, so I had to do sudo efibootmgr -o 0001,0002
    Update GRUB to point the Windows entry to your renamed file (you'll have to create a new file in /etc/grub.d and rerun grub-mkconfig).
    Was able to do everything as posted except "Delete OS boot Manager", because there is no entry for that item when I run efibootmgr in Ubuntu terminal. I did reorder the boot order using efibootmgr so that Ubuntu was first and Windows was second, but the HP OS boot Manager changes it back!
    Would really appreciate any help.  Thanks in advance.
    SamJ20109

    Hey vikas_g,
    Welcome to the HP Forums!
    With Ubuntu not recognizing your partitions during installation, some information that may be of assistance to you, could be in this document 'Frequently Asked Questions About Linux (FAQs)'.
    If your question is not answered from this document, I would suggest asking your question on the Ubuntu Forums.
    I hope this information helps!
    I worked on behalf of HP

  • How can I tether via USB my iPhone 4S with iOS 7.1.1 to my MacBook with Snow Leopard 10.6.8 and iTunes 11.2.2 ?? Please note that at the same time Personal Hotspot via both WiFi and Bluetooth works perfectly!

    How can I tether via USB my iPhone 4S with iOS 7.1.1 to my MacBook with Snow Leopard 10.6.8 and iTunes 11.2.2 ?? Please note that at the same time Personal Hotspot via both WiFi and Bluetooth works perfectly!

    Hello, lustige luka. 
    Thank you for visiting Apple Support Communities. 
    The Personal Hotspot feature using USB  should be as simple as connecting the device to your Mac via the USB cable when Hotspot is enabled.  Here is some more information regarding this feature and an article that will provide some troubleshooting steps if you are experiencing an issue. 
    iOS: Understanding Personal Hotspot
    http://support.apple.com/kb/ht4517
    iOS: Troubleshooting Personal Hotspot
    http://support.apple.com/kb/TS2756
    Cheers,
    Jason H. 

  • I install windows 8 in my macbook pro, the problem is it cannot detect wifi connection and bluetooth

    I install windows 8 in my macbook pro, the problem is it cannot detect wifi connection and bluetooth, because when i click the wireless in settings there are no choices... but when i use the mac os, everything is fine, the wifi, the bluetooth everything is functional, can you help me fix this problem? help will be much appreaciated.. thanks

    How did you install Windows? Did you use Bootcamp Assistant or did you use a virtual machine like Parallels, Fusion, or VirtualBox.
    If you used Bootcamp Assistant, did you download and install the Windows Support software (drivers) in accordance with the Bootcamp instructions?

Maybe you are looking for

  • Data Recovery on damage hard drive.

    Hello everyone. I have a Power PC G4 400 with two hardrives. The original and a newer WD 80 Gig's. The original is still running fine but the new one failed. It starting making clicking sounds. So I decided to move some of the data to the other HD bu

  • Mac mail attachments not searchable in gmail webmail

    Attachments sent for my Mountain Lion Mail.app (using my gmail account) are not searchable from the web gmail.com when I use advanced search options like "has:attachment". However, emails with attachments sent from web gmail.com are searchable. For s

  • No embedded images on mail

    In Mail, I can not see any embedded image. The attached images no problem, but the ebedded are seen as a blue square with a question mark. No newsletter visible. I have checked the "view remote images on HTML messages", but , .....nothing Any ideas??

  • Installer Failed To Initialize Photoshop CC Mac

    Hi, I am on a Macbook Air 8gb Memory, 216 GB storage, i7 with around 60 gb free on my SSD, and I'm trying to install Photoshop CC. I currently have Illustrator and After Effects CS6. Basically, what happens, is that whenever I open the Photoshop Inst

  • OIM Reporting

    Hello Guys, I want to have the possibility to report any operation done within OIM data. For example, I want to be able to report all the changes done to an account, since the creation its creation. When I report this account (an account to a resourc