maqifrnswa / PCSI

Packet Compressed Sensing Imaging (PCSI)
GNU General Public License v3.0
27 stars 3 forks source link

HW Flow Control Needed for TH-D72 #8

Closed mobilinkd closed 4 years ago

mobilinkd commented 4 years ago

I am unable to receive packets with a TH-D72 because it appears to require HW flow control in KISS TNC mode via USB serial. I tried setting FLOW OFF and XFLOW ON before entering KISS mode but that did not help. Software flow control cannot work in KISS mode.

Transmit seems to work fine, but I suspect that it expects the CTS signal to be honored.

maqifrnswa commented 4 years ago

acked - I have a TH-D72 too, so I can check it out. That should be an easy fix

maqifrnswa commented 4 years ago

I turned on hardware handshaking and received some packets OK on a TH-D72. I think the problem actual was some extra incomplete packets left in the serial port, so I cleared it out. But I turned on the handshaking just in case. https://github.com/maqifrnswa/PCSI/commit/a16cb470319fbda6f23d1ccd3d9231b8aacc9312

I can transmit images from a TH-D72a and receive on a hamshield perfectly fine. I can't get the other direction to work, but I can't tell if the problem is with the hamshield or TH-D72a. The packets are ended prematurely (FEND flags show up where there shouldn't be any).

I'll keep this bug open for now until we confirm it's fixed. If you could test and confirm the git head works, I'd appreciate it.

mobilinkd commented 4 years ago

Works for me.

On Thu, Jul 2, 2020 at 7:45 PM Scott Howard notifications@github.com wrote:

I turned on hardware handshaking and received some packets OK on a TH-D72. I think the problem actual was some extra incomplete packets left in the serial port, so I cleared it out. But I turned on the handshaking just in case. a16cb47 https://github.com/maqifrnswa/PCSI/commit/a16cb470319fbda6f23d1ccd3d9231b8aacc9312

I can transmit images from a TH-D72a and receive on a hamshield perfectly fine. The hamshield seems to not be able to handle KISS 100% yet (it puts inserts packet end flags in the middle of the packet), so I can't test receiving images on the TH-D72a. I'll keep this bug open for now until we confirm it's fixed. If you could test and confirm the git head works, I'd appreciate it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/maqifrnswa/PCSI/issues/8#issuecomment-653274962, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABD64DAMPRA2CERVYS4KCC3RZUS4DANCNFSM4OONGFHA .