! dial.tbgspoof - for Telebit TrailBlazer Plus in g protocol "spoofing" mode. ! Note that no hangup.tbgspoof is needed, since the TB+ will nicely return ! to the ROM-saved settings when we drop DTR. zero flush ifblind blindwake wakemodem: count ifgtr cantwake 4 send ATQ0\r timeout wakemodem 2000 expect dialnumber OK cantwake: logerr Can't wake modem failed blindwake: count ifgtr dialnumber 4 send AT\r goto blindwake dialnumber: ctime 90000 send ATS50=255S111=30DT dial send \r timeout timeout 0 ifcarr connected expect connected CONNECT expect nocarrier NO CARRIER expect busy BUSY connected: log Trailblazer dialed ok success timeout: logerr No response after dial string failed nocarrier: logerr Modem reported NO CARRIER failed busy: logerr Modem reported BUSY failed