MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How? MsComm with 7 bit force ,How? MsComm with 7 bit force ,How? MsComm with 7 bit force ,How? MsComm with 7 bit force ,How? MsComm with 7 bit force ,How? MsComm with 7 bit force ,How? MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How? MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How?
Go Back  Xtreme Visual Basic Talk > > > MsComm with 7 bit force ,How?


Reply
 
Thread Tools Display Modes
  #1  
Old 08-24-2010, 06:59 AM
Maing Maing is offline
Newcomer
 
Join Date: Aug 2010
Posts: 5
Unhappy MsComm with 7 bit force ,How?


Hi Friend

I Connect PC with some Hardware that talk with RS232 ==> 9600,8,N,1 Rate
But Hardware send out Data with 7 Bit data.
I can read Data with Hyperterminal ==> 9600,8,N,1 Rate and Force 7 bit option.

How can I set MsComm in VB6 like Hyperterminal? (Force 7 bits option)
Or How to convert 8 bit data to be 7 bit Data.

Best Regards.
Reply With Quote
  #2  
Old 08-24-2010, 07:17 AM
mkaras's Avatar
mkarasMsComm with 7 bit force ,How? mkaras is offline
Ultimate Contributor

Retired Leader
* Expert *
 
Join Date: Mar 2004
Location: Beaverton, OR
Posts: 1,874
Default

You can set the Comm port to talk at 9600,7,N,1 if the device is truly in 7-bit mode.

If the device is in 8-bit mode but always has bit number 7 forced to "1" all the time then you need to OR each TxD byte with &H80 and AND each RxD byte with &H7F.

If the device is in 8-bit mode but always has bit number 7 forced to "0" all the time then you need to AND each TxD byte with &H7F and accept each RxD byte as is or you could AND each byte with &H7F just for grins.

Michael Karas
Reply With Quote
  #3  
Old 08-24-2010, 07:24 AM
Maing Maing is offline
Newcomer
 
Join Date: Aug 2010
Posts: 5
Default

Thank you for Quick reply.
I will Try.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How? MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How? MsComm with 7 bit force ,How? MsComm with 7 bit force ,How? MsComm with 7 bit force ,How? MsComm with 7 bit force ,How? MsComm with 7 bit force ,How? MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How?
 
MsComm with 7 bit force ,How?
MsComm with 7 bit force ,How?
 
-->