06-08-2009
Quote:
Originally Posted by
reborg
If I understood this correctly you are getting messages from an embedded device presumable in some kind of encoded struct but you are not actually coding on/for the embedded device.
That's right.
Quote:
Originally Posted by
reborg
If you are post-processing this on an "normal" PC you should just be decoding the messages and using the decoded content to do your processing. For example if you have an 8 bit float of some kind coming out from the device you would convert that and use a standard 32 bit float on your pc and ignore the fact that the data type is much bigger than you actually need.
I'm not actually processing the data. I just have to display them (for analyzing),
but still I need a variable to contain them when I read the data from the file.
Quote:
Originally Posted by
reborg
Likewise is you need to send the information back to the device, you would need to reencode the message into a sequence of bytes and send that.
Adapting/converting the messages rather than reimplmenting the basic functionality will give you much better mileage.
I don't need to resend it anywhere. I just need to contain them, and eventually display them.
I'm actually having the same problem with the integer being 128 bits long. stdint.h is
only able to handle up to uint64_t .
Thanks,
S.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
As a formem unix newbe
I Just wanted to tell you about this cool site for all you confused people.
If you need to support more than one unix type:
Use this one. It's a life saver.
http://www.unixguide.net/unixguide.shtml
here (4 Replies)
Discussion started by: sunbird
4 Replies
2. Shell Programming and Scripting
Hello there,
i just want to know what are the different type of shells and the main difference betwee them. The problem is that if you try to search over the net you will find a lot of information and hence you will have no enough time to read all of them.....Anyone can help with this?? (1 Reply)
Discussion started by: charbel
1 Replies
3. Shell Programming and Scripting
Can one string type variable changed into the date type variable. (1 Reply)
Discussion started by: rinku
1 Replies
4. Programming
Dear colleagues,
One of my friend have a problem with c code. While compiling a c program it displays a message like
"array type has incomplete element type". Any body can provide a solution for it.
Jaganadh.G (1 Reply)
Discussion started by: jaganadh
1 Replies
5. Solaris
how to get the raid type of a mount if I am using solaris disksuite?
thanks (1 Reply)
Discussion started by: melanie_pfefer
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Where can I find the encoding type in a unix server ?
Thanks in advance !!! (1 Reply)
Discussion started by: risshanth
1 Replies
7. UNIX for Dummies Questions & Answers
I would like to print value of key generate like this....
key_t k = ftok(".",'c');
printf("key is %d \n" , k);
Is there other way to print this type. I dont think I am getting right output which is
key is 1662074913 (shouldn't it be 6362074913) since 'c' is 63 in hex (ascii table).... (2 Replies)
Discussion started by: joker40
2 Replies
8. Windows & DOS: Issues & Discussions
Hello All
Is there a way I can find out the type of RAM (DDR1 or DDR2 or DDR3), I'm using withoout opening the cabinet?
Any Windows command?
Thanks in advance. (5 Replies)
Discussion started by: tenderfoot
5 Replies
9. Programming
In C++, how can I change the type with another name
For example
How can I declaring an object real which would be the same as declaring it float (5 Replies)
Discussion started by: kristinu
5 Replies
LEARN ABOUT MOJAVE
platform::shell
platform::shell(n) Tcl Bundled Packages platform::shell(n)
__________________________________________________________________________________________________________________________________________________
NAME
platform::shell - System identification support code and utilities
SYNOPSIS
package require platform::shell ?1.1.4?
platform::shell::generic shell
platform::shell::identify shell
platform::shell::platform shell
_________________________________________________________________
DESCRIPTION
The platform::shell package provides several utility commands useful for the identification of the architecture of a specific Tcl shell.
This package allows the identification of the architecture of a specific Tcl shell different from the shell running the package. The only
requirement is that the other shell (identified by its path), is actually executable on the current machine.
While for most platform this means that the architecture of the interrogated shell is identical to the architecture of the running shell
this is not generally true. A counter example are all platforms which have 32 and 64 bit variants and where a 64bit system is able to run
32bit code. For these running and interrogated shell may have different 32/64 bit settings and thus different identifiers.
For applications like a code repository it is important to identify the architecture of the shell which will actually run the installed
packages, versus the architecture of the shell running the repository software.
COMMANDS
platform::shell::identify shell
This command does the same identification as platform::identify, for the specified Tcl shell, in contrast to the running shell.
platform::shell::generic shell
This command does the same identification as platform::generic, for the specified Tcl shell, in contrast to the running shell.
platform::shell::platform shell
This command returns the contents of tcl_platform(platform) for the specified Tcl shell.
KEYWORDS
operating system, cpu architecture, platform, architecture
platform::shell 1.1.4 platform::shell(n)