| ??? 05/14/02 18:20 Read: times |
#22908 - Visual Basic - Paulmon |
Hello,
My controller (based on a 80c32) uses the Paulmon monitor (see pjrc.com). I've always connected my system to my PC with hyperterminal. I would like to write my one Visual Basic Terminal Programm. the only thing i have to do to make a connection is send the space character, but i get nothing in return (when hyperterminal is used a welcome message appears on screen). Does anyone has a example how to program such terminal. This is a bit of the code i use: (if then connection is ok the buffer should be filled with the welcome message) Private Sub cmdConnect_Click() Dim sTemp As String Dim ntemp As Integer Dim i As Integer Dim ontvangst As Boolean ontvangst = False ntemp = 0 Com.Output = Chr$(32) While ntemp < 32000 ntemp = ntemp + 1 If Com.InBufferCount > 0 Then ontvangst = True Wend If ontvangst = True Then MsgBox "There is a return" Else MsgBox "No connection" End If End Sub Private Sub Form_Load() Com.CommPort = 1 Com.Settings = "1200,N,8,1" Com.InputLen = 0 Com.PortOpen = True End Sub Private Sub Form_Unload(Cancel As Integer) Com.PortOpen = False End Sub |
| Topic | Author | Date |
| Visual Basic - Paulmon | 01/01/70 00:00 | |
| RE: Visual Basic - Paulmon | 01/01/70 00:00 | |
| RE: Visual Basic - Paulmon | 01/01/70 00:00 | |
| RE: Visual Basic - Paulmon | 01/01/70 00:00 | |
| RE: Visual Basic - Paulmon | 01/01/70 00:00 | |
| RE: Visual Basic - Paulmon | 01/01/70 00:00 | |
RE: Visual Basic - Paulmon | 01/01/70 00:00 |



