Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:10 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Mmbasic talking to VB6

     Page 2 of 2    
Author Message
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 986
Posted: 10:37am 26 Sep 2017
Copy link to clipboard 
Print this post

@Gizmo and MikeO
I chose to brush the dust and cob webs off VB6SP5 as the end user would like some type of large graphical display of the sensor information that could be looked at a glance and have the ability to contact him via SMS if any of the readings go beyond pre set limits.
Graeme
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 12:59pm 26 Sep 2017
Copy link to clipboard 
Print this post

OA47
Hi
I put here an exemple of prog (in vb6) with serial com in master mode and slave mode

in master mode
in subroutine "emtrame" you can find method to send string and wait response
in mditest.timer, you can create a periodic job (if use) like datalogger

in slave mode
it work only on waiting recept buffer with nb char to receive

2017-09-26_230103_vb6_serial_com.zip Edited by goc30 2017-09-27
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 986
Posted: 10:50am 12 Oct 2017
Copy link to clipboard 
Print this post

Just in case anyone was curious of how I progressed with this issue. Trawling through the web found a handful of VB users complaining about the same issue using VB6 and especially the prolific usb-serial converters. It seems it is an issue with Microsoft's VBComm32.OCX which is responsible for the handling of such devices. There are commercial replacements available for purchase such as SCOMM32.ocx which purport to fixing such issues but being adverse to spending the money and I would have to wait some time to try another chip instead of the Prolific, I experimented and found 3 different dated VBCOMM32.OCX files and used the most recent dated issue (which was only 1 day newer) and you guessed it, IT WORKED.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 11:38am 12 Oct 2017
Copy link to clipboard 
Print this post

Thanks for the update.
Prolific are one of the manufacturers who were plagued by counterfeits and did strange things to protect themselves. The countermeasures where more trouble than the counterfeits.

Jim
VK7JH
MMedit
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025