SOLVED* - HSI-88 not working with rocrail (timeout response)

Moderator: Moderators

SOLVED* - HSI-88 not working with rocrail (timeout response)

Postby sn00zerman » 13.10.2017, 15:00

Hi all,

I'm trying to configure my HSI-88 (RS232), with a USB-to-serial adapter, into rocrail, but I can't get it to work:

- I tried disabling the RTS and CTS, so I modified my rocrail.ini:
<digint iid="hsi88" lib="hsi88" rtsdisabled="true" device="COM1" flow="none" restricted="false" stress="false" libpath="C:\Program Files (x86)\Rocrail" desc="" ignorepowercmds="true" ignorepoweroffonghost="true">
<hsi88 usb="false" fbleft="1" fbmiddle="0" fbright="0" smooth="true" triggertime="100"/>
</digint>
- I connected 2 Rosoft S88SD16-N to the "left" S88 bus

All I get is this repeating error, included in screenshot.
However, I can be sure that my USB-to-serial adapter and hsi-88 is functioning fine.
When I openup a serial monitor, I can send commands like t/v/s/i, and I get the corresponding correct answers on my screen.
(P.S. I'm running RocRail 12841 on windows)

Who can help me out with this please ?


Best regards,
Kris
You do not have the required permissions to view the files attached to this post.
Last edited by sn00zerman on 14.10.2017, 12:23, edited 1 time in total.
http://www.digitalplayground.be
Where fun meets technology ...
sn00zerman
 

Re: HSI-88 not working with rocrail (timeout response)

Postby rjversluis » 13.10.2017, 15:06

Hi Kris,

just add the usual files and no screen shots.
Modifying the rocrail.ini manually is not supported.

COM1 is not a USB-RS232 adapter, but a legacy RS232 device!
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: HSI-88 not working with rocrail (timeout response)

Postby sn00zerman » 13.10.2017, 16:09

Hi Rob,

Thank you for your quick reply.
- included is the trc file and ini file, is this enough, or do you also need the trackplan etc ? (I don't think so, because I don't even have a trackplan defined, it's in the basic communication setup with the hsi88 that the problem occurs)
- COM1 is really my usb-to-serial adapter, you can modify the portnumbers in windows like you want. (see included screenshot)
However, I changed it back to COM4, but this does not make any difference.
- the manual editing of the rocrail.ini is documented in the wiki, and stated that this operation should be performed, in case of any problems with usb-to-serial adapters: http://wiki.rocrail.net/doku.php?id=usb-rs232-en

best regards,
Kris
You do not have the required permissions to view the files attached to this post.
http://www.digitalplayground.be
Where fun meets technology ...
sn00zerman
 

Re: HSI-88 not working with rocrail (timeout response)

Postby rjversluis » 13.10.2017, 16:15

Hi Kris,

you must enable CTS handshaking for the original HSI88.
The manual added attribute in the rocrail.ini should be removed.

CTS
Option for DIY compatible devices to disable hardware handshake.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: HSI-88 not working with rocrail (timeout response)

Postby sn00zerman » 14.10.2017, 09:26

Hi Rob,

I removed the manually added attribute from rocrail.ini and enabled CTS handshaking, but still the same issue :-(
However, when I use a terminal program, I can communicate with the HSI88 module.
Any more ideas ?


best regards,
Kris
You do not have the required permissions to view the files attached to this post.
http://www.digitalplayground.be
Where fun meets technology ...
sn00zerman
 

Re: HSI-88 not working with rocrail (timeout response)

Postby rjversluis » 14.10.2017, 09:37

Hi Kris,

what are exactly the line settings of the terminal program?

The HSI is in Terminal mode?
Read the manual:
http://wiki.rocrail.net/lib/exe/fetch.p ... lssatz.pdf
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Re: HSI-88 not working with rocrail (timeout response)

Postby sn00zerman » 14.10.2017, 10:56

Hi Rob,

I use 9600,8,N,1 for the terminal program. (is actually the serial monitor of the Arduino IDE, so I have no control of the CTS/RTR etc ...
I can switch to terminal mode and back.

However, I think I just found the solution :-)
(can you please confirm this, according to my trace-file, it looks like the communication is OK now)
Despite using a converter with FTDI chipset, is seems like this was some sort of chinese clone, reporting an FTDI inside, but it looks like it was a "fake" FTDI, RX and TX works fine, but CTS etc ... seems to not work on this converter.
I remembered having a spare converter (from another brand), also with an FTDI inside (this time, a "real" FTDI), and this seems to do the trick, I get the version number in Rocrail of the HSI88, and I don't get no timeouts anymore :-)

Now onto the real thing, I'm currently busy with a small christmas layout, in Z-scale (1:220), completely digitising it ! (I already managed to put some DCC decoders in 3 of my Z locos, and I also managed to get my turnout-decoders to work at 10V DCC.
Now I hope that 10V DCC is enough to get my S88 working, but I think it will do fine :-)


*** EDIT: I did some testing with my Z-scale locos and only 10V DCC on the tracks, S88 occupancy sensors works perfect now ***




best (happy) regards,
Kris
You do not have the required permissions to view the files attached to this post.
http://www.digitalplayground.be
Where fun meets technology ...
sn00zerman
 


Return to HSI88