Thanks for you reply. But i don't search solutions(I already found a several as you can read). What are the big advantages and disadvantages of each methode?
Currently Pipes seems in combination...
Type: Posts; User: Libpgeak
Thanks for you reply. But i don't search solutions(I already found a several as you can read). What are the big advantages and disadvantages of each methode?
Currently Pipes seems in combination...
Dear Users,
I'm currently on a monitoringproject, where I work with a linux monitor box. I monitor several RS-232 devices and everything is going really well. The problem is: how can I make my...
@ledow Thanks for your reaction. I searched on the internet for this weird thing but you wan't find that much crash story's, perhaps people love it to much... I use the USB port for a FTDI chip, and...
Well, I can't jsut open another terminal, because when it freezes, the whole Pi is totaly gone. I would not react on the mouse / keyboard, so there is no way to type the kill command. That is the...
Thanks Salem,
1, 2 & 3. Yes, that is right, it's not the most beautiful code I ever made.
4. valgrind is a memory checker? I thought when you do something nasty, you will get a segmentation...
Dear users,
I've got a problem witch is driving me crazy. I have a RS-485 connection with a platform. I use a FTDI chip in my usb port to connect to it. I get the data with open, read and write....
I found out what the problem was: the NTP timestamp is 64 bits. So you need a long long unsigned int. Then you take the time, and add the 2208988800. after this, bitshift 32 places and done!
@rags_to_riches Becouse this is the most easy and moddable way.
Dear users,
[platform: Ubuntu]
I have a program witch collect information from a solar inverter. The C program makes a json data file, and a shell script send this to a server with a curl...
Yes, I do
The weird thing is, it still hangs on the read(and there is nothing printed). I made the code a litlle diffrent to this:
printf("writing\n\r");
fwrite(output, 1, 9, ofp);
/* Read...
Dear programmers,
I'm working on a program that connects a FDTI device in Linux. I open the connection with:
PRS485 = fopen("/dev/ttyUSB0", "r+");
Then I send data with:
Thanks Niara, the accept was the trick =]
There are no firewall errors / blocks. The weird thing is 127.0.0.1 gives a direct "done" message, but there is no client running...
Dear programmers,
i'm trying to make a internet connection in a C program using Winsock. I found a great tut (Programming Windows TCP Sockets in C++ for the Beginner - CodeProject) but everything...
Thanks guys! When I pull the <math.h> library out of it, the file doesn't shrink down. So I think the linker is smart enough. @anduril462 There is in this project no OS included, becouse I'ts a DSP...
Dear programmers,
I've made a signal generator on a ARM processor. In the sourcecode I include <math.h> so I can use the sin() function. This is the only function I use from math.h Does the...
Get rid of the "file://", Use the right slash and duplicate the slashes: localhost\\Users\\Desktop\\CPrograms\\names.txt","r+");
Is there a possibility to swap the integer, shift it left, and watch the carry flag? That's the most fancy way i can imagine...
EDIT: Why don't use the parity flag..
1. Yes, i could do char i; couse it's set in the for loop, but that's no mistake
2. It's a char witch I print as a decimal. But the code in it is still decimal, so this is not a mistake and works...
I thought all computers use this sign? Compile and run the code below, than you see all computers work like this...
int main (void)
{
char i=0;
for(i=0; 1; i++)
{
...
copy and paste the code between the code tags
In other words, just always clear the MSB, as I mentioned before...
I'm not opening That. Post it on the forum with the code tags.
The first bit (MSB) from a signed variable is the indicator. When this bit is set, the number is negative. Otherwise, it's positive. If you don't need this bit, you can clear it with the logic...