I'm assuming that you've alredy have python and pySerial installed (cmd > pip install pySerial). I have ricycled the connectors from old unused boards and made by myself the casings with a 3d printer, but you can find them easily on amazon.įor sending serial commands you can use whatever you want. So we need to go with three wire method, connecting RX, TX, signal GND (and cables shield GND) only it's a better choice to diy the cable in order to be sure that only these 3 signals are connected.įor this you need: male db25 and female db9 connectors, 2 meters or of shielded cable (it's ok to use a LAN cable). So if we use a null modem cable with a usb to rs232 interface that's not gonna work. RTS, CTS, DSR, DCD, DTR has to remain high over all the comunication process. Hardware flow control is better but most usb to serial adapter don't control rts and cts pins in the right way. With RS232 protocol it's possible to comunicate with only three wire and software flow control (xon/xoff) or with more wires (null modem cable) and hardware flow control (rts/cts) (page 45 to 52 of the programmer's guide).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |