[ Date Index ]
[ Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
Re: [LUG] Checking modem status
- To: "list@xxxxxxxxxxxxx" <list@xxxxxxxxxxxxx>
- Subject: Re: [LUG] Checking modem status
- From: Dan Dart <dandart@xxxxxxxxxxxxxx>
- Date: Wed, 12 Jun 2013 21:48:48 +0100
- Delivered-to: dclug@xxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=KcUKbNOwx5XX9OumiLhq2SvslmpkNe9aCNrMDApL76c=; b=df9ugHYAiRcxukRmfCNfEgMN4IvfZ2n5pNlcSl3lZF3y2FJa5JXVrRWrV62GrBXPbL U6ZSYhsu1/NbdAp5nZfFA1gMl4rsXiBAxlQfffjQpJ3etzrY2Bs5a45DkRgij+/H07Nv hoX7rmdIJO3KL2WCxiUo9m+zig83saazPPgHi98TDfZytOhDOF8qv5X7vqchXIpLYBJh DeZPznaUyybww2N5fesLaUpyiNY3DGqLFDme/VFWOTBUt1hceIY7Fdh7xiqVMk0ZAody Zi3FsulaSMMlNFSocJC9P0d9kp774r+Cn7qqYhYT6MNetWg5uFdCKrLLGEQ+L/qgaDYM CfyQ==
I'd have thought that if you used "expect" with a serial program that
redirects /dev/modem to stdout and stdin - would you not get the
required result?
Something like:
spawn [serial program]
send "OK"
expect "AT"
Hope that's some help.
--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq