The 7800FC VistaLINK® Frame Controller also provides an RS-232 serial port interface for customer configurations. The 7800FC VistaLINK® Frame Controller handles all SNMP communications between the frame (7800FR) and the network manager (NMS), and serves as a gateway to individual cards in the frame. The 7800FC VistaLINK® Frame Controller provides a 10BASE-T/100BASE-TX/1000BASE-TX Ethernet port and communication is facilitated using Simple Network Management Protocol (SNMP). Next i think its a bit important that you first creat the port, then assign a name to it, then assign its properties and at last connect its signal to a slot.The 7800FC VistaLINK® Frame Controller card provides a single point of access to communicate with VistaLINK®-capable modules. As my experience says,if u press sstartButton or sstartButton2 two times your port wont get opened again i handled this problem by opening it the third time if it isnt opened yet as this: port = new AbstractSerial port-setDeviceName('/dev/ttyS1') port-open(AbstractSerial::ReadWrite) if (!port-openMode) port-open(AbstractSerial::ReadWrite ) this way you will get sure each time you call the slot to open the port your port will be opened. You wouldn't use SetCommState nor the serial port device driver if you are truly emulating the port. But what do you care if you emulate the serial port It is the device driver that gives the thumbs-down if the value is out of range in the SetCommState () API function. The program I'm working on now is also doing this and i have never faced any problem with having two ports opened and i think your program can also do it correctly if you pay attention to some points. Yes, 115200 is the highest defined baudrate. My problem was that I created the ports in the constructor of my classes and so i couldn't get access to the close slot anywhere else in the same class but now that i create the port and open it outside of the constructor, everything works fine with closing the port:) about your question, it's absolutely possible to communicate with two different ports at the same time so easily. Dear abhijsj thank u so much u really helped me.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |