Click here to Skip to main content
15,886,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a door access control device,
I use the manufacturing s/w to update the card accessible setting.

I open the s/w database with MS.Access, I found the member table and one of the column control the card and block the card.

"000" = Not allowed to Access door
"001" = Allowed to Access the door

I use my vb project update the database data, but there is no response on the door access device. I have to go to the manufacturing s/w and call out the card and update the card again. Then only the s/w will update the control.

Anyway to send command and update the controller data through vb project ?
I only want to send the "000" data to control member.
Posted
Updated 16-May-11 4:11am
v3
Comments
Manfred Rudolf Bihy 16-May-11 13:03pm    
If you would kindly supply the device manufacturer and identify the product employed in your setup it would help considerately. Usually the manuals for such devices supply enough information so one can easily reprogram them via whatever port they may have.
Please edit your question by using the link "Improve question" below your post and supply the device manufacturer and the product identification.

1 solution

You need to use the class System.IO.Ports.SerialPort. You need to read device manufacturers documentation of communication parameters, such as baud rate, parity, number data bits and stop bits. These parameters can be set in constructor of instance properties. You may also need to set up advanced communication parameters such as handshake, RTS enabled, DTR enabled, etc., accessible through instance properties.

The data can be sent using BaseStream; you can also check BytesToRead/BytesToWrite — number of bytes in receive/send buffer. The data itself (like "000") is described by some application-level protocol which you should be able to find in device documentation.

For further information, please see http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx[^] (with some code sample on the same page).

—SA
 
Share this answer
 
Comments
Albin Abel 17-May-11 6:44am    
My 5
Sergey Alexandrovich Kryukov 17-May-11 15:33pm    
Thank you, Albin.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900