Search Result

Collapse
8 results in 0.0039 seconds.
Keywords
Members
Tags
hex
  •  

  • Filter and convert hex characters received through a serial port into keystrokes

    I am developing an RFID-based timing system for timing cycling races. Currently have an application which was written for manual entry of race numbers using the keyboard. The RFID reader passes hex data to the PC through a serial or TCP port. I need to convert the received data into meaningful race numbers and then transmit these numbers to the app as keystrokes. i.e 0004, or 0005, etc. followed by a comma and "ENTER"
    The problem...
    See more | Go to post

  • in Embedded C, how to convert a Returned Hex value in the form of “Unsigned Char”

    We are writing a code for I2C interface,
    where we are reading a 16 bit Hex number as two 8 bit Hex MSB and LSB, and we are returning these values as "Unsigned Char".

    we want to concatenate these MSB and LSB "char" values, and finally we need one "Integer" value for our further processing.

    for example: the following 2 methods are returning one "Unsigned Char" value, each...
    See more | Go to post

  • dlite922
    started a topic How to represent HEX in Oracle?

    How to represent HEX in Oracle?

    With regular decimal numbers you can just write them in. With hexadecimal I tried using 0x### but it didn't help.

    Here's how i'm temporarily doing it:

    Code:
    nvl(flags,dec2hex(0))
    flags field is a RAW data type.

    silly right? Just to get a hex number?

    There's got a better way. Care to share?

    Thanks,



    Dan
    See more | Go to post

  • Hugo Andrade
    started a topic How to extract jpg image from hex?
    in C

    How to extract jpg image from hex?

    I want to extract the jpg image from an Hex file. The hex file comes from a serial camera that outputs a hex stream in the serial port. I need to reconstruct the image.

    The output of the camera is attached in the text file.
    the code I'm using reads the hex values and convert them to ASCII and save the file as a .jpg.

    When I try to open the "picture.jp g" with Photo Editor it reads the start FFD8 correctly...
    See more | Go to post

  • kimmer
    started a topic Editing an 8 Character Hexadecimal Field in a Form

    Editing an 8 Character Hexadecimal Field in a Form

    I am designing a form for a data entry function where two fields that are entered are hex (8characters). I want to edit this field for valid hex numbers. How do I do this?
    See more | Go to post

  • MrL0co
    started a topic 4-byte char from hex to float
    in C

    4-byte char from hex to float

    he there,
    I am trying to read out a .md3 file.
    i am stuck on a point where i have to convert a 8-bit hexedecimal char to a float.
    and change it from little endian to big endian

    this is how far i got

    Code:
    	unsigned char tmp[4];
    	f32 test;
    
    	fread(&tmp, 1, 4, f);
    	test = bitshiftf32(tmp);
    
    f32 bitshiftf32(unsigned char val[4]) {
    	return val[0]|(val[1]<<8)|(val[2]<<16)|(val[3]<<24);
    ...
    See more | Go to post

  • assigning 64-bit hex values to unsigned long variables

    I'm having a problem with assigning 64-bit hex values to unsigned long variables in MS VS2005 c++ compiler.

    Code:
    unsigned long Number;
    Number = 0x1000000000000000UL;
    After this declaration and assignment, the value in Number is always 0. However, if the hex value is 0x0000000000000 001, then the value is 1 as expected. It seems like the compiler is truncating the most significant 32 bits. How can I make this wor...
    See more | Go to post

  • Sudhee
    Guest started a topic Declaring Hex in Vb.net
    in .NET

    Declaring Hex in Vb.net

    private readonly Guid _tagGuid1 = new Guid( new byte[] {0x5F, 0x4D, 0x69,
    0x63, 0x68, 0x61, 0x65, 0x6C, 0x20, 0x53, 0x74, 0x75, 0x61, 0x72, 0x74, 0x5F
    } );

    The above code is declaration of hex in c#. How to declared similary array
    of hex values in Vb.net ?

    Thanks for the help
    Sudheendra...
    See more | Go to post
Working...