home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,121 of 10,840   
   Henning to All   
   Re: Ms Comm Control   
   20 Jun 06 16:06:45   
   
   From: computer_hero@coldmail.com   
      
   Yes, yes and yes   
      
   You might have to use comm1.output = Chr$(&HB1) if the port is opened in   
   Text mode.   
      
   /Henning   
      
   "Max Healey"  skrev i meddelandet   
   news:4497b823$0$22364$afc38c87@news.optusnet.com.au...   
   > I have written a number of applications that control various bits of   
   > hardware via serial data. using VB6 and the comm. control   
   >   
   > now some one has asked me to do one for a specific piece of equipment, the   
   > protocol calls for 9600 8 N 1 all cool there,   
   >   
   > Then it specifies the following   
   >   
   > Baud Rate        9600   
   > Startbit             Low   
   > 8 Data Bits       Least Significant Bit first   
   > No Parity          N/A   
   > Stop Bit            High   
   >   
   > It also states that "the unit will sample the value on the third forth and   
   > fifth bits the value accepted is the value that was seen in two of the   
   three   
   > samples."   
   >   
   > Then there is a list of hex commands eg 11 do this B2 do that.   
   >   
   >   
   > My questions are as follows.   
   >   
   > 1: Am I correct in assuming the comm. control will take care of the start   
   > and stop bits ?   
   >   
   > 2: From the above would I be correct in assuming that all I need to do is   
   > send B2 (for example) to the unit 3 times to get it to work   
   >   
   > EG:   
   >     comm1.output = &HB1   
   >   
   > will the comm. control output that lsb first?   
   >   
   > I know I will have to do some testing but am looking for some one to   
   confirm   
   > or otherwise that I am on the right track   
   >   
   > Thanks in advance.   
   >   
   >   
   > Max   
   >   
   >   
   >   
   >   
   >   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca