Search:

Type: Posts; User: Libpgeak

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    3,353

    Thanks for you reply. But i don't search...

    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...
  2. Replies
    3
    Views
    3,353

    Linux modules, drivers etc

    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...
  3. @ledow Thanks for your reaction. I searched on...

    @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...
  4. Well, I can't jsut open another terminal, because...

    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...
  5. Thanks Salem, 1, 2 & 3. Yes, that is right, it's...

    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...
  6. Raspberry Pi totaly freezes, runs fine on ubuntu laptop

    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....
  7. Replies
    5
    Views
    2,017

    I found out what the problem was: the NTP...

    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!
  8. Replies
    5
    Views
    2,017

    @rags_to_riches Becouse this is the most easy and...

    @rags_to_riches Becouse this is the most easy and moddable way.
  9. Replies
    5
    Views
    2,017

    NTP_time struggels

    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...
  10. Replies
    8
    Views
    2,410

    Yes, I do

    Yes, I do
  11. Replies
    8
    Views
    2,410

    The weird thing is, it still hangs on the...

    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...
  12. Replies
    8
    Views
    2,410

    fread exit problems

    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:
  13. Replies
    4
    Views
    11,785

    Thanks Niara, the accept was the trick =]

    Thanks Niara, the accept was the trick =]
  14. Replies
    4
    Views
    11,785

    There are no firewall errors / blocks. The weird...

    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...
  15. Replies
    4
    Views
    11,785

    Winsock error 10049

    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...
  16. Replies
    3
    Views
    782

    Thanks guys! When I pull the library out...

    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...
  17. Replies
    3
    Views
    782

    Including library's

    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...
  18. Replies
    7
    Views
    1,834

    Get rid of the "file://", Use the right slash and...

    Get rid of the "file://", Use the right slash and duplicate the slashes: localhost\\Users\\Desktop\\CPrograms\\names.txt","r+");
  19. Is there a possibility to swap the integer, shift...

    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..
  20. Replies
    12
    Views
    2,372

    1. Yes, i could do char i; couse it's set in the...

    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...
  21. Replies
    12
    Views
    2,372

    I thought all computers use this sign? Compile...

    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++)
    {
    ...
  22. copy and paste the code between the code tags

    copy and paste the code between the code tags
  23. Replies
    12
    Views
    2,372

    In other words, just always clear the MSB, as I...

    In other words, just always clear the MSB, as I mentioned before...
  24. I'm not opening That. Post it on the forum with...

    I'm not opening That. Post it on the forum with the code tags.
  25. Replies
    12
    Views
    2,372

    The first bit (MSB) from a signed variable is the...

    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...
Results 1 to 25 of 52
Page 1 of 3 1 2 3