![]() |
|
|||||||
| Homepage | Forum | New Posts - Live! | Member's Cars |
| Register | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Advanced Member
Join Date: May 2005
Posts: 5,370
![]() |
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
|
|
|
|
|
|
|
#2 |
|
Advanced Member
|
I'll boot up VB and send it your way. You got msn?
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Apr 2008
Posts: 513
![]() |
you might have to change the latency. certainly do on the ftdi controller for the radios.
|
|
__________________
www.nrgizerbunny.com |
|
|
|
|
|
|
#4 |
|
Advanced Member
|
|
|
|
|
|
|
#6 |
|
Advanced Member
|
|
|
|
|
|
|
#7 |
|
Advanced Member
Join Date: May 2005
Posts: 5,370
![]() |
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. |
|
|
|
|
|
|
#8 |
|
Advanced Member
|
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..... |
|
|
|
|
|
#10 |
|
Advanced Member
Join Date: May 2005
Posts: 5,370
![]() |
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
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
|