scheduling in kermit ? - Protocols

This is a discussion on scheduling in kermit ? - Protocols ; The dialing script worked and now file can be transfered from PC-A to PC-B over GSM network, via GSM modem. NOW: Now i am looking out at the answering computer(PC-B) to work in 2 ways. 1] To be in answering ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: scheduling in kermit ?

  1. scheduling in kermit ?

    The dialing script worked and now file can be transfered from PC-A to
    PC-B over GSM network, via GSM modem.

    NOW:
    Now i am looking out at the answering computer(PC-B) to work in 2 ways.

    1] To be in answering mode throughout:
    This task is done by setting "ats0=1".
    2] To dial out at a regular interval(SCHEDULING....?)
    How to achieve this ?

    The idea is , the answering computer(PC-B) will remain constantly
    in answer
    mode to recieve any incomming calls plus dial out to server after
    every
    30 minutes to upload the file.
    So how will the PC-B be scheduled to dial out after every 30 mins. ?
    with regards
    Vikrant


  2. Re: scheduling in kermit ?

    On 2005-04-23, vikrant.shahir@gmail.com wrote:
    : The dialing script worked and now file can be transfered from PC-A to
    : PC-B over GSM network, via GSM modem.
    :
    : NOW:
    : Now i am looking out at the answering computer(PC-B) to work in 2 ways.
    :
    : 1] To be in answering mode throughout:
    : This task is done by setting "ats0=1".
    :
    : 2] To dial out at a regular interval(SCHEDULING....?)
    : How to achieve this ?
    :
    : The idea is , the answering computer(PC-B) will remain constantly in answer
    : mode to recieve any incomming calls plus dial out to server after every 30
    : minutes to upload the file. So how will the PC-B be scheduled to dial out
    : after every 30 mins. ?
    :
    Something like this:

    set modem type xxx
    set line /dev/ttyS0
    if fail exit 1
    ; (configure modem to disable caller ID feature)

    .interval ::= 30*60 ; Number of seconds in half an hour

    while true {
    .t1 := \v(ntime) ; Current time in seconds since midnight
    answer \m(interval) ; Wait \v(interval) secs for call
    if success {
    (handle incoming call)
    }
    .t2 := \v(ntime) ; New time
    if not > \m(t2) \m(t1) increment t2 86400
    .interval ::= \m(interval) - (\m(t2) - \m(t1))
    if <= \m(interval) 0 {
    (it is time to make a call - use DIAL command)
    .interval ::= 30*60
    }
    }

    The proof is left as an exercise to the reader :-)

    - Frank

+ Reply to Thread