API javacomm and ASCII

Hi,
I use the JAVACOMM API and I know how to read/write data on the serial port RS232. I would like to send command in ASCII to my robot.
I don't understand how to send ASCII command.
If I want to send <ACK> <CR> <LF> : I must send out.print("ACK CR LF") or
out.print(006 013 010) with the ascii code ??????
Thank you very much if someone can help me.
Best regards.
[email protected]
J.PONS.

out.println("ACK CR LF") will print the string "ACK CR LF",
I think you're looking for something more like
out.writeChar(6); if you're using dataOutputStreams for example. This should write the unicode character 6 which should be ACK
either that or out.print((char)6); should probably do it if you're using some other kind of print stream...I'm not even sure you need to cast that.
Hope this helps, good luck with the robot, sounds cool!

Similar Messages

  • Regarding the xif adapter and ascii adapter

    Dear experts
    I have a requirement where i have to connect the crm system to non sap systems using the xif adapter and ascii adapter could you tell me  what are the configurations steps to be followed for this.
    Thanks & Regards
    Rao

    1)  Don't use the ASCII adapter
    2)  Use the LSMW with the XIF adapter instead
    As the previous posters said, it depends on what you want to convert, which will determine how to use this.  A quick example of the XIF adapter with the LSMW is located in my blog here:
    /people/stephen.johannes/blog/2005/08/18/external-data-loads-for-crm-40-using-xif-adapter
    Plus do a search on this forum for more information on using the XIF adapter.
    Take care,
    Stephen

  • How do I find out which library containing Jps-api.jar and Jps-internal.jar

    In project properties->Libraries and Classpath option, I need to add j2ee\home\Jps-api.jar and j2ee\home\Jps-internal.jar but I am not sure which library contains them? Is there a easy way to find what jar files are contained in each Libraries?
    I could have added the jar files directly, but the project will be shared among a team and the path to jar files will be different for everyone.
    Thanks.

    The "BC4J Security" library contains the libs to which you refer.
    --Ric                                                                                                                                                                                       

  • Package com.sap.ip.me.api.logging and com.sap.ip.me.api.user not found.

    I don't have
    com.sap.ip.me.api.logging
    and
    com.sap.ip.me.api.user
    packages in me2lib.jar (and none of the jars in the lib folder of the SAPMobileEngine folder).
    Any ideas as to where these are ?

    I don't think you can use ME2.1 Client with MI2.5 Server. At least they have different login protocol, and maybe different synchronization protocol as well.
    The library MEg.jar, that I have inspected for the missing libraries, is a part of MI25 SP09. I heartily advise you to migrate your application to MI.
    Cheers,
    Todor

  • Read binary and ascii values from input stream

    Hi All
    I want to read a stream that consist both binary values and ascii values. Length of the stream cannot anticipate. Can you help me?
    Thanks

    Sameera wrote:
    Hi All
    I want to read a stream that consist both binary values and ascii values. Length of the stream cannot anticipate. Can you help me?
    ThanksHave a look at this:
    Character and Byte Streams
    http://java.sun.com/docs/books/tutorial/i18n/text/stream.html

  • Where can I find FND/AD Api's and their documentation

    Hi All,
    Where can I find FND/AD Api's and their documentation. Any help is appreciated
    thanks

    Oracle Integration Repository
    http://irep.oracle.com/index.html

  • Youtube api v3 and vb

    Could someone give some code or make a tutorial on getting the youtube api v3 to work with vb.net. I have experimented with the examples on the youtube developers page in c#, and javascript, and they simply don't work. They all show errors when run as is.
    I've attempted to convert the c# examples to vb, but they don't work. I have my api key and have done all of the sign up stuff that is necessary.
    Specifically, I'd like to complete a keyword search, and then play the selected video in a video player on the same page.  Thanks.

    Could someone give some code or make a tutorial on getting the youtube api v3 to work with vb.net. I have experimented with the examples on the youtube developers page in c#, and javascript, and they simply don't work. They all show errors when run as is.
    I've attempted to convert the c# examples to vb, but they don't work. I have my api key and have done all of the sign up stuff that is necessary.
    Specifically, I'd like to complete a keyword search, and then play the selected video in a video player on the same page.  Thanks.
    Hi,
    I am afraid that this issue is mainly related to apis of Youtube which belongs to third-party, I would recommend you consider posting this issue on its publisher's website to get supports.
    Regards.
    Carl.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Difference between API manager and API catalogue?

    Hi All
    Apologies for this naive question. But I'm a bit confused by the overlapping functionality offered by Oracle API catalogue and manager. Can someone please explain how both of this product are positioned in API management landscape?
    Thanks in advance.

    Access Manager is for access control (web authentication, authorization), Identity Manager is for identity (userid,profile,role, password etc) provision/management across multi resources (such as unix, active directory, peoplesoft, SAP) etc.

  • Unicode and ascii conversion help needed

    I am trying to read passwords from a foxpro .dbf. The encrpytion of the password is crude, it takes the ascii value of each char entered and adds an integer value to it, then stores the complete password to the table. So to decode, just subtract same integer value from each chars retieved from .dbf. pretty simple.
    The problem is that java chars and strings are unicode, so when my java applet retrieves these ascii values from the .dbf they are treated as unicode chars, if the ascii value is over 127 I have problems.
    The question. how can i retrieve these ascii values as ascii values in java?
    Should I use an InputStream like:
    InputStream is=rs.getAsciiStream("password");
    Is there a way to convert from unicode to extended ascii?
    Some examples would be helpful, Thanks in advance.

    version 1
    import java.nio.charset.Charset;
    import java.nio.ByteBuffer;
    import java.nio.CharBuffer;
    class Test {
        static char[] asciiToChar(byte[] b) {
            Charset cs = Charset.forName("ASCII");
            ByteBuffer bbuf = ByteBuffer.wrap(b);
            CharBuffer cbuf = cs.decode(bbuf);
            return cbuf.array();
        static byte[] charToAscii(char[] c) {
            Charset cs = Charset.forName("ASCII");
            CharBuffer cbuf = CharBuffer.wrap(c);
            ByteBuffer bbuf = cs.encode(cbuf);
            return bbuf.array();
    }version 2
    import java.io.*;
    import java.nio.charset.Charset;
    class Test {
        static char[] asciiToChar(byte[] b) throws IOException {
            Charset cs = Charset.forName("ASCII");
            ByteArrayInputStream bis = new ByteArrayInputStream(b);
            InputStreamReader isr = new InputStreamReader(bis, cs);
            char[] c = new char[b.length];
            isr.read(c, 0, c.length);
            return c;
        static byte[] charToAscii(char[] c) throws IOException {
            Charset cs = Charset.forName("ASCII");
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            OutputStreamWriter osw = new OutputStreamWriter(bos, cs);
            osw.write(c, 0, c.length);
            osw.flush();
            byte[] b = bos.toByteArray();
            return b;
    }

  • What are the API's and OS Supported by Oracle TimesTen

    1.) What are all the API supported by oracle TimesTen?
    is the below are correct and whether other than this is there any other API supports oracle TimesTen
    JDBC,
    ODBC,
    OLAP,
    ADO.net,
    C++...............
    2.) What are the Platform supports?
    is the below are correct and whether other than this is there any other OS supports oracle TimesTen
    Linux x86-32 and x86-64:
    Oracle Linux 4 and 5
    Red Hat Enterprise Linux 4 and 5
    SUSE Enterprise Server 10 and 11
    MontaVista Linux CGE 5.0 and 6.0
    Asianux 3.0
    Microsoft Windows x86-32 and x86-64:
    Windows XP, Windows Vista, Windows Server 2003, Windows Server 2003 Release 2, Windows Server 2008, Windows 7
    Solaris SPARC 64-bit:
    Oracle Solaris 10
    Solaris x86-64:
    Oracle Solaris 10
    IBM AIX 64-bit:
    AIX 6.1 and 7.1
    Solaris SPARC 32-bit (client only):
    Oracle Solaris 10
    IBM AIX 32-bit (client only):
    AIX 6.1 and 7.1
    3.) What is the latest Version in Oracle TimesTen?
    4.) Maximum number of rows in a table.     2 Power 28 = 268,435,256 for 32 Bit     / (2 power 31-1) = 2,147,483,647 for 64 Bit
    if the Row value exceeds more than the specified value what will happen ? whether we need to have multiple tables
    Say TableA reaches 268,435,256 values and if few more rows are added then the value can be kept in new table TableB and so on..... or how?
    Thanks

    Dear 933663,
    1. What are all the API supported by oracle TimesTen?
    JDBC
    ODBC
    ADO.net
    OCI
    PRO*C
    +
    PL/SQL
    SQL
    2. What are the Platform supports?
    TimesTen 11.2.2.2.0 supports - Windows (32-bit, 64-bit), Linux x86 (32-bit, 64-bit), Solaris Sparc (64-bit), Solaris x86 (64-bit), IBM AIX Power (64-bit) (http://www.oracle.com/technetwork/products/timesten/downloads/index.html)
    The detailed information I could find only in 11.2.1 documentation (http://docs.oracle.com/cd/E18283_01/timesten.112/e13063/install.htm):
    Microsoft Windows 2000, Windows XP, Windows Vista and Windows Server 2003 and 2008 for Intel IA-32 and EM64T and AMD64 CPUs.
    Asianux 2.0 and 3.0 for Intel IA-32 and EM64T and AMD64 CPUs.
    SuSE LINUX Enterprise Server 10 for Intel IA-32 and EM64T and AMD64 CPUs.
    SuSE LINUX Enterprise Server 10 for Itanium2 CPUs
    Solaris 9 and 10 for UltraSparc CPUs
    Solaris 10 for AMD64 CPUs
    Red Hat Enterprise Linux 4 and 5 for Intel Itanium2 CPUs.
    Red Hat Enterprise Linux 4 and 5 for Intel IA-32 and EM64T and AMD64 CPUs.
    Oracle Enterprise Linux 4 and 5 for Intel IA-32 and EM64T and AMD64 CPUs.
    MontaVista Linux Carrier Grade Edition Release 4.0 and 5.0 for Intel IA-32, EM64T and AMD64 CPUs.
    HP-UX 11i v2 and 11iv3 for PA-RISC
    HP-UX 11i v2 and 11iv3 for Itanium2
    AIX 5L 5.3 and 6.1 for POWER CPUs
    3.) What is the latest Version in Oracle TimesTen?
    11.2.2.2.0 (http://www.oracle.com/technetwork/products/timesten/downloads/index.html)
    4) Maximum number of rows in a table. 2 Power 28 = 268,435,256 for 32 Bit / (2 power 31-1) = 2,147,483,647 for 64 Bit
    Actually, I couldn't find any information about rows limits for TimesTen tables and I've never faced with this problem.
    Best regards,
    Gennady

  • Filter warning and ascii save error

    Hello,
          I am performing modal
    analysis using a impact hammer, USB NI 9233 cRIO DAQ and Sound and
    Vibration assistant. The steps have been set in Signal express as DAQ
    Acquire =>Trigger=>Filter=> Power spectrum => FRF =>
    Save to Ascii.
        I am facing two problems which I cant
    understand. Inspite of selecting data for saving as an ascii file it
    keeps giving me an error saying data file needs to be selcted. I
    selected the filtered data, FRF, coherence in separate save as ascii
    steps. Also the filter issues me a warning that the triggered data is
    not contiguous. What does this mean? I have selected the option of
    continuous samples in the DAQ Acquire tab. Do I need to change
    something else? I tried using both IIR and FIR filters and it still
    displays the error that Signal is not contiguous.
    Thankyou.
    Solved!
    Go to Solution.

    Hello StuMtu,
    Thanks for your post!
    For the save to ASCII file problem I would say to make sure that you have a path specified in the File Settings Tab of the Save to ASCII/LVM file step. See the picture attached below. Also the warning you are getting about "contiguous" data means that the information that you are sending to the Filter step is not of a continuous Time Stamp Data. I am assuming here that you are only sending the trigger data from the 9233 to the Filter step. So for instance if your event happens 1 second apart then the data going to the filter is not continuous/contiguous. The data going to the filter is continuous but the time stamps do not fall right after the other. This is OK and its still going to filter your data but its just letting you know that your data is not continuous since each block of filtered data does not have a consistent time stamp. Let us know if this clears up your problems or concerns and have a great day!
    Cheers!
    Corby_B
    Attachments:
    SVA save to file.jpg ‏147 KB

  • How to use the user and role API's and where to use it

    Hi All,
    I have configured SSO for my UCM11g. Now my application authenticates through the Oracle SSO login page. Currently it is working with SQL authenticator.
    Now, i have to use LDAP authenticator. when i will configure the LDAP authenticator, i have to use the user and role API's to fetch the user profile information from LDAP. i have got the API's which will be used to fetch the respected information, but i am not getting as where i will write those java programs and how this API will be used in my application. what settings i need to do on it so that application uses the API's. ?
    Please can anyone help me on this.
    thanks,
    Saurabh

    Hi, Mithu,
    Thanks a lot for your help in advance.
    I have carefully read the document: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6b66d7ea-0c01-0010-14af-b3ee523210b5.
    Now, I think I have to set the processor of every actions in every process if I use the GP for processing the workflow.
    I am better to hope that I can set the processor to the role for every actions in every process in the runtime through get the organizational structure in the WDA(webdynpro for java or webdynpro for java). Thus, the customer don't set the processor to the role for every action in every process when runing in the GP.   I don't know how to do this. 
    Whether the function is not supported in the GP? If so, I have to config two organizational structure: in the R/3 and in the Portal. I don't think our customer don't receipt this solution.
    Do you give me some hints? Thanks a lot.  My email: [email protected]
    Thanks again.
    Thanks & Regards,
    Tao

  • Workflow API: adding and accessing file Attachments to a Human Task

    Hi there,
    I am using the Workflow Services Java API (11.1.1) for SOA Suite to access and manipulate human tasks. I would like to be able to access and add file attachments to existing human tasks. I am using the methods provided in the AttachmentType interface.
    When adding an attachment, the problem I am running into is that an attachment does created and associated with the task, however it is empty and has no content. I have attempted both setting the input stream of the attachment, as well as the content string and in each case have had no success.
    I have successfully added and accessed an attachment using the worklist application, however when trying to access the content of this attachment through code I receive an object with mostly null/0 values throughout, apart from the attachment name.
    As the API's are not overly rich in documentation I may well be using them incorrectly. I would really appreciate any help/suggestions/alternatives in dealing with BPEL task attachments.
    Thanks
    The code I am using resembles:
    List attachments = taskWithAttachments.getAttachment();
    for(Object o : attachments){
    AttachmentType a = (AttachmentType) o;
    String content = a.getContent(); +// NULL+
    InputStream str = a.getInputStream(); +// NULL+
    String name = a.getName(); +// Has the attachment name+
    String mime = a.getMimeType(); +// Has the mime type+
    long size = a.getSize(); +// 0+
    Edited by: 855489 on May 2, 2011 4:23 PM
    Edited by: 855489 on May 2, 2011 8:48 PM

    I am also facing the same issue, using 11.1.1.6, anyone managed to solve this?
    Regards
    Venkat

  • What is the purpose of IA32.api plugin and how to disable it.?

    Hello,
    We have an issue with this plugin in our company.
    This plugin is making IE Crash.
    I would like to properly disable this to workaround the issue.
    Questions:
    1°) What is the purpose of this plugin? i heard it's about AutoUpdate, is this true? if so i suppose disabling AutoUpdate should suffice.
    2°) I know the trick to rename the IA32.api file within the plugins folder but it seems like it make Adobe Reader more unstable. So i think this is not a proper way to do it.
    Any help would be appreciated.
    Cheers
    -Benjamin

    Our application uses Internet Explorer with the default PDF viewer as Adobe Reader to display PDFs.  The html just specifies "open file xxx.pdf" and the default viewer is invoked.  This works fine and the user closes the PDF when done and goes on his way.  But we see a lot of errors where our application registers a crash, and when the crash dump is analyzed the crash is below:
          another Module attempted to call the following unloaded Module: IA32.api or AcroPDF.dll
    As I can see in the forums this has been an issue with Adobe reader for several years.  Is there any solution or work around for this?  We are about to lose a major account due to the frequent crashes in Adobe that look as if they came from our application.

  • Java Persistence API + mySQL and East Europe characters

    Hi,
    I use Sun Application Server 9.0 and mySQL 4.1.20 on Linux. When I put data (with jsf form) into my database table everything is displayed correctly until I restart application server (or redeploy my web app). After restarting server non-ascii characters look strange. I suppose that there is a problem with character coding (between apps server and database) but I can't find any solution. I use UTF-8 character coding both in database fields and for displaying jsf pages.
    There are't any problems when I use Derby database for starage data.
    Thanks

    Can you give some more information ?
    Are you using netbeans 5.5 or doing this program standalone and interfacing
    directly with appserver ?
    Can you send a pointer to a gif of the incorrect looking characters ?
    Can you elaborate about putting data using jsf form and some details
    or extract from the code that writes or reads the data ?
    Do the names of your table or columns have the european characters
    in them or is it just the data ?
    Thanks for your help.
    >
    Thanks
    Hi,
    I use Sun Application Server 9.0 and mySQL 4.1.20 on
    Linux. When I put data (with jsf form) into my
    database table everything is displayed correctly
    until I restart application server (or redeploy my
    web app). After restarting server non-ascii
    characters look strange. I suppose that there is a
    problem with character coding (between apps server
    and database) but I can't find any solution. I use
    UTF-8 character coding both in database fields and
    for displaying jsf pages.
    There are't any problems when I use Derby database
    for starage data.
    Thanks

Maybe you are looking for

  • Print probelm in po

    when i use po message print,the function below, call function 'ME_READ_PO_FOR_PRINTING'        exporting             ix_nast        = nast             ix_screen      = ent_screen        importing             ex_retco       = ent_retco             ex_

  • Can't believe it is gone

    It started with an iPhone..... then I saw Frontrow on an iMac...and I was convinced. I changed all PC's, network equipment in the house to Apple. Today we pretty much have everything from Apple - including software etc. I am a total IT gadget freak..

  • Storing PDF output in Opentext and associating with BP

    Hi -  We have installed Opentext doculink and performed all the BASIS configrations succesffully. I would greatly appreciate any advice on how to proceed with the following: * When a PDF is generated using output determination (emailed to a BP) we wa

  • Deleting a movie off of a DVD

    Hi, Apologies if this is a really stooopid question... I have managed to create a movie in Movie HD and got it into IDVD. I have burnt it to a DVD-R, but have now edited the film and want to burn the new version on to the DVD. Do I need to delete the

  • OTD UnMarshal

    I am using a flat file comma seperated otd. I have an input file which have few records which are not comma seperated instead seperated with semi colon. No the unmarshal fails. Is there any way where i can unmarshal the right records leaving those ba