Skip to content

Support FILETRANSFER #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Support FILETRANSFER #26

wants to merge 3 commits into from

Conversation

jjcarstens
Copy link
Member

This adds pieces to send file data to a device. It uses a functional
core in Jeff.Command.FileTransfer to check each reply after a
FILETRANSFER attempt to determine next steps for continuing the data
transfer. The functional core allows for simpler testing

chrisdambrosio and others added 2 commits July 19, 2022 17:23
This adds pieces to send file data to a device. It uses a functional
core in `Jeff.Command.FileTransfer` to check each reply after a
FILETRANSFER attempt to determine next steps for continuing the data
transfer. The functional core allows for simpler testing
Reply.FileTransferStatus.t() | Reply.ErrorCode.t()
def file_transfer(acu, address, data) when is_binary(data) do
with %{name: PDCAP, data: caps} <- ACU.send_command(acu, address, CAP) do
max = caps[:receive_buffer_size] || 128
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OSDP spec says you can send the receive_buffer_size that the reader reports from the capabilities, but I found that it doesn't work. The only size consistently finishing was using 128 bytes

@LivInAbsurdism LivInAbsurdism force-pushed the filetransfer branch 2 times, most recently from 28b196d to 4990ae3 Compare June 5, 2025 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants