forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Serial port read - 2 - 5 second duration...

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
kc7aad
Contributor
Contributor


Joined: 09 Oct 2005
Posts: 53
Location: Spokane Washington

PostPosted: Thu Oct 02, 2008 3:00 am    Post subject: Serial port read - 2 - 5 second duration... Reply with quote

It looks like with VDSDLL, I can read a comm port, but I just want to make sure before I buy it. I have the need to create a small program that will grab the data from a serial port, and be able to parse it. It only needs to grab about 2 to 5 seconds of data.
Once it is parsed, I need to send that info to a server on my network, or store it locally until the PC is connected to my network from somewhere.

Sound like something doable?

I am trying to create a tracking program that will log the username, IP Address, WAN Address of Internet connection (If present) and the GPS Coordinates of the PC. My Laptops have a builtin GPS Receiver in them, and it is connected to COM3 internally.

Anybody done this or something similar that I could look at your code??
Will VDSDLL do what I need it to, as for reading the COM PORT?


Thanks for any help!!
Back to top
View user's profile Send private message Yahoo Messenger
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Thu Oct 02, 2008 4:08 am    Post subject: Reply with quote

I uploaded a dll a while back that interfaces to com ports... It has been working very well for me... You can find it here:
http://forum.vdsworld.com/viewtopic.php?t=3224

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
kc7aad
Contributor
Contributor


Joined: 09 Oct 2005
Posts: 53
Location: Spokane Washington

PostPosted: Fri Oct 03, 2008 5:08 am    Post subject: Reply with quote

Thanks Hooligan!! Just what I was looking for.

If anyone has any need for this sort of thing, let me know and when (if) I get it done, i'll post it here.
Back to top
View user's profile Send private message Yahoo Messenger
kc7aad
Contributor
Contributor


Joined: 09 Oct 2005
Posts: 53
Location: Spokane Washington

PostPosted: Sat Oct 04, 2008 3:22 am    Post subject: Reply with quote

I was able to make the Example in here work, but it's not displaying the correct text. It should be reading the info as ascii, since it is simply a GPS string sent from a GPS Receiver built into my laptop. It is on COM3, and it should be 4800,N,8,1 just as it shows.

Any ideas why this would be?? Is it not trying to read the text as ASCII?? Or is it something weird that I can't fix with this. Here is the screenshot of what it is doing...




Thanks for the help.



ComTest.gif
 Description:
 Filesize:  10.31 KB
 Viewed:  28351 Time(s)

ComTest.gif



ComTest.gif
 Description:
 Filesize:  10.31 KB
 Viewed:  28351 Time(s)

ComTest.gif


Back to top
View user's profile Send private message Yahoo Messenger
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Sat Oct 04, 2008 4:02 pm    Post subject: Reply with quote

I think I know what the issue is... There is a newer dll available, but I wont be able to post it until Monday... (Does it work at 9600 baud?)

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
kc7aad
Contributor
Contributor


Joined: 09 Oct 2005
Posts: 53
Location: Spokane Washington

PostPosted: Sat Oct 04, 2008 5:05 pm    Post subject: Reply with quote

I haven't tried it at 9600, because I only need 4800. I can try at at 9600 on Monday as well and let you know.
Back to top
View user's profile Send private message Yahoo Messenger
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Mon Oct 06, 2008 2:51 pm    Post subject: Reply with quote

I uploaded a new comport dll (at my original thread...)

That should correct the issue. Note the minor change in syntax...

Enjoy,

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
kc7aad
Contributor
Contributor


Joined: 09 Oct 2005
Posts: 53
Location: Spokane Washington

PostPosted: Tue Oct 07, 2008 4:42 am    Post subject: Reply with quote

Might be doing something wrong, but when I extract the files, and try andrun the example program, it errors out on line 51. Any ideas??? I tried adding the dll to the systes 32 directory, just in case it wasn't able to find it, but still no go. It says "Library Function not found at line 51."

Any hints?

I tried it on a Vista PC, and it seems to open it just fine, but no-go on my XP-SP3.
Back to top
View user's profile Send private message Yahoo Messenger
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Tue Oct 07, 2008 2:47 pm    Post subject: Reply with quote

Somehow you are using the older dll. (The date on the old dll is 11/4/04, the date on the new dll is 11/30/04). try down loading and replacing the old dll...

Let me know if that helps...

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Wed Oct 15, 2008 3:59 am    Post subject: Reply with quote

Have you had any luck with this?

Just wondering...

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group