VOGONS

Common searches


Search results

Display options

Re: Serial port on linux

Work ! 😁 😁 😁 I changed: Copy code to clipboard 1 termInfo.c_lflag &= ~(ICANON); to: Copy code to clipboard 1 termInfo.c_lflag &= 0; Now I will try to work on step5. Thanks, Nicola. P.S. Why there isn't the code complete on posix patch? Hal, do you make work step5 v3.0 on linux or only on windows ?

Re: Serial port on linux

This code: termInfo.c_cc[VMIN] = 0; termInfo.c_cc[VTIME] = 0; is for non canonical mode. So I add also: termInfo.c_lflag &= ~(ICANON); Now step5 still doesn't work, but it receives wrong chars. So someting changed. :happyhappy: I should continue investigate in the code. Who is linux patch's author ? …

Re: Serial port on linux

h-a-l-9000 wrote: There is another one in CDirectSerial::CDirectSerial: […] Show full quote There is another one in CDirectSerial::CDirectSerial: Copy code to clipboard 1 InstallationSuccessful = false; 2 InstallTimerHandler(th); 3 lastChance = 0; There are InstallationSuccessful and …

Re: Serial port on linux

h-a-l-9000 wrote: The startbps parity ... should not be neccessary. serial1=directserial realport:0 stopbits:1 bytesize:8 I tried with windows and it works without reboot PLC. 😠 Thanks, Nicola.

Re: Serial port on linux

Ok, now step5 not freeze, but I can't connect with PLC. 😀 I'm get timeout by step5. 🙁 My config file for serial port is: serial1=directserial realport:0 startbps:9600 parity:E stopbits:1 bytesize:8 I think this is corret. Thanks, Nicola.

Re: Serial port on linux

Does it work on a Windows computer? I have Step5 V3.0 which works with a PLC (Windows). Yes, with windows and the same usb2serial adapter step5 work. With linux, dosbox report: Serial port at 3f8: Opening "/dev/ttyUSB0" (I'm change from ttyS to ttyUSB) but when I try to get step5 online it freeze. …

Re: Serial port on linux

This not change the result. I tried a connection with a real plc but whitthe same result. I compiled dosbox with --enable-debug=heavy option and when step5 freeze I have: 45874779: DOSMISC:DOS:Multiplex Unhandled call B700 46090868: PIC:0 mask E8 46091213: PIC:0 mask ED 81734391: PIC:0 mask E8 …

Re: Serial port on linux

Yes, 😀 you're right, I changed C_DIRECTSERIAL. I tried step5 to connect with another pc (minicom) because I have'nt a PLC now. So step5 freeze when I try to connect but I see some chars on minicom terminal. Tomorrow I want to connect step5 to a real PLC. Thanks, Nicola.

Serial port on linux

Hi, I must make a program (Siemens STEP5) work with dosbox, but I need the serial port to work on linux. I saw the support only for win32 and os/2. 🙁 Could you suggest something ? Thanks, Nicola.

Page 1 of 1