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

📄 port.html

📁 手机短信编程的源代码
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><!--JBuilder QuickDoc-->
<HEAD>
<TITLE>Class smspack.Port</TITLE><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
</HEAD>
<BODY>

<H2>
<FONT SIZE="-1">smspack</FONT>
<BR>Klasse Port</H2>
<DL>
<DT>class <B>Port</B>
</DL>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF"><TD COLSPAN=1><FONT SIZE="+2">
<B>Methoden-Detail</B>
</FONT></TD></TR></TABLE>

<H3>open</H3>
<PRE>
public static void <B>open</B>()</PRE>
<DL><DD>open the connection via the serial line<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Throws:</B><DD><CODE>Exception</CODE> - </DD>
</DL>
<HR>

<H3>sendAT</H3>
<PRE>
public static String <B>sendAT</B>(String&nbsp;atcommand)</PRE>
<DL><DD>sends an AT command to ME and receives the answer of the ME<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Parameters:</B><DD><CODE>atcommand</CODE> - AT command for the mobile phone</DD>
<DT><B>Returns:</B><DD>answer string of the ME</DD>
<DT><B>Throws:</B><DD><CODE>java.rmi.RemoteException</CODE> - </DD>
</DL>
<HR>

<H3>write</H3>
<PRE>
public static void <B>write</B>(String&nbsp;s)</PRE>
<DL><DD>write a string to the output buffer<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - string for the serial output buffer</DD>
<DT><B>Throws:</B><DD><CODE>Exception</CODE> - </DD>
</DL>
<HR>

<H3>write</H3>
<PRE>
public static void <B>write</B>(char[]&nbsp;s)</PRE>
<DL><DD>write a character to the output buffer<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - character for the serial output buffer</DD>
<DT><B>Throws:</B><DD><CODE>Exception</CODE> - </DD>
</DL>
<HR>

<H3>writeln</H3>
<PRE>
public static void <B>writeln</B>(String&nbsp;s)</PRE>
<DL><DD>write a string with CR at the end to the output buffer<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - string for the serial output buffer</DD>
<DT><B>Throws:</B><DD><CODE>Exception</CODE> - </DD>
</DL>
<HR>

<H3>read</H3>
<PRE>
public static String <B>read</B>()</PRE>
<DL><DD>receives a character string from the serial line<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Returns:</B><DD>received character string from ME</DD>
<DT><B>Throws:</B><DD><CODE>Exception</CODE> - Remark: Some mobile phones don't send one byte immediate after the other byte to the PC. Thus it is necessary to check (about) 5 times after a delay that all bytes are received. It is also important to collect the bytes not too fast, because this can result in some lost bytes.</DD>
</DL>
<HR>

<H3>close</H3>
<PRE>
public static void <B>close</B>()</PRE>
<DL><DD>close the connection via the serial line<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Throws:</B><DD><CODE>Exception</CODE> - </DD>
</DL>
<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

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