Direct Serial Port Comunication With comm API 2.0

I am running the samples codes like SimpleRead under Windows XP.
When it executes "portList = CommPortIdentifier.getPortIdentifiers()", the enumerator portList keeps in Null. So no ports are detected.
I know that there are some dificults because Windows Xp, NT and 200 dont allow direct access to ports.
I dont know wich standar can i follow to solve this problem..
Thanks...
Andres

I followed your sugestions...
I installed the dll and the properties file in the respective directories.But I still having the problem.
I am testing on Jbuilder8 and installed the jdk 1.4 under this directory.
In the project i put the path for the lib and bin directories...
Maybe the problem is the large of the path ? c:\program files\jbuilder8\jdk1.4\lib\
The version are compatible ?
I think you speak spanish, but i think that we can talk in english only in that forum....
Thanks...

Similar Messages

  • Problem in Accessing serial port using java comm Api

    I have installed java comm Api in my pc.
    i have gone through the instalation instruction which comes on this package.
    I have done the instalation like this
    Copy win32com.dll to my <JDK>\bin directory.
    Copy comm.jar to my <JDK>\lib directory.
    Copy javax.comm.properties to my <JDK>\lib directory.
    and restart the system.
    But when i run the BlackBox , it is giving me message
    "serial port not found".
    Can any one tell me , what is the exact problem ?

    I'm not sure what you mean by BlackBox, but I have used the COMM api extensively.
    The majority of problems is that the api cannot see the serial port (which is what you are describing) and this is caused by incorrect placing of the javax.comm.properties file.
    As well as <JDK>\lib, try putting it into <JRE>\lib as well. That has often solved problems on my setup.

  • CRC with comm api?

    Hi,
    What I need to do plain and simple is send a CRC encoded msg over the serial port, and idealy be able to show what information is coming in the serial port.
    I have been using the serialDemo project that comes with the comm api, because it's pretty simple. However I have a very noisey channel and I need to implement a CRC algorithm for data integrity.. but I don't know how to add this feature to the serialDemo program.
    I've been looking at the code but it seems all the control for things like parity etc are right in the comm api, so how can I modify it to use CRC as well?
    I'm not new to java but I am new to serial communication.
    Please help

    The algorithm you are looking for is probably crc16. This is based on a polynomial that uses the data bytes after the parity has been applied.
    I found this GNU license on the web.
    http://www.jonelo.de/java/jacksum/
    Or you can write your own based on this
    http://www.summitinstruments.com/library/tn410.htm

  • PO Goods Receipt with Serial / Batch number with DI API

    I am creating PO Goods Receipt with DI API. This works fine. But when i have items with serial numbers and batch numbers in the same PO, then i am getting either of the following errors:
    1. [OITM]Item has no serial number management
    2. [OIBT] Invalid Item Code.
    I debugged the code and the values i set seems to be correct. I am using VB.Net and SAP 2004 with Patch 23.
    Thanks
    Anand

    Anand,
    When you are working with a Serialized item in the first scenario, have you tested working with the item in the Business One application itself?  Have you tried to have the system assign a serial number for the item when issuing a Goods Receipt?  Do you get the same issue through the Business One interface.  With respect to working with Batches, have you setup the Batches for inventory items through the Business One interface yet?  If you have not setup Batches, this would be why you would not have any data in the OIBT table.
    HTH,
    Eddy

  • Error 37 with serial port / no with hyperterminal

    I have added to my Pc a card with two serial port, I can access to them by hyperteminal or by labview but only at port 0 and 1 at the same time or 2 and 3, if not I have an error 37. What can I do?

    Error 37 means that LabVIEW cannot find the appropriate serial device. This indicates that one of the following conditions exists:
    LabVIEW cannot open the specified serial port;
    LabVIEW cannot find the file serpdrv.
    Make sure that the serial driver was installed before the board, and that the com ports appear normally in the control panel. If you cannot get it working, contact NI through either phone or email support. Since there are several potential causes, this is difficult to diagnose without more information. You can contact NI using the following webpage.
    http://sine.ni.com/apps/we/niae_asc.main
    Kim L.
    Applications Engineer
    National Instruments

  • Hola!!!Yesterday, I asked a question about serial port comunication, because I wanted to find a function in Labview similar to "ProcessSystem Events" in Labwindows!!

    My problem is that I have written a comand through the serial port, and I doesn´t receive the answer. If I execute the programm step by step, I don´t have any problem but if the program runs i don´t get the answer!!!It is not a problem of the bytes that I write and receive, i have used the function "Visa Bytes at Serial Port"!!I have used th function "wait" but it doesn´t work!!!!i have used a Flat sequence but it hasn´t solved the problem!!so, i don´t know what i can do!!!
    I attach the "different versions" that i did, maybe someone find a solution!!
    Dennis, I have the problem, when
    I read the last time in the program, I don´t receive the answer!thank you!!!
    Gracinda
    Attachments:
    salida_analogica.vi ‏67 KB
    config_rango.vi ‏41 KB
    salida_ana_v1.vi ‏69 KB

    Dear Mads;
    Thank you for your answer.
    I don´t have a termination character but I know the number of bytes that I have to receive. I tried checking the number of bytes that I received, using "Bytes at Port", but it gets a value and it isn´t refreshed, it has a value so my program stop in the while structure that I have added. I attach the vi. I don´t know how to do that. I am starting with Labview, and it is a little difficult for me!!
    In the first change that I did, I added the function "Bytes at Port" inside the While loops, but it doesn´t work either !!!
    Thank you!
    Attachments:
    entrada_analogica.vi ‏94 KB

  • Programing serial port (USB) with xcode?

    Hallo,
    I am newbie in mac, and I want to program robot and accessing with serial port, I will use xcode and I'm a beginner on XCode.
    I'd like to build my own application now. Does anyone could send me any sample code?
    I'm using XCode 4.3.2 

    Here's a project I did a couple years ago for an iRobot Create.  It should still work with your setup.

  • Serial port comunication

    Hello guys,
              can any one help me to figure out how can i comunicate through the serial
              port(com) or through the modem.
              actualy i need to send some serial data to a hardware from servlet so im not
              sure whether i go for modem or com port and the bottom line is have no idea
              about this
              can any one help me to find out information about this or pass over
              information
              Thanks a lot for your halp in advance
              vick
              

    I followed your sugestions...
    I installed the dll and the properties file in the respective directories.But I still having the problem.
    I am testing on Jbuilder8 and installed the jdk 1.4 under this directory.
    In the project i put the path for the lib and bin directories...
    Maybe the problem is the large of the path ? c:\program files\jbuilder8\jdk1.4\lib\
    The version are compatible ?
    I think you speak spanish, but i think that we can talk in english only in that forum....
    Thanks...

  • Get Serial port description With out Visa Intrument

    Hi All
    How can i get the description of a serial port ? eg. Communications Port (COM14)
    I currently use the VISA Instrument but there is a big over head for the release, 65mb over head.
    I would like to list all the available port for the user to select.
    Thanks
    Shakeel
    Help share your knowlegde
    Solved!
    Go to Solution.

    You may find useful resources in this code published by Martin some time ago. Original code returns only the port number, but running it step-by-step you can find the point in which the text description of the device is found and use it.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Sending File Over Serial PORT

    Hi,
    I'm able to read/write data over serial port using Java Comm APIs in Linux.
    Can anybody please tell me how to write/read a file over Serial port?
    Is it similar to sending a file over network?
    An early response is appreciated...

    Same stream I/O as used over the port works from a file. Dead simple.
    Also dead slow. If you want to do large amounts of data, use a RandomAccessFile and read a big chunk at a time into a byte array. Then send the byte array.

  • Windows Kernel Debbuging: Debug over virtual serial port with WDK 8.1

    I'm currently having some issues doing kernel debugging of a Windows 7 x64 target from my Windows 8.1 x64 host machine. I'm running Visual Studio 2013 with WDK 8.1 on my host and have provisioned my target machine running in VMWare.
    Here are my configurations for the target machine. It was configured by reading mostly from here - http://www.codeproject.com/Tips/545835/Kernel-Mode-Debugging-in-a-VM-using-Visual-Studio :
        Windows 7 x64
        Serial port COM2 with VMWare with name \\.\pipe\com2. All proper options in VMWare are checked
        Debug flag for OS enabled through msconfig. Debug port is COM2 running at 115200 baud.
        I ran the test target client "WDK Test Target Setup x64-x64_en-us.exe" on the machine before provisioning the computer
    I was able to provision the computer properly -- it created the WDK Remove User account. However, I'm running into some issues actually debugging. Below are the steps
        Launch the Windows 7 x64 target image in VMWare and wait on the boot menu
        In Visual Studio (host machine), go to Debug -> Attach to process -> Select my computer -> Select process "Kernel" -> Attach
        In VMWare, press enter to boot Windows
        It takes a while, but on my host machine, Visual Studio eventually connects. I can choose to "Break All" and actually use the debugger.
    However, I can't seem to connect to the debugger if I don't do it before booting the kernel. And I can only attach once. For example, I can't let Windows initialize to the desktop and then build my driver and begin debugging. The debugger will always hang on
    "Waiting to reconnect...". The same goes for if I begin debugging on kernel initialization, decide to stop debugging, then try to reconnect or reattach; it will hang on "Waiting to reconnect..." indefinitely as well.

    Follow the directions here: https://msdn.microsoft.com/en-us/library/windows/hardware/jj200334%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    You are using user mode debug setup menus, that won't work.
    Mark Roddy Windows Driver and OS consultant www.hollistech.com

  • Hp laptops with serial ports

    are there any laptops by hp that have a serial port along with usb?? I really need a true serial port.

    Hi 241R ,
    Here is a link to probook 6470b which has a serial port -http://www8.hp.com/h20195/v2/getpdf.aspx/c04296097​.pdf?ver=4
    Hope it helps
    Regards,
    PraTH_KR
    Although I am an HP employee, I am speaking for myself and not for HP.
    **Click on “Kudos” Star if you think this reply helped** Or Mark it as "Solved" if issue got fixed.

  • Fastest Thinkpad with serial port

    Hello!
     what is the fastest thinkpad with dock station or port replication that still have the serial port that has been produced?
    Is it the X60 ?
    I have my faithful T30 but it is a little slow now...
    Ciao

    Welcome to the forum!
    Although the integrated serial port died with T30 and A31p, it's still available on dock for most newer ThinkPads:
    http://www-307.ibm.com/pc/support/site.wss/MIGR-61297.html
    Good luck.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • Unable to connect to SRW224P via web base and serial port on the front until reboot switch

    Just installed new SRW224P switch 4 days ago and we lose connectivy to the SRW224P manage switch. Try to Web in to device and also direct serial port unable to get connected, reboot and it works for a little bit but then we loose connectivity again. Also the computers connected to the switch loose their IP address and sometimes unable to get a DHCP address assigned back from are server.
    Any suggestions?
    (Edited for guideline compliance.Thanks!)Message Edited by JOHNDOE_06 on 05-14-2007 09:20 AM

    I ended up doing a replacement with linksys, the new one has been in place for 2 weeks and it seems to be running ok.

  • Reading a char array from Serial port

    Need help!
    Hi, I've got the following problem - I wanna read a input stream from serial port and I use at the moment the following method (reading bytewise):
    public String receiveText (){
          byte ch;
          fStrBuf.delete(0,fStrBuf.length()); //clearing the buffer
    try{
              do {
              ch = (byte) fPortInStream.read();
              fStrBuf.append( (char) ch);
            while ( (byte) ch != 0x03); //The end of frame byte
             }catch(IOException ioe) {};
          return fStrBuf.toString();It works pretty well, but disadvantage is that it's too slow to use it in the thread (at least I think so)
    How can I change it to read all available data from the port (or simply faste). I don't need event listeners, because it's a request-responde communication.
    I tried smth. like this
    byte[] readBuffer = new byte[20];
                try {
                    while (fPortInStream.available() > 0) {
                        int numBytes = inputStream.read(readBuffer);
                        fStrBuf.append(readBuffer);
                } catch (IOException e) {}
          return fStrBuf.toString();But it doesn't seem to work :-(

    May I suggest that you use StringBuilder rather than StringBuffer. It has less overhead because it is not threadsafe. I do synchronous serial port stuff with Opto 22, and i have no listeners enabled.
    Appending to the String(Builder/Buffer) directly from the byte buffer mangles it. So I use a string (ugh). With the Opto22 brain boards, i am looking for a carriage return as a term char. It either finds it or times out.
    This is the best i have come up with so far:
    StringBuilder response = new StringBuilder();
    String data = new String();
    long msTimeOut = 2000;
    public void getResponse () throws IOException {
            byte[] readBuff = {0};
            int charAvail;
            response.delete(0,response.length());
            long ts = Calendar.getInstance().getTimeInMillis();
            try {
                while ( readBuff[readBuff.length-1] != '\r' ) {
                    charAvail = inputStream.available();
                    if ( charAvail > 0 ) {
                        readBuff = new byte[charAvail];
                        inputStream.read(readBuff);
                        response.append(new String(readBuff));
                    if ( Calendar.getInstance().getTimeInMillis() > (ts + msTimeOut) ) {
                        response.delete(0,response.length());
                        response.append("TIMEOUT");
                        break;
            } catch (IOException e) { e.printStackTrace(); throw e; }        
            data = response.substring(0);
        } I just starting writing Java about 4 days ago, so caveat emptor.

Maybe you are looking for

  • How to put time&date on photos

    How to put time&date on photos

  • Bad Applet Viewing Problem

    I have tried this with the recent versions of the Runtime Environment 1.4.2 and 1.5.0 Beta 2 and I get slightly different, but the same problem. When I try to view an applet in a web page with 1.4.2, it looks for jvm.dll in \bin\hotspot\ when it's us

  • Refresh an af:iterator

    Hi there, we've got a problem with an af:iterator component. We use it inside a panel tabbed to display multiple show detail items depending on out collection model. This is working as it should, however, the user could create new data which should a

  • Dynamic redeploymeny of exploded applications

    Hi I am trying to configure weblogic (6.0sp1) for dynamic deployment of my application. For convenience of source management, i got my web-apps + ejbs in different directory other than "/config/domain_name/applications". Now weblogic document says, a

  • HT1766 Can't send email from ipad. How do I do that?

    HOw can I send emails from my ipad?