⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cathandler.html

📁 gsm modem 发送短信 闪信 WAP PUSH开发包
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets PDU operation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jsmsengine/CATHandler.html#setStorageMEM()">setStorageMEM</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the preferred message storage to Memory.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jsmsengine/CATHandler.html#setStorageSIM()">setStorageSIM</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the preferred message storage to SIM.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jsmsengine/CATHandler.html#setVerboseErrors()">setVerboseErrors</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets verbose mode for error reporting.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jsmsengine/CATHandler.html#switchToCmdMode()">switchToCmdMode</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Switches GSM device to command mode.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jsmsengine/CATHandler.html#sync()">sync</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a couple of "AT" commands in order to sync with modem.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jsmsengine/CATHandler.html#waitingForPin()">waitingForPin</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Requests status regarding PIN.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="serialDriver"><!-- --></A><H3>
serialDriver</H3>
<PRE>
protected <A HREF="../../org/jsmsengine/CSerialDriver.html" title="class in org.jsmsengine">CSerialDriver</A> <B>serialDriver</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="log"><!-- --></A><H3>
log</H3>
<PRE>
protected java.util.logging.Logger <B>log</B></PRE>
<DL>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="CATHandler(org.jsmsengine.CSerialDriver, java.util.logging.Logger)"><!-- --></A><H3>
CATHandler</H3>
<PRE>
public <B>CATHandler</B>(<A HREF="../../org/jsmsengine/CSerialDriver.html" title="class in org.jsmsengine">CSerialDriver</A>&nbsp;serialDriver,
                  java.util.logging.Logger&nbsp;log)</PRE>
<DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="sync()"><!-- --></A><H3>
sync</H3>
<PRE>
public void <B>sync</B>()
          throws java.lang.Exception</PRE>
<DL>
<DD>Sends a couple of "AT" commands in order to sync with modem.<br>                Useful with auto-baud-detecting GSM devices.<br>                <strong>***Critical method***</strong>
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="reset()"><!-- --></A><H3>
reset</H3>
<PRE>
public void <B>reset</B>()
           throws java.lang.Exception</PRE>
<DL>
<DD>This command should soft-reset the modem.<br>                Soft-reset is not available for all GSM devices, and the operation is not                 critical.<br>                <strong>***Non-Critical method***</strong>
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="echoOff()"><!-- --></A><H3>
echoOff</H3>
<PRE>
public void <B>echoOff</B>()
             throws java.lang.Exception</PRE>
<DL>
<DD>Sets Echo off.<br>                <strong>***Critical method***</strong>
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="init()"><!-- --></A><H3>
init</H3>
<PRE>
public void <B>init</B>()
          throws java.lang.Exception</PRE>
<DL>
<DD>Other initialization commands.<br>                This is left empty, but you might need to add specific code for your specific modem.<br>                <strong>***Non-Critical method***</strong>
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="isAlive()"><!-- --></A><H3>
isAlive</H3>
<PRE>
public boolean <B>isAlive</B>()
                throws java.lang.Exception</PRE>
<DL>
<DD>Sends an "AT" command and waits for response.<br>                <strong>***Critical method***</strong>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>True if GSM device responded with "OK".
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="waitingForPin()"><!-- --></A><H3>
waitingForPin</H3>
<PRE>
public boolean <B>waitingForPin</B>()
                      throws java.lang.Exception</PRE>
<DL>
<DD>Requests status regarding PIN.<br>                <strong>***Critical method***</strong>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>True if GSM device is waiting for PIN to be entered.
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="enterPin(java.lang.String)"><!-- --></A><H3>
enterPin</H3>
<PRE>
public boolean <B>enterPin</B>(java.lang.String&nbsp;pin)
                 throws java.lang.Exception</PRE>
<DL>
<DD>Enters PIN.<br>                <strong>***Critical method***</strong>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>True if GSM device unlocked. False if PIN is wrong.
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setVerboseErrors()"><!-- --></A><H3>
setVerboseErrors</H3>
<PRE>
public boolean <B>setVerboseErrors</B>()
                         throws java.lang.Exception</PRE>
<DL>
<DD>Sets verbose mode for error reporting.<br>                <strong>***Non-Critical method***</strong>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>True if GSM device accepted the option.
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setPduMode()"><!-- --></A><H3>
setPduMode</H3>
<PRE>
public boolean <B>setPduMode</B>()
                   throws java.lang.Exception</PRE>
<DL>
<DD>Sets PDU operation.<br>                <strong>***Critical method***</strong>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>True if GSM device supports PDU operation.
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="disableIndications()"><!-- --></A><H3>
disableIndications</H3>
<PRE>
public boolean <B>disableIndications</B>()
                           throws java.lang.Exception</PRE>
<DL>
<DD>Disable GSM device originated delivery notifications.<br>                <strong>***Critical method***</strong>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>True if GSM device disabled notifications.
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getManufacturer()"><!-- --></A><H3>
getManufacturer</H3>
<PRE>
public java.lang.String <B>getManufacturer</B>()
                                 throws java.lang.Exception</PRE>
<DL>
<DD>Returns the Manufacturer string.<br>                <strong>***Non-Critical method***</strong>
<P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -