Don Gagne
77bd36aa33
Fix opendir failure handling
2015-05-24 20:11:00 +02:00
Lorenz Meier
d9d25363b4
mavlink FTP: Remove workaround after QGC side fix
2015-05-19 07:08:19 +02:00
Lorenz Meier
3032afb803
mavlink FTP: Fix build system error for unit test
2015-05-17 10:48:37 +02:00
Lorenz Meier
2432418751
FTP: Better error reporting, ignore hidden directories
2015-05-16 11:37:41 +02:00
Lorenz Meier
97b8e7a20e
mavlink FTP: Speed up transfers by longer bursts
2015-05-15 21:14:40 +02:00
Don Gagne
46da294ffb
New bust mode ftp file download
2015-05-03 19:26:54 -07:00
Daniel Agar
d511e39ea7
turn on -Werror and fix resulting errors
2014-12-22 17:56:59 -05:00
Vladimir Ermakov
0fbdb8d326
FTP: Return bytes written in payload.
2014-10-05 13:23:57 +04:00
Vladimir Ermakov
56a9d16fc4
FTP: Save errno in _copy_file().
2014-10-05 13:19:13 +04:00
Vladimir Ermakov
ef5a93c09c
FTP: Add file checksum calculation command.
2014-09-22 15:19:38 +04:00
Vladimir Ermakov
8eb3100616
FTP: Rename command.
...
Payload: `<oldpath>\0<newpath>`
See: man 2 rename
2014-09-22 13:48:43 +04:00
Vladimir Ermakov
407a4e0f06
FTP: fix truncate errors. Also correct errno reporting.
...
Seems that warnx() everytime changes originak errno to EINVAL.
2014-09-17 20:02:32 +04:00
Vladimir Ermakov
f55d20a133
FTP: Add truncate command.
...
Unfortunately NuttX not provides truncate(),
had to be emulated by copying with O_TRUNC flag.
2014-09-17 18:42:00 +04:00
Vladimir Ermakov
72887e14d9
FTP: Implement write command.
2014-09-17 13:04:21 +04:00
Vladimir Ermakov
60c63f4872
FTP: Add new open command for write.
...
All open commands now return file size.
2014-09-17 10:07:29 +04:00
Vladimir Ermakov
006717734c
FTP: Add skip entry information for proper offset calculation.
2014-09-15 21:29:19 +04:00
Don Gagne
981741f8ce
Don't send back U or ./.. entries from List command
2014-09-10 13:11:36 -07:00
Vladimir Ermakov
0e3c6060b6
FTP: remove padding zeroing.
2014-09-10 21:36:08 +04:00
Vladimir Ermakov
745707d193
FTP: remove reserved uint32 from header.
2014-09-10 11:22:03 +04:00
Vladimir Ermakov
0d2e250d11
FTP: Remove CRC32 from protocol.
...
Extra crc not needed because mavlink already has crc16.
2014-09-09 17:36:41 +04:00
Vladimir Ermakov
564c9b7b60
FTP: Add req_opcode field for return request opcode in response message.
2014-09-09 17:02:25 +04:00
Don Gagne
828fb5efd1
Additional FTP command support plus unit test
...
- Restructured to a flatter class implementation
- Added support for create/remove directory, remove file
- Refactored error codes and command opcodes
- Added unit test support
- Fixed bugs found by unit test
2014-09-02 15:36:32 -07:00
Don Gagne
fce0a3b728
Gave up on using bitfields
2014-08-27 21:39:55 -07:00
Don Gagne
0eea110f6f
Modified to use new FILE_TRANSFER_PROTOCOL message
...
- Also corrected system/component id transmit/check
2014-08-27 17:14:49 -07:00
Don Gagne
c8ecf59ab7
List command bug fix, easier debugging
...
- List command was generating bad data size because it was adding
directory entry char to buffer before testing buffer overflow.
- Added MAVLINK_FTP_DEBUG define to easily turn on/off noisier
debugging output
2014-08-12 14:23:26 -07:00
Don Gagne
1d3edfa629
More FTP support
...
Added:
- sequence numbers
- directory list returns file sizes
- open command returns file size in data
2014-08-10 12:02:10 -07:00
Lorenz Meier
1ac2b307e4
Enable stricter compile mode and ensure the most relevant bits are initialized. Needs more work to avoid the remaining warnings
2014-07-15 18:23:17 +02:00
Lorenz Meier
9f1661f1f8
Silence FTP transactions, be vocal about errors
2014-07-08 09:58:08 +02:00
Lorenz Meier
9a1e920f4b
Merge pull request #1137 from DonLakeFlyer/FTPLogging
...
Better FTP logging
2014-07-07 22:14:30 +02:00
Don Gagne
f5c14ff140
Turn off noisier logging
2014-07-07 10:17:39 -07:00
Don Gagne
2a79689224
Fix unused variable warnings
2014-07-06 16:51:06 -07:00
Don Gagne
b8ba6400f2
More logging
2014-07-06 16:04:30 -07:00
Don Gagne
91537934c4
Better logging
2014-07-06 14:58:27 -07:00
Don Gagne
f3af2f9f62
Fix tabbing to 8 spaces, keep tab
2014-06-29 13:47:56 -07:00
Don Gagne
a398d5cbcc
Support for List, Open, Read, Terminate commands
...
Fixed various bugs. Flattened Mavlink::Session class while fixing bugs
in this area.
2014-06-27 20:33:39 -07:00
px4dev
0ef6605498
Fix packing of directory entries in the List reply
2014-06-08 10:13:55 -07:00
Lorenz Meier
a103fef948
Fixed threading and transmission issues for FTP
2014-06-08 18:51:35 +02:00
px4dev
e890661900
Don't queue empty work items.
2014-06-07 14:46:46 -07:00
px4dev
99dfef357b
fix extraction of path info from FTP request
2014-06-07 12:54:04 -07:00
px4dev
ef7c57f1ce
Implement directory listing
2014-05-04 12:25:25 -07:00
px4dev
12390d7281
WIP: Mavlink file server
2014-05-04 11:19:26 -07:00