digital-car.co.uk    

Go Back   digital-car.co.uk > Software > Misc

Reply
 
Thread Tools Display Modes
Old 05-03-2010, 05:59 PM   #1
lez
Advanced Member
 
Join Date: May 2005
Posts: 5,370
lez will become famous soon enough
Bit of VB programming help needed...

I'm developing some HW (pic based) at the moment that is connected via usb with a virtual comport.

problem i am having is serial data flow control.

I have been using some terminal programs and all seem to buffer data and handle there flow control invisibly, i dont know if its being done by the terminal, or by windows, or by the virtual comport driver!

thing is I dont care whats doing it, but i do know if I go into a command window in xp and copy a text file of commands to it, it misses all but the first letter....

so, no flow control or buffering in a command window....

now as i want this HW project to work with some common front ends, I need to know whats going on, so, to help me fathom this out, can anyone supply some software to :

1) display say 3 or 4 buttons on screen

2) when a button is clicked send a string to a com port (selectable, my fav is 6 lol)

3) maybe, not essential, show whats come back from the com port

oh its the usual 9600 8n1 but would like faster just to try see if its still handling it

I'd like on the buttons

1 P (or any single char, a-z only mind) (without CRLF)
2 ATZ (+crlf)
3 the quick brown fox jumps over the lazy dog (+crlf)


PReferebly in VB but not essential - dont want the code or the source really just an executable to see if it will work with something other than hyperterminal (which it woprks fine with, oddly)
__________________
My vids
lez is offline   Reply With Quote
Old 05-03-2010, 06:29 PM   #2
Gepard
Advanced Member
 
Join Date: Dec 2006
Posts: 5,162

Gepard will become famous soon enoughGepard will become famous soon enough
I'll boot up VB and send it your way. You got msn?
Gepard is offline   Reply With Quote
Old 05-03-2010, 06:44 PM   #3
nrgizerbunny
Senior Member
 
Join Date: Apr 2008
Posts: 513
nrgizerbunny is on a distinguished road
you might have to change the latency. certainly do on the ftdi controller for the radios.
__________________
www.nrgizerbunny.com
nrgizerbunny is offline   Reply With Quote
Old 05-03-2010, 06:51 PM   #4
Gepard
Advanced Member
 
Join Date: Dec 2006
Posts: 5,162

Gepard will become famous soon enoughGepard will become famous soon enough
Quote:
Originally Posted by Gepard View Post
I'll boot up VB and send it your way. You got msn?
It's awaiting collection :d
Gepard is offline   Reply With Quote
Old 05-03-2010, 07:42 PM   #5
lez
Advanced Member
 
Join Date: May 2005
Posts: 5,370
lez will become famous soon enough
msn, yeah, you not got skydrive yet?

which vb u using, just heard vb 6 wont play on win 7


@nrg, latency ? omg its going to get sticky, and not in a good way i can tell....
__________________
My vids
lez is offline   Reply With Quote
Old 05-03-2010, 07:55 PM   #6
Gepard
Advanced Member
 
Join Date: Dec 2006
Posts: 5,162

Gepard will become famous soon enoughGepard will become famous soon enough
Quote:
Originally Posted by lez View Post
msn, yeah, you not got skydrive yet?

which vb u using, just heard vb 6 wont play on win 7


@nrg, latency ? omg its going to get sticky, and not in a good way i can tell....
Skydrive?

VB6 on Win7 here.....seems to be ok......
Gepard is offline   Reply With Quote
Old 05-03-2010, 07:59 PM   #7
lez
Advanced Member
 
Join Date: May 2005
Posts: 5,370
lez will become famous soon enough
ok i was told vb6 wont go on win7, skydrive, its your free 25gb of online storage with msn/live which has private/public folders

just *which* vb6 have you installed under win7? (32/64?)

and I have msn, I'm using digsby mind, i think my msn is my google email address
__________________
My vids

Last edited by lez; 05-03-2010 at 08:16 PM.
lez is offline   Reply With Quote
Old 06-03-2010, 10:06 AM   #8
Gepard
Advanced Member
 
Join Date: Dec 2006
Posts: 5,162

Gepard will become famous soon enoughGepard will become famous soon enough
Added your google one and it said "it appears he doesn't use msn yet" so I'm guessing it's not that one?

All 32bit here.....
Gepard is offline   Reply With Quote
Old 06-03-2010, 10:10 AM   #9
lez
Advanced Member
 
Join Date: May 2005
Posts: 5,370
lez will become famous soon enough
odd, it told me you requested and i accepted lol.

technology eh.

says your not onlione
__________________
My vids
lez is offline   Reply With Quote
Old 06-03-2010, 11:10 AM   #10
lez
Advanced Member
 
Join Date: May 2005
Posts: 5,370
lez will become famous soon enough
Well Gep's ikkle bit of code has helped me no end as I was fighting an error that was being made by windows hyperterminal/putty, so I had already wasted two days, and now was consigned to writing my own input parsing routine on a char by char basis.

Seems when you type a string of text into hyperterminal or putty, they send the string to the virtual comport as a single char, one by one, so you have to receive them one by one, and build the string back together and then check its valid

But, when sending from VB etc, it sends the full string in one poll, so you can just compare it to your list of valid inputs without having to rebuild it first.

All in all time saved, and if i had wrote my code to correct for the way the terminal programs send it, it would not then have worked with VB without sending one char at a time from vb....

Anyhow, if there was a +10 button for rep for Gep, I'd be hitting it...

ta.
__________________
My vids
lez is offline   Reply With Quote
Reply

Bookmarks


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

Forum Jump
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 On
HTML code is Off


All times are GMT +1. The time now is 12:57 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Website Hosted by
www.wicked-websites.co.uk