[prev in list] [next in list] [prev in thread] [next in thread]
List: nsbasic-palmapi
Subject: [nsbasic-palmAPI] why it cann't open the RS232 port
From: aaron zhang <zhangshengqun07 () yahoo ! com ! cn>
Date: 2004-11-09 6:52:15
Message-ID: 20041109065215.60747.qmail () web15601 ! mail ! cnb ! yahoo ! com
[Download RAW message or body]
Hi, does anyone control the Zebra printer by using nsbasic? I am using the the \
nsbasic to testing the Eltron TLP2742 printer by RS232 serial port but it cann't \
work. The codes are:
Dim outStr as String
Dim err as Integer
outStr="Hello"
err=serialset("PortID",1)
err=serialopen(0,9600)
err=serialsend(outStr,len(outStr))
MsgBox str(err)
It returns "770". However, I test the printer through its driver, it can print out \
the test page by com 1. If not use the serialsend function in the above codes, just \
open it, it returns "0". I have checked the setting of the printer, it is: Baud \
rate--9600, parity--None, data lenth--8, stop bit--1. Could any one give me a \
suggestion about the issue? Thanks!
Aaron
---------------------------------
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!
[Attachment #3 (text/html)]
<html><body>
<DIV>Hi, does anyone control the Zebra printer by using nsbasic? I am using the the \
nsbasic to testing the Eltron TLP2742 printer by RS232 serial port but it \
cann't work.</DIV> <DIV> The codes are:<BR> Dim outStr as \
String<BR> Dim err as Integer<BR> \
outStr="Hello"<BR> err=serialset("PortID",1)<BR> \
err=serialopen(0,9600)<BR> \
err=serialsend(outStr,len(outStr))<BR> MsgBox str(err)</DIV> \
<DIV> </DIV> <DIV>It returns "770". However, I test the printer through its \
driver, it can print out the test page by com 1. If not use the serialsend function \
in the above codes, just open it, it returns "0". I have checked the setting of the \
printer, it is: Baud rate--9600, parity--None, data lenth--8, stop bit--1. </DIV> \
<DIV>Could any one give me a suggestion about the issue? Thanks!</DIV> \
<DIV> </DIV> <DIV>Aaron</DIV><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://music.yisou.com" \
target=blank>150万曲MP3疯狂搜,带您闯入音乐殿堂</a><br><a \
href="http://image.yisou.com" \
target=blank>美女明星应有尽有,搜遍美图、艳图和酷图</a><br> <a \
href="http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/" \
target=blank>1G就是1000兆,雅虎电邮自助扩容!</a> <br><br>
<tt>
Complete Searchable Archive:<BR>
<a href="http://marc.theaimsgroup.com/?l=nsbasic-palmapi&r=1&w=2">http://marc.theaimsgroup.com/?l=nsbasic-palmapi&r=1&w=2</a><BR>
<BR>
Community email addresses:<BR>
Post message: nsbasic-palmAPI@yahoogroups.com <BR>
Subscribe: nsbasic-palmAPI-subscribe@yahoogroups.com <BR>
Unsubscribe: nsbasic-palmAPI-unsubscribe@yahoogroups.com <BR>
List owner: nsbasic-palmAPI-owner@yahoogroups.com <BR>
<BR>
Shortcut URL to this page:<BR>
<a href="http://groups.yahoo.com/group/nsbasic-palmAPI">http://groups.yahoo.com/group/nsbasic-palmAPI</a><BR>
</tt>
<br><br>
<br>
<!-- |**|begin egp html banner|**| -->
<table border=0 cellspacing=0 cellpadding=2>
<tr bgcolor=#FFFFCC>
<td align=center><font size="-1" color=#003399><b>Yahoo! Groups \
Sponsor</b></font></td> </tr>
<tr bgcolor=#FFFFFF>
<td align=center width=470><table border=0 cellpadding=0 cellspacing=0> <tr> <td \
align=center><font face=arial size=-2>ADVERTISEMENT</font><br><a \
href="http://us.ard.yahoo.com/SIG=129elj1oh/M=295196.4901138.6071305.3001176/D=groups/ \
S=1705016061:HM/EXP=1100069541/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com" \
alt=""><img src="http://us.a1.yimg.com/us.yimg.com/a/ya/yahoo_companion/lrec_companion_043004.gif" \
alt="click here" width="300" height="250" border="0"></a></td></tr></table> </td> \
</tr> <tr><td><img alt="" width=1 height=1 \
src="http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=228241298"></td></tr>
</table>
<!-- |**|end egp html banner|**| -->
<!-- |**|begin egp html banner|**| -->
<br>
<tt><hr width="500">
<b>Yahoo! Groups Links</b><br>
<ul>
<li>To visit your group on the web, go to:<br><a \
href="http://groups.yahoo.com/group/nsbasic-palmAPI/">http://groups.yahoo.com/group/nsbasic-palmAPI/</a><br>
<li>To unsubscribe from this group, send an email to:<br><a \
href="mailto:nsbasic-palmAPI-unsubscribe@yahoogroups.com?subject=Unsubscribe">nsbasic-palmAPI-unsubscribe@yahoogroups.com</a><br>
<li>Your use of Yahoo! Groups is subject to the <a \
href="http://docs.yahoo.com/info/terms/">Yahoo! Terms of Service</a>. </ul>
</tt>
</br>
<!-- |**|end egp html banner|**| -->
</body></html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic