473,395 Members | 1,631 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Need Help for interfacing with serial ports

10
HI could anyone give me a sample script for connecting with a serial port.
I am currently doing a thesis and I need to estblish a connection ofRFID reader and the Visual basic.
Feb 27 '07 #1
10 1257
vijaydiwakar
579 512MB
HI could anyone give me a sample script for connecting with a serial port.
I am currently doing a thesis and I need to estblish a connection ofRFID reader and the Visual basic.
for communication there r just four parametrs boudrate,parity,stopbit ,comport
check the details of the h/w use mscomm ctrl and do the job use oncomm event to tress activity happened on comm ctrl
try it
Feb 27 '07 #2
Harvey
10
But I don't know how to use those parameters, could you give me some sample programming script.
Feb 27 '07 #3
vijaydiwakar
579 512MB
But I don't know how to use those parameters, could you give me some sample programming script.
Expand|Select|Wrap|Line Numbers
  1.  
  2. when u drop mscomm ctrl on thy form select the ctrl press f4
  3. goto setting and adjust the settings as per thy h/w reqd.
  4. (9600,n,8,1) where boudrate,parity,databit,stopbit
  5.  
  6. Private Sub MSComm1_OnComm()
  7. ' write code for activity here
  8. End Sub
  9.  
try it
Feb 27 '07 #4
Harvey
10
My I also be able to receive data via serial ports, for example a magnetic card ID, would it be able to receive data.
Feb 27 '07 #5
Harvey
10
thanks I'll try it, if I incounter another problem I'll post it again
Feb 27 '07 #6
vijaydiwakar
579 512MB
thanks I'll try it, if I incounter another problem I'll post it again
yeh..............!
that's the spirit keep it up
Feb 27 '07 #7
Harvey
10
Sir my I ask wats is the activity code
Feb 27 '07 #8
Harvey
10
The sample activity code
Feb 27 '07 #9
vijaydiwakar
579 512MB
The sample activity code
at this place u'll get a string which contains a lot of garbage data then the digits or actual data (this may be in reverse order) again garbage data
here u've to exctract actual data and process it later
check all inbuffer methods
Feb 27 '07 #10
hi.. i want to play the mediaplayer in VB, i got it on the form...now how to get it connected to the media files..plz assist...
how to play it then..
Feb 27 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Shaurya Anand | last post by:
I would like to know more about Interfacing hardware devices through .NET. We're students and what we're trying to do is control our robots with printer or serial port interfacing... very similar...
1
by: David | last post by:
I have written an application in VB.NET 2003 that uses the SAX serial component for RS232 communications with hardware. The program sets up 2 serial ports so that it can talk to 2 different...
1
by: henrycortezwu | last post by:
Hi All, I'm trying to connect to a virtual port (COM19, OUTGOING, "Bluetooth Serial Port") using VS2005 System.IO.Ports. When I ran the ff code below here's what happens. 1) VS2005 Compiles w/o...
3
by: Tom Brown | last post by:
Hey people, I've written a python app that r/w eight serial ports to control eight devices using eight threads. This all works very nicely in Linux. I even put a GUI on it using PyQt4. Still...
5
by: LongBow | last post by:
Hello, Is there a way, in .NET, to determine what are the avialable Serial (Communications) Ports on a Windows OS and is there a way to determine that port isn't being use other than attempting...
2
by: joaquimfpinto | last post by:
Dear All, I made an app in c# that uses several serial ports. For the serial ports I use a pnp Sunix board, some with 8 serial ports other with 4 or even 2 serial ports. Whenever I use the...
3
by: naveen.sabapathy | last post by:
Hi, I am trying to use virtual serial ports to develop/test my serial communication program. Running in to trouble... I am using com0com to create the virtual ports. The virtual ports seem to...
2
by: Nasif | last post by:
Currently I am writing a program which sends and receives messages through serial port to a device. I am using C# and Microsoft Visual studio 2005 for windows program. But my problem is when i try...
2
by: Dave Harry | last post by:
I'm using the following code to determine the available serial ports: ComboBoxPort.Items.Clear() For Each sp As String In My.Computer.Ports.SerialPortNames ComboBoxPort.Items.Add(sp) Next It...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.