Commit Graph

77 Commits

Author SHA1 Message Date
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