Search:

Type: Posts; User: Theodoor

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    20,733

    Serial Communication Tester for Linux

    I wrote a Serial Communication Tester with graphical interface for Linux:

    Serial Com Tester

    The software is free (from the viewpoint of the software, not the user).

    Have fun.
  2. RS232 serial port library for Linux and Windows (Revised)

    If you intend to write a GPL-licensed, opensource and multiplatform program in C or C++ and you want to use the serial port, look here:

    RS-232 for Linux and Windows

    With this library, you can...
  3. I avoid those issues by applying the GPL-licence...

    I avoid those issues by applying the GPL-licence to all my software.
  4. It uses the built-in functions. It calls the...

    It uses the built-in functions. It calls the respective Linux or windows api depending to the platform in use.
    The reason I posted this, is that there are always new novice-programmers which are...
  5. Timer function library for Linux and Windows

    If you intend to write a GPL-licensed, opensource and multiplatform program in C or C++ and you want to use a timer, look here:

    Timer function code for Linux and Windows

    With this library, you...
  6. I want to remove the last n bytes from a file, no...

    I want to remove the last n bytes from a file, no matter what the content is.

    In the mean time, I found this: File Size - The GNU C Library

    Problem is, truncate() is not portable. (I use GCC on...
  7. How to remove some bytes at the end of a file?

    I need to shorten a big file by removing a couple of bytes at the end of a file.

    Is this possible without (temporary) copying to another file?

    In other words, I want to change the filesize...
  8. Replies
    4
    Views
    15,395

    Consider this: ...

    Consider this:

    http://cboard.cprogramming.com/networking-device-communication/119973-rs232-serial-port-library-linux-windows.html
  9. Replies
    2
    Views
    945

    The problem is solved. I made a misstake...

    The problem is solved.
    I made a misstake somewhere in my program.
    Actually, the program that reads the file is able to see the new arrived data in the file.

    Sorry for bothering.

    Best regards.
  10. Replies
    2
    Views
    945

    Howto update/synchronize an open file?

    Hello everybody,

    This is the situation:

    I have a program that is continuously writing to a file. That works fine.

    I have written a program that opens the same file and reads the content at...
  11. Replies
    1
    Views
    33,603

    Non-blocking getchar()

    Hello,

    Because the standard C library does not provide a non-blocking function to read the keyboard input,
    I decided to modify the lowlevel standard input in order to make the function getchar()...
  12. There is no difference with a serial port because...

    There is no difference with a serial port because the VCP-drivers emulates a serial port.
    Except for that you have to open /dev/ttyUSB0 instead of /dev/ttyS0.
  13. You can use this library for USB-devices as well...

    You can use this library for USB-devices as well in case your USB-device uses a FTDI-chip
    for USB-connection in combination with a VCP-driver (Virtual ComPort).
    Linux has this USB-VCP-driver...
  14. Put the two files in the directory where your...

    Put the two files in the directory where your other C files are.
    Put the following define in the headerfile of the module from
    where you want to use the RS-232 functions:

    #include "rs232.h"
    ...
  15. RS232 serial port library for Linux and Windows

    If you intend to write a GPL-licensed, opensource and multiplatform program in C or C++ and you want to use the serial port, look here:

    RS-232 for Linux and WIN32

    With this library, you can use...
Results 1 to 15 of 15