kenta-shimizu / pysemisecs

This package is SEMI-SECS-communicate implementation on Python3.
Apache License 2.0
31 stars 12 forks source link

Large send_sml() string causes to go into an infinite loop #5

Closed jmackos closed 6 months ago

jmackos commented 6 months ago

I am trying to implement a large send_sml()

kenta-shimizu commented 6 months ago

Hi, thanks for issue report.

I'll look into this issue now. But I forgot python and this repository so it will take some time.

Best regards.

kenta-shimizu commented 6 months ago

Tested.

Result: good. no problem. I suspected a failure in SECS-I message block division, but it turned out to be successful.

NOT test.

I don't have Serial-port PC. I use RaspberryPi to test SECS-I. I can't try it right away.

kenta-shimizu commented 6 months ago

I also suspect a USB-Serial-Converter. SECS-I block send/receive requires 257 bytes of cache. Communication may fail with cheap ones. (I have also encountered.) I only buy FTDI chip USB-Serial-Converters.

jmackos commented 6 months ago

Yes, I am using secs.Ses1OnPySerialCommunicator.

I will try better USB-serial-converter. And see if that helps. Thank you for testing! I will mark issue resolved.