I've recently started playing a game, and got to the point where I need to use trains. So I've built the following setup:

I'm a big fan of train sims, so my first instinct was to use the following setup:

Unfortunately this didn't quite work ("no path" error). It does work if I put two-sided signals in all four points, but with bad timing incoming train would block outgoing if the former manages to get to point 4 before the latter would depart the station (and thus end up in deadlock), while the intention is for the second train to wait at point 1 until the station unloading is clear.
The "passenger platform" is used by me to travel between bases, so normally there is no traffic from it.
Please help me to figure this out. Thanks!