Skip to content

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
@jjcarstens
Copy link
Member Author

Handled in #42

@jjcarstens jjcarstens closed this Sep 30, 2025
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