String - 7 bit Ascii

Hi,
I am creating a call logging system with a Java app that will collect the incoming/outgoing calls from a meridian telephone system. My question is this...........
The data from the calls comes in through the COM port, if i collect this and write it to the screen its a jumbled mess, i know the problem but dont know how to implement it, i need to force the text to convert to 7 bit ascii or something like that...
Can anyone point me in the right direction?

If ur sure that the data that ur getting as ascii characters, then u can store these ascii charters in an array of bytes. then u create a string passing this array to constructor, then string will contain the characters for these ascii codes.

Similar Messages

  • Logic operations on a string of bits

    Hi, I have a very simple question that I cannot seem to figure out.  I would just like to perform logic operations (AND, OR, etc.) on 2 strings of bits that are 24 bits long each, however I cannot find in the functions palette a function that acts as a binary constant.  I only see numeric constant and hex functions.  Can somone please let me know where I can find this.  For example, I would like to AND '111111111111111111111111' & '000000000000000000000000'.    
    Solved!
    Go to Solution.

    I think that these bitwise operations should work directly on strings too. Thus I wrote up this idea.  
    LabVIEW Champion . Do more with less code and in less time .

  • Sending string of bits from PXI to NAS

    Good evening, I expose my problem:
    I should send a string of bits from PXI to a memory type NAS, using the FTP protocol. I do this every 0.72 ms, then use a timedloop with a frequency of 1MHz. But implementing a timer sending time is very different from what I expect. My question is whether this problem is due to the FTP put buffer.vi that takes more time to send the string.
    look your response
    Attachments:
    Immagine.jpg ‏178 KB

    I Dont think a FTP server is meant for being accessed every 0.72s
    I would use the queue functions built into labview for buffering the data and access the FTP server at a much lower rate, every minute or every hour...
    Regards Claus

  • Confirmed Bug in Siri - Texting a character not found in 7-bit ASCII Table Causes SMS to Fail

    I am 99.9% certain I have singlehandedly discovered and solved a bug in Siri that causes SMS messages to fail (without a failure notice, i.e. red exclamation mark). This problem confounded me for several weeks. (Note: This issue does not affect iMessages.) After four hours of support phone calls to AT&T and Apple, 2 replacement iPhones (set up as new iPhones, and not restoring the backup), a SIM card replacement, a reprovisioning of my entire account with AT&T, and a very upset girlfriend who was understandably skeptical that I was really texting her when I said I was, I had no solution in sight, and my SMS woes persisted. I ended up solving the problem on my own through trial and error.
    THE PROBLEM:
    When I dictate an SMS message, if I dictate the word "elipsis" it rightly interprets what I have said as "..."
    However, as of today's date, Siri interprets "elipsis" an an extended ASCII version of "...", a version where the elipsis is actually one character and not three separate periods. The one character version of elipsis is not found in 7-bit ASCII.
    If you try to text a character that is not 7-bit ASCII, your text message will not be received by the recipient, regardless of the recipient's carrier or phone, and you will not get a failure notice.
    If you have any doubt whether Siri has interpreted "elipsis" as one character or as three, try deleting it. If the entire elipsis deletes simply by depressing delete one time, you have generated the single character (non 7-bit) elipsis, a character that cannot be texted, and which will "mysteriously" cause your text to fall into an abyss.
    THE SOLUTION:
    It seems that the permanent solution is that the Siri servers or the iOS needs to be reprogrammed only to respond with 7-bt ASCII characters when the user depresses the Siri button to dictate an SMS message.  In the meantime, until Apple solves this probem, the user should refrain from dictating any punctuation that will cause Siri to respond with a non 7-bit ASCII character.
    (Apple, I want a gift certificate for solving this problem.)

    Too bad Apple will never see this post since this is a user-to-user site.
    http://www.apple.com/feedback/iphone.html

  • DS 6.3 uid 7-bit ASCII?

    My docs state that a uid must be 7-bit ASCII for version 5.x. I have long forgotten why I required this and am wondering what are the uid syntax constraints or issues in version 6.x.

    The history behind the 7-bit check plugin is that some products like Netscape Messaging server (way back in time) would put the 8bit uid in the email headers and this was ofcourse against the RFC standards. So to make life simple all around, the 7-bit check plugin prevents non-ascii chars in the uid.
    The directory server itself has no problems if you have non-ascii values in the uid as long as your apps can deal with it.

  • String Literal for ASCII Encoding

    I need to know what is the STRING LITERAL for ASCII CHAR. ENCODING in Java (as ISO_LATIN-1 has "8859_1").
    Thanks in Advance!

    import java.nio.charset.Charset;
    import java.util.Set;
    import java.util.Iterator;
    class Test {
         void m(String name) {
              Charset s = Charset.forName(name);
              System.out.println("display name= " + s.displayName());
              Set aliases = s.aliases();
              Iterator it = aliases.iterator();
              while (it.hasNext()) {
                   String x = (String)it.next();
                   System.out.println("alias= " + x);
         public static void main(String[] args) {
              if (args.length > 0) new Test().m(args[0]);
    }display name= US-ASCII
    alias= us
    alias= ISO_646.irv:1991
    alias= ANSI_X3.4-1968
    alias= iso-ir-6
    alias= 646
    alias= ISO646-US
    alias= cp367
    alias= ANSI_X3.4-1986
    alias= csASCII
    alias= ASCII
    alias= iso_646.irv:1983
    alias= IBM367

  • How do I process serial port strings as bits

    In response to my commands, my instrument is sending bytes to my serial
    port. In one instance, 2 bytes are received. I want to treat these 2 bytes
    as a group of 16 bits.
    The VISA and Compatibility Serial functions return these bytes from the
    serial port to Labview clearly labelled a "string".
    Everything I can find in the way of Labview functions and .vis don't want to
    do bit twiddling, bit swapping, and bit dropping, with "string" data.
    I thought "hex string to number" could be used here, but I can't find a way.
    The 2 Bytes in question can be represented as hex, but the data are not the
    ASCII codes for the hex representation of a binary number, they are the
    binary number. This "hex string to number" seems to want ASCII c
    odes.
    You can feed a hex number typed into a "control" box wired into "hex string
    to number" and you get a meaningful number. You can feed the 2 bytes from
    the serial port into an "indicator" set to read in hex and you get a hex
    number that is a correct representation. But that is Labview handing them
    around to itself. I need to get my "hands" on them.
    I can't feed those same bytes that show up as a correct hex representation
    in an indicator into the "hex string to number" or anything else, so far,
    and get a number that is useful for further processing.
    I thought "variant to data", but I can't find enough reference material to
    understand how to use it. A boolean array seems like a bit of a weird
    approach, so I thought I'd ask before I looked into that.
    I'm used to dealing directly with binary numbers on the processor stack, I
    call them whatever I want, and turn them into anything I feel like.
    I'm sure I'm staring the solution in the face, but I can't find any way to
    persuade
    Labview to treat this "string" data as 16 bits.
    I've got the 16 bits, which is better than not having them, but I don't have
    much hair left.

    duh, well I finally discovered the "Unflatten from String" function. A guy
    just feeds in the bytes he's collected from his serial port that Labview
    thinks are a "string", and out come lovely little unsigned 16 bit numbers,
    or whatever other type of number he wants to turn the bytes into. And there
    are great little bit twiddlers available after that, like "swap bytes", and
    you can mask out bits with the logic operators, why this is fun. There's
    nothing like being a moron...... fly me to the moon...................
    "David Lewis" wrote in message
    news:[email protected]..
    > The two bytes would come from a serial port read.vi in Labview, classed as
    a
    > string. For instance, D3 and 02. The output wou
    ld swap the two bytes,
    i.e.
    > to 02 and D3, consider the two swapped bytes as 16 bits, drop the six most
    > significant bits, and output the ten bits that are left as an integer
    > classed by Labview as some kind of number, not a string.
    >
    > Your example StringToBits_Converter.vi I found on the ni.com site
    > unfortunately gives an error message and refuses to open on my system
    saying
    > it comes from a newer version of Labview 6 than I am running. Mine says
    > 6.0.1b3. Thank you very much anyway.
    >
    > "FightOnSCTrojan" wrote in message
    > news:[email protected]..
    > > In another words, you want to create a VI in which the input is 2
    > > strings (i.e. AB) and the output is the converted array bits (e.g.
    > > 1010101010101010)?
    >
    >

  • Format into string 16 bit signed integer

    Is there any format specifier string for "Format into string", whereas the result is an I16 string?
    My problem is when I use "%d" and the input string is 65535, the result string should be "-1".
    Solved!
    Go to Solution.

    Are you trying to get an integer out of an ASCII string (Scan from String) or turn an integer into a string (Format into String).  You title and question seem to contradict each other.
    Assuming you are trying to scan from string, it looks like you need to scan into a U16 and then use a conversion bullet to turn it into an I16.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Scan I16.png ‏11 KB

  • Verify if string is valid ASCII

    I have a string and I want to verify if it contains only valid ASCII, for example, if the string contains characters like the right allow, then it be should reject ! can anyone help? thanks!

    What's the in the db? A series of bytes from a different character set? (One which, when displayed on a terminal (which may or may not understand the character set), displays a right arrow?)
    Perhaps the ultimately correct solution is to use java.io.InputStreamReader, constructing it denoting the correct character set.
    Or, to put data into the database using OutputStreamWriter, again specifying the correct character set.
    Then you catch CharConversionExceptions. That's how you detect bad input.
    Or, do the same kind of thing using String.getBytes and String constructors.

  • Hex string conversion to ASCII Character string

    I have a Hex String 494A4B4C and want this string to get converted in ASCII Character String. IJKL. How to do in Labview 8.5.

    Here is a screenshot of the described code:
    Ton
    Message Edited by TCPlomp on 30-09-2009 01:35 PM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Example_VI_BD.png ‏3 KB

  • String to Packed ASCII conversion

    Hi,
    Can anyone provide any examples or Algorithm to convert 'ASCII' to 'Packed ASCII'
    Packed ASCII format is used in HART protocol
    Thanks.

    Hi,
    Packed ASCII is noting but a data compression technique.
    HART makes limited use of data compression in the form of Packed ASCII.  Normally, there are 256 possible ASCII characters, so that a full byte is needed to represent a character.  Packed ASCII is a subset of full ASCII and uses only 64 of the 256 possible characters.  These 64 characters are the capitalized alphabet, numbers 0 through 9, and a few punctuation marks.  Many HART parameters need only this limited ASCII set, which means that data can be compressed to 3/4 of normal.  This improves transmission speed, especially if the textual parameter being communicated is a large one.
        Since only full bytes can be transmitted, the 3/4 compression is fully realized only when the number of uncompressed bytes is a multiple of 4.  Any fractional part requires a whole byte.  Thus, if U is the number of uncompressed bytes, and T the number of transmitted bytes; find T = (3*U)/4 and increase any fractional part to 1.  As examples, U = 3, 7, 8, and 9 result in T = 3, 6, 6, and 7.
        The rule for converting from ASCII to Packed ASCII is just to remove bits 6 and 7 (two most significant).  An example is the character "M".  The full binary code to represent this is 0100,1101.  The packed binary code is 00,1101.  The rules for conversion from packed ASCII back to ASCII are (1) set bit 7 = 0 and (2) set bit 6 = complement of packed ASCII bit 5.
        Note that, with some exceptions, HART Slaves don't need to do the compression or know anything about the compression.  They simply store and re-transmit the already compressed data.  Again, this is an instance where the more difficult software is placed in the device (Master) that is more capable of dealing with it.
    Thanks and Regards
    Himanshu Goyal
    Thanks and Regards
    Himanshu Goyal | LabVIEW Engineer- Power System Automation
    Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
    It Only gets BETTER!!!

  • Check either String data is ASCII or Unicode

    Hi,
    How can we check String(Array of Characters) data is ASCII or Unicode using java.
    Please reply immediately.
    Thanx in advance.

    Hi,
    How can we check String(Array of Characters) data
    is ASCII or Unicode using java.
    Please reply immediately.that's not the correct way to ask :P
    >
    >
    Thanx in advance.

  • ASCII in a String to Integer

    Hello
    I have a String in my programm witch is containing numbers an mathematical operators in ASCII-Code. I read the numbers and operators from the Keyboard before. How can I convert the ASCII-code back into numbers to do arithmetic operations with them?
    Thanx
    Frank

    That isn` t what I am looking for. The value in the String is an ASCII-Code of a number like "1" or "2". I would like to convert this ASCII-Code back to the numbers or symbols or something, so that i can work with the richt numbers.
    Thanx
    Frank

  • Bit-String to Hex

    Hello
    I've got following question: I have a STRING of bits e.g. "01001010". Is there any function to convert it to Hex - code?

    See the attached code. I wasn't sure by what you meant by a "STRING of bits" so it shows two different things.
    Remember also that the distinctions between binary, decimal and hex are only significant to human beings reading the numbers--computers don't really care. An unsigned 8-bit value is an unsigned 8-bit value, regardless of how it's represented for human consumption.
    Note that in a array the LSB is the first element. In a string, the LSB is the far right-hand digit.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    formatting.vi ‏18 KB

  • Char to bit string???

    Hi everyone,
    I have a small problem and I was wondering if anyone can help. I want to convert a char value to a string of bits. I have had no problem doing it with an integer but I "keep reaching for the Aspirin" when it comes to the char. Any ideas? I am sure I am doing something stupid - it should be relatively simple.

    Here's the general idea:private static String toBitString(char c) {
        return Integer.toBinaryString(c);
    private static String toFixedLengthBitString(char c) {
        return Integer.toBinaryString(c | 0x10000).substring(1);
    }

Maybe you are looking for

  • How can I make CONTAINS query work for a date range

    In either 9i or 10g (eventual). I have a CONTEXT index that contains multiple columns from multiple tables and using a USER_DATASTORE. E.g., I have names that come from 3 different table locations and dates that come from 4. I can index them fine but

  • Xcelsius 2008 Dashbord not working

    Hi, We have BI Dashboards integrated to CRM portal via OpenDocs and using flash variables in Dashboard designer. Current version details are: BO XI 3.1 SP6 (earlier version was BO XI 3.1 SP3), and Xcelsius 2008 build on top of QAAWS>BO Universe>BEx q

  • Computer monitor problem

    I have started having problems with the monitor on my desk top.  I can run all operations in safe mode then when it goes to standard run mode, the screen goes black.  During startup I notice that there is a screen full of little bullet looking things

  • ABAP-HR Experts

    Hi ABAP-HR Experts, Kindly provide me some frequently asked interview questions in ABAP-HR. please do the needful. Thanks in Advance ..Experts Regards, Nagamani.

  • Itunes 12 doesn't display tv episode information?

    I mean I guess I'm ok with the new design of iTunes but seriously...is there no way to display the information from the tv episode I have selected in my library?  Any way to change it so it doesn't show EVERY SINGLE EPISODE in a list (for tv shows li