• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Driver for RS485 (netPI)
#4
Hello Lukas,

we have investigated your point and examined the BCM UART1 registers in-deep as stated yesterday in the post. To cut a long story short: the AUTO_RTS behaviour is not like we need it and we have no soltution.

When enabling the AUTO_RTS function the chip asserts indeed the RTS signal automatically (as we would need it) when you start sending BUT it does not de-assert it after sending is finished. The signal remains asserted and lets the RS-485 driver remain in transmit mode forever. For real RS-485 circuits when using the two additional signals RTS/CTS this behaviour is ok, cause then the RTS signal is de-asserted when the remote partner starts to send and fills the receive data queue ... but for the RS-485 circuitry as we use it today this is a no go.

The next things we looked at in detail were the other UART1 registers and search for a possibility to detect - with a special driver to be developed - when the transmit shift register is sending our the very last bit of a data stream to use it as a trigger to de-assert the RTS chip in the driver , in an interrupt routine for example. But unfortunately there is not any register in BCM CPU where such a bit or indication exists. So this was also a dead end here.

So neither the AUTO_RTS is usable for us nor a special driver that could do this handling in software instead of the hardware. I am sorry to say that we have no solution for you at this time. I agree that the handling of the RS485 interface is difficult if you have no possibility to change the program that uses the serial port for your use case

Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
Driver for RS485 (netPI) - by ArteLukas - June-5th-2019, 07:54 AM
RE: Driver for RS485 (netPI) - by Armin@netPI - June-5th-2019, 08:17 AM
RE: Driver for RS485 (netPI) - by Armin@netPI - June-6th-2019, 11:33 AM
RE: Driver for RS485 (netPI) - by Armin@netPI - June-7th-2019, 03:02 PM
RE: Driver for RS485 (netPI) - by Armin@netPI - June-7th-2019, 11:01 PM
RE: Driver for RS485 (netPI) - by Armin@netPI - June-25th-2019, 07:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  NIOT-E-NPIX-RS485 LucioFiam 6 4,461 January-21st-2023, 05:20 PM
Last Post: Armin@netPI
  USB to RS485 convetrer MGharat 5 8,035 November-15th-2021, 02:37 PM
Last Post: patribenq
  netX linux driver Irina Grinberg 4 3,646 May-7th-2020, 01:33 PM
Last Post: Armin@netPI
  niot-e-npi3-51-en (RS485 <-> Industrial Ethernet) merklethomas 6 4,964 April-26th-2019, 01:38 PM
Last Post: Armin@netPI
  [SOLVED] Usage of overlay driver adeeljsid 4 3,943 October-18th-2018, 10:13 AM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)