<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: modems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/modems/m-p/3177290#M162271</link>
    <description>Since cu can load the modem with settings each time a call is initiated, I've never tried to see what the settings are.&lt;BR /&gt;However, in /etc/uucp/Dialers there is a list of standard hays commands that can be sent to the modem.</description>
    <pubDate>Thu, 29 Jan 2004 09:28:37 GMT</pubDate>
    <dc:creator>doug mielke</dc:creator>
    <dc:date>2004-01-29T09:28:37Z</dc:date>
    <item>
      <title>modems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modems/m-p/3177285#M162266</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;does anyone have a script to auto detect modems connected to a server. &lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;John.</description>
      <pubDate>Thu, 29 Jan 2004 06:04:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modems/m-p/3177285#M162266</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2004-01-29T06:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: modems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modems/m-p/3177286#M162267</link>
      <description>I haven't tested this so it may need a bit of adjusting but how aboutsomething like&lt;BR /&gt;&lt;BR /&gt;for DEVICE in /dev/tty*&lt;BR /&gt;do&lt;BR /&gt; cu -l $DEVICE dir &amp;lt;&amp;lt; EOF&lt;BR /&gt; +++&lt;BR /&gt; EOF&lt;BR /&gt; [[ $? eq 0 ]] &amp;amp;&amp;amp; echo "$DEVICE looks like one"&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;My memory or how to deal with a modem should you connect might be a bit hayesey (sorry, hazy) and you might need to adjust the devices we are looking at but this might do what you want.</description>
      <pubDate>Thu, 29 Jan 2004 06:26:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modems/m-p/3177286#M162267</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-01-29T06:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: modems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modems/m-p/3177287#M162268</link>
      <description>Mark&lt;BR /&gt;&lt;BR /&gt;what im really after is a script which tests to see if a modem is plugged into the serial port and then communicates with it to find out what its settings are.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Thu, 29 Jan 2004 08:32:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modems/m-p/3177287#M162268</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2004-01-29T08:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: modems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modems/m-p/3177288#M162269</link>
      <description>John,&lt;BR /&gt; &lt;BR /&gt;The idea I was thinking of was to check all the devices and try to connect to them with "cu"&lt;BR /&gt;&lt;BR /&gt;However, echo will do but you would need to introduce a timeout.  If you put the following in a loop, you would get output only if it was a connected modem and that output would be the settings.  If it wasn't it will timeout.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;$DEVICE=/dev/something&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(sleep 2 ; kill $$)&amp;amp;&lt;BR /&gt;#change the ATSO=? to the correct Hayes code&lt;BR /&gt;#for dumping the modem settings&lt;BR /&gt;echo ATS0=? &amp;gt; $DEVICE &lt;BR /&gt;kill $!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jan 2004 09:08:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modems/m-p/3177288#M162269</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-01-29T09:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: modems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modems/m-p/3177289#M162270</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;Due to the variability of some Hayes commands, that might be a bit tricky to implement.  Even different models from one manufacturer report can report their settings back in different ways.&lt;BR /&gt;&lt;BR /&gt;How many different types of modem are you expecting to see?&lt;BR /&gt;&lt;BR /&gt;Kermit has some scripting capability and can perform if/then decisions on returned info (similar to expect.)  There's a good book on Kermit - unfortunately it's not to hand at the moment otherwise I'd give you further details.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren.</description>
      <pubDate>Thu, 29 Jan 2004 09:15:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modems/m-p/3177289#M162270</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2004-01-29T09:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: modems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modems/m-p/3177290#M162271</link>
      <description>Since cu can load the modem with settings each time a call is initiated, I've never tried to see what the settings are.&lt;BR /&gt;However, in /etc/uucp/Dialers there is a list of standard hays commands that can be sent to the modem.</description>
      <pubDate>Thu, 29 Jan 2004 09:28:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modems/m-p/3177290#M162271</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2004-01-29T09:28:37Z</dc:date>
    </item>
  </channel>
</rss>

