Search the web
Sign In
New User? Sign Up
nsbasic-palm · NS Basic/Palm Web Board
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
IRDA access   Message List  
Reply | Forward Message #14332 of 57163 |
I made a program that communicates with an external device using IRDA as a
UART port. (NS Basic's Serial command is used for access)
It worked well on IBM WorkPad30J(OS Ver3.1) but it doesn't on WorkPad
c505(OS Ver4.0). It doesn't even show an error.

In Ver4.0, can't the Serial command access to IR?

Here is my source code:

Sub Form1003_After() 'serial setting
Dim intError as Integer
intError = SerialOpen(0,9600)
If intError = 0 Then
gboolConnect = True
Field1029.Text = "IR Active"
Else
gboolConnect = false
Field1029.Text = "IR Deactive"
End If
Field1029.Redraw
intError = SerialSet("IR",1)
intError = SerialSet("BitsPerChar",8)
intError = SerialSet("handshake",0)
intError = SerialSet("Parity",3)
intError = SerialSet("Stopbits",1)
intError = SerialSet("Ctsauto",2)
intError = SerialSet("Rtsauto",2)
End Sub
Sub object1006() 'serial data send
Dim Data(9) as Integer
Dim intError as Integer
Dim strSend as String
Dim i as Integer
strSend = ""
' Select AUX data=02h(2)
Data(1) = 170
Data(2) = 140
Data(3) = 0
Data(4) = 1
Data(5) = 2
Data(6) = 0
Data(7) = 85
Data(8) = 13
Data(9) = 10
For i = 1 to 9
intError = SerialSend(chr(Data(i)),1)
Next
End Sub




Tue Nov 6, 2001 5:49 am

nsbtomo
Offline Offline
Send Email Send Email

Forward
Message #14332 of 57163 |
Expand Messages Author Sort by Date

I made a program that communicates with an external device using IRDA as a UART port. (NS Basic's Serial command is used for access) It worked well on IBM...
Tomo Arakawa
nsbtomo
Offline Send Email
Nov 6, 2001
5:49 am

Nice! This is good for NAKAYOSHI-BBS in Japan ,too. Please come and write to No.1794 at NAKAYOSHI. YOROSHIKU! Or May I write? ^_^;) ... IRDA as a ... WorkPad...
mizuno-ami@...
mizuno_ami7
Offline Send Email
Nov 6, 2001
6:25 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help