I also'd like to know what DLH and DLL means. However, why should it
be not possible to set the comm port to any custom baud rate in VB?
You can just do it almost like you would do it in VC++. All you need
are kernel32.dll declares which you can easy insert out of the Api-
Viewer. Also the "bit-banging" procedure to init on both, K+L like
andy whittaker shows us on his site is possible, because you can use
EscapeCommFunction to set/clear RTS, Break, etc... Don't forget to
setup a precise timer like the QueryPerformanceTimer the same way
like andy did.
Many thanks to Gustavo, who is so kind to share his source code with
us. I hope he will upload his project to the files section very soon
to see how he managed the baud rate issue and all the other stuff.
best regards
yup
--- In opendiag@yahoogroups.com, "Bülent Özen" <ozenelekt@i...>
wrote:
>
> Hi
>
> 1.) you can set the 5 Baud without problem directly in USART of
PC . ( put 23040 in DLH and DLL )
>
> 2.) a slow init pattern is always 8 bit , no parity , 1 stop
>
> regards
>
> Bülent
>
>
>
>
>
> ----- Original Message -----
> From: Skid
> To: opendiag@yahoogroups.com
> Sent: Tuesday, September 16, 2003 7:27 AM
> Subject: [opendiag] 5bps initialization in VB
>
>
> Ok' since 5bps is not a standard baud rate to set on any PC, I
think
> I must do the initialization by doing bit-bashing (software-made
> serial stream) I tried pulsing DTR and RTS lines giving 200ms of
> delay (1000ms/5bps = 200ms right?) and tried sending the 0x01
(engine)
> address using the 1 start, 7 data, odd parity 1 stop settings
(that's
> a 1-0000001-1-1 ?). Can't initiate the ECU. I hope it's not Vb's
lame
> slow interpreter wich can't set dtr or rts line on the correct
> timing :(. I tried commlite to spy the port when Vag-com wakes
up the
> ECU but can't see any bytes not until the ECU sends the sync
byte
> (55) after the 5bps wakeup :P Help!
>
> Any one did the init. in vb before?
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>
> To unsubscribe from this group, send an email to:
> opendiag-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
> [Non-text portions of this message have been removed]
Received on Wed Sep 17 00:11:27 2003
This archive was generated by hypermail 2.1.8 : Wed Jan 02 2008 - 00:56:01 CET