本文介绍了使用VB.NET或C#发送到Pulse Electric Ratchet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 大家好早上好吗? 伙计们我有一个关于发送电脉冲解锁电子旋转门的问题。我已经准备好了设计,只是错过了制作不知道你怎么做的手腕。所有更多研究的例子都是打开和关闭串口,如果有人知道怎么做或只是一些例子来发送这个脉冲,谢谢。 [更新] 感谢您的帮助。我已经有一个使用2个串口,串行RS232 5伏的棘轮。我找到了一些使用DLL的东西,但是这个型号不需要根据制造商棘轮DLL,他只是建议我向这个解锁的门发送5伏电压(因此给出一个旋转),我只想用5伏电压进行编程解锁旋转栅门。 [/ update] [从OP的答案更新] http:// msmvps。 com / blogs / coad / archive / 2005/03/23 / SerialPort-_2800_RS_2D00_232-Serial-COM-Port_2900_-in-C_2300 _-。NET.aspx [ ^ ] b $ b 就个人而言,我想知道如何抓住我的棘轮旋转转弯?我在互联网上找到了这个例子,发现学会使用串口很有说服力。 只是想知道如何在通过时锁定旋转栅门? 使用自动化系统的人可以向我解释如何操作抓住旋转棘轮自动锁定? 谢谢 [/ update]Hello everyone good morning?Guys I''ve got a question regarding sending an electrical pulse to unlock an electronic turnstile. I already have the design ready, just missing making this wrist that do not know how you do. All examples that more research is speaking as opening and closing the serial port, if anyone knows how to make or only some example to send this pulse, thanks.[update]Thanks for the help. I already have a ratchet that uses 2 serial port, Serial RS232 5 volts. I found some stuff that uses DLL, but this model does not need to ratchet DLL according to the manufacturer, he just advised me to send 5 volts to this door that unlocks (thus giving a spin), I just want to 5 volts for programming unlock the turnstile.[/update][update from OP''s answer]http://msmvps.com/blogs/coad/archive/2005/03/23/SerialPort-_2800_RS_2D00_232-Serial-COM-Port_2900_-in-C_2300_-.NET.aspx[^]Personally, I would like to know how do I capture the turning of my ratchet to make the turn? I found this example on the internet and found very explanatory to learn to work with serial ports. Just want to know how to lock the turnstile when you pass? Someone who works with automation systems could explain to me how to do to capture the spin ratchet to lock automatically? thank you[/update]推荐答案如果您已经拥有了旋转门的控制器设备,请查看其文档,以便与PC建立(可能是串行的)通信。 另一方面,如果这样的控制器丢失,那么你必须建立它,可能使用微控制器。 即使你只需要发送一个5V脉冲我强烈建议您使用微控制器。不要将您的PC与旋转门直接连接。If you already have a controller device for your turnstile then check out its documentation for setting up the (possibly serial) communication with the PC.If, on the other hand, such controller is missing, then you have to build it, possibly using a microcontroller.Even If you just need to send a 5V pulse I strongly recommend you to use a microcontroller. Do not interface directly your PC with the turnstile.请勿使用串行端口尝试生成5v脉冲。首先,串口是臭名昭着的,因为没有遵循规范,可能不会给你5v开始。 其次,如果设备你''发送脉冲到没有正确设计和制造,它可以将杂散电压发送回你的串口,可能会炸掉它。因此,它可以工作一两次,但然后神秘地永远停止工作。 使用专用硬件,具有适当设计电路的微控制器来生成和发送脉冲你,以及夹住试图回来的任何杂散电压。然后,您可以通过串行或USB(串行)连接与微型通信,而不会有危险。Do NOT user a serial port to try to generate a 5v "pulse". First, serial ports are notorious for not following spec and probably won''t give you 5v to begin with.Second, if the device your''e sending the pulse to isn''t designed and built properly, it can send stray voltage back to your serial port, possibly frying it. So, it may work one or twice, but then mysteriously stop working, forever.Use dedicated hardware, a microcontroller with properly designed circuitry to generate and send the pulse for you, as well as clamp any stray voltage that attempts to come back. You can then talk to the micro over a serial or USB (Serial) connection without the dangers. 这篇关于使用VB.NET或C#发送到Pulse Electric Ratchet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-23 23:01