Search:

Type: Posts; User: carlyn

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    3,813

    how if no... can it be more simple than that?

    how if no... can it be more simple than that?
  2. Replies
    8
    Views
    3,813

    yes... actually i have this device that go under...

    yes... actually i have this device that go under testing. so each time, i will need to manually change the time and date of that device to syn. with my pc local time. but indeed of using local pc...
  3. Replies
    8
    Views
    3,813

    let say now I have a pc that connecting to a...

    let say now I have a pc that connecting to a server. my pc's time is 10 Jan 2008 whereas the server's time is 12 Jan 2008. So now I want to read the time from server.
  4. Replies
    8
    Views
    3,813

    read the server time

    how can a system that connected to server can be set to the same exactly same as the server? normally that a program run at the local system, we would be able to read from local system (the time we...
  5. how to program fft to plot a frequency domain?

    if i have a file conatains 1,000 samples of a waveform (10,000* 0.1 =1,000)samples. And i am supposed to perform FFT on this waveform and plot its frequency domain. I have no idea where i should...
  6. Replies
    2
    Views
    2,654

    save data in array

    if i was reading from a text file, and would want to save the word in to array. how should i do this?


    char *buffer[]={"aa", "bb", "cc", "dd", "ee", "ff"};

    this is hard coded in the program,...
  7. Replies
    6
    Views
    2,679

    i understand that it just a cable. but imagine, i...

    i understand that it just a cable. but imagine, i have this pc which connected to a server through cat 5 cable and my program will be running in that particular pc to detect when the server is down....
  8. Replies
    6
    Views
    2,679

    detect connection through cat5

    hi,
    does anyone know how i could detect the bit (ie tx and rx) on cat5 cable? or any other ways that i could detect the connection to a sever?
    thanks
  9. Replies
    5
    Views
    2,885

    i'm not quite sure that whether this can check...

    i'm not quite sure that whether this can check the power...

    ioctl(ups_fd, TIOCMBIS, &dtr_bit);
    while(1){
    ioctl(ups_fd, TIOCMGET, &flags);
    if( flags & TIOCM_CAR) //DCD
    {
    ...
  10. Replies
    5
    Views
    2,885

    how about linux?

    how about linux?
  11. Replies
    5
    Views
    2,885

    detect power supply

    previously i was writting a code to ping a websever to check if the server was down. and now from the program i will need to check if the power supply to a server is down, if it was, the UPS will be...
  12. Replies
    3
    Views
    2,133

    gethostbyname in ping

    i'm now writing a program to ping a website


    if((he=gethostbyname("www.yahoo.com"))==NULL)
    {
    call();
    }]

    and i'm using the code above to get the host ip and then send icmp to with another...
  13. Thread: ping website

    by carlyn
    Replies
    3
    Views
    3,037

    ping website

    if i ping a website and the web server is down, i will get a response like the above. however, it took like 16 seconds to get the message, anyone know why?
  14. Replies
    13
    Views
    7,622

    it works properly now. i guess i need to set the...

    it works properly now. i guess i need to set the serial port each time i reset the modem or restart the pc. :)
    thanks everyone
  15. Thread: Enter KEY

    by carlyn
    Replies
    14
    Views
    2,713

    #include int main(){ char...

    #include <stdio.h>
    int main(){
    char sen[20];
    int i=0;
    for(i=0; i<20; i++){
    scanf("%c",&sen[i]);
    }
    while (i<=20 && i>=0){
    ...
  16. Replies
    13
    Views
    7,622

    bzero (buffer, sizeof(buffer)); read(fd,...

    bzero (buffer, sizeof(buffer));
    read(fd, buffer, sizeof(buffer));
    strcpy(buffer, "AT+CMGS =\"+60125649001\"\r\nhello\n");
    buffer[strlen(buffer)+1] = '\0';
    ...
  17. Replies
    13
    Views
    7,622

    i have get the modem to sms out, but some coding...

    i have get the modem to sms out, but some coding that i not really understand why after i off the modem n reset it, the 1st command that i sent through will not be responsed?
    strcpy(buffer,...
  18. Replies
    13
    Views
    7,622

    thanks thanks... i've got it to work!!! i need a...

    thanks thanks... i've got it to work!!!
    i need a <ctrl-z> to send the message out :)
  19. Replies
    13
    Views
    7,622

    i am actually writing AT commands to gsm, like...

    i am actually writing AT commands to gsm, like the following
    write (fd, "AT+CMGS =\"+60125649001\"\r\nhello\n" ,40);
    and i need <ctrl-z> to send out the message. however i need to hardcode this...
  20. Replies
    13
    Views
    7,622

    fd= open(MODEM_DEV, PARAMS); i am connecting...

    fd= open(MODEM_DEV, PARAMS);

    i am connecting to gsm modem
    so basically i write to fd, but how i could send ascii number as ascii number and not string?
    any command or function that i need to use?
  21. Replies
    13
    Views
    7,622

    how to send ASCII to modem?

    does anyone know how i could send ascii to terminate my moderm?
    i want to hard code <ctrl-Z> and i have found the ASCII of Ctrl-z, but how could i write this ASCII to the modem socket?
  22. Thread: read file

    by carlyn
    Replies
    3
    Views
    1,062

    Thanks for pointing out the feof. the file is...

    Thanks for pointing out the feof.
    the file is containing all the printable char and is saved in openoffice writer. and my program trying to read the contain, but couldn't.
  23. Thread: read file

    by carlyn
    Replies
    3
    Views
    1,062

    read file

    How can i read file in other format
    so far i could only read *.txt, *.dat with file pointer
    file = fopen("test.txt","rb"); /*this is how i open the file...
    while(!feof(file))...
Results 1 to 23 of 23