mirror of
https://github.com/manos555555/PS5-Suite.git
synced 2026-10-06 13:00:25 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a837ea9fe1 | ||
|
|
ac7cea2e4b | ||
|
|
abaa028d28 | ||
|
|
45afca892c | ||
|
|
f065b79b33 | ||
|
|
4403d86be5 | ||
|
|
af252efc9a | ||
|
|
2da27aed13 |
No files matched your search
+296
@@ -1,5 +1,301 @@
|
||||
# Changelog - PS5 Upload Suite
|
||||
|
||||
## Version 4.1.0 - Memory Optimization & Large File Handling (February 5, 2026)
|
||||
|
||||
### 🧠 Memory & Performance Improvements
|
||||
|
||||
#### 1. Large File Count Support (156K+ Files)
|
||||
- **Fixed crash** with games containing 156,253+ files (e.g., Astrobot)
|
||||
- **Removed massive dictionary** - No longer creates 156K FileInfo objects at once
|
||||
- **Incremental calculation** - Total bytes calculated progressively during scan
|
||||
- **Memory efficient** - Handles unlimited file counts without OutOfMemoryException
|
||||
|
||||
#### 2. Lock-Free Progress Tracking
|
||||
- **ConcurrentDictionary** - Replaced Dictionary with thread-safe collections
|
||||
- **Zero lock contention** - Eliminated `lock (_progressLock)` blocks
|
||||
- **Atomic operations** - Uses `Interlocked.Add()` for progress updates
|
||||
- **Smooth UI** - No stuttering from lock contention
|
||||
|
||||
#### 3. Auto Memory Cleanup
|
||||
- **Completed files removed** - Dictionaries cleaned after file completion
|
||||
- **Reduced memory footprint** - Only active uploads tracked
|
||||
- **Prevents memory overflow** - Long-running uploads stay stable
|
||||
|
||||
#### 4. Reduced UI Stuttering
|
||||
- **Batch logging** - Small files logged every 50 completions (up from 25)
|
||||
- **Less UI pressure** - Fewer `Dispatcher.Invoke()` calls
|
||||
- **Smoother experience** - Especially noticeable with 100K+ files
|
||||
|
||||
### 🔧 Technical Changes
|
||||
- Changed `_fileProgressBytes` from Dictionary to ConcurrentDictionary
|
||||
- Changed `_fileChunkProgressBytes` from Dictionary to ConcurrentDictionary
|
||||
- Changed `_chunkLogLastBytes` from Dictionary to ConcurrentDictionary
|
||||
- Removed `fileSizeLookup` dictionary creation (caused OutOfMemoryException)
|
||||
- Increased `SmallFileLogBatchSize` from 25 to 50
|
||||
- Added dictionary cleanup in file completion handlers
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
- Fixed application crash when uploading games with 156K+ files
|
||||
- Fixed UI stuttering during small file uploads
|
||||
- Fixed memory overflow from massive dictionary allocations
|
||||
- Fixed lock contention causing UI freezes
|
||||
|
||||
### 📊 Tested With
|
||||
- **Astrobot**: 156,253 files, 1,724 directories
|
||||
- **Result**: Zero crashes, smooth upload, stable memory usage
|
||||
|
||||
---
|
||||
|
||||
## Version 4.0.0 - Retry Feature & Stability Improvements (January 27, 2026)
|
||||
|
||||
### ✨ New Features
|
||||
|
||||
#### 🔄 Retry Failed Transfers
|
||||
- **Right-click context menu** on failed transfers
|
||||
- **Retry Upload** - Re-queue failed files for upload
|
||||
- **Remove from List** - Clear individual failed items
|
||||
- **Persistent paths** - Failed transfers store local and remote paths
|
||||
- **Smart retry** - Validates file existence before retry
|
||||
|
||||
#### 🗑️ Clear All Button Fix
|
||||
- **Transfer History Clear All** now works correctly
|
||||
- **Confirmation dialog** before clearing history
|
||||
- **Clears both** completed and failed transfers
|
||||
|
||||
### 🔧 Performance & Stability
|
||||
|
||||
#### Connection Stability
|
||||
- **Reverted 16MB buffer** - Caused connection drops with 16 parallel connections
|
||||
- **Stable 8MB buffer** - Proven reliable for high-speed transfers
|
||||
- **TCP NoDelay** - Already enabled for optimal performance
|
||||
- **16MB socket buffers** - Maintained for maximum throughput
|
||||
|
||||
#### Upload Performance
|
||||
- **Large files (>100MB)**: 30-36 MB/s per file
|
||||
- **Small files (<100MB)**: 8-12 MB/s per file
|
||||
- **4 parallel large files** - Prevents PS5 memory exhaustion
|
||||
- **16 total connections** - Optimal for mixed workloads
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
- Fixed Clear All button not clearing transfer history
|
||||
- Fixed connection drops when using oversized buffers
|
||||
- Added proper event handlers for failed transfer context menu
|
||||
- Improved error handling for retry operations
|
||||
|
||||
### 📝 Code Quality
|
||||
- Added comprehensive inline documentation
|
||||
- Improved code organization and readability
|
||||
- Better error messages for failed operations
|
||||
- Enhanced UI feedback for user actions
|
||||
|
||||
---
|
||||
|
||||
## Version 3.3.0 - Smart Search & Enhanced Mobile (January 26, 2026)
|
||||
|
||||
### 🔍 Smart Search Feature
|
||||
- **Full Filesystem Indexing** - Index entire PS5 filesystem (200,000+ files)
|
||||
- **Instant Search** - Lightning-fast search with wildcards (`*.pkg`, `*loader*`)
|
||||
- **Size Filters** - Search by file size (`size:>1GB`, `size:<100MB`)
|
||||
- **Case-Insensitive** - Matches both filename and full path
|
||||
- **Navigate from Search** - Double-click results to jump to folder (Desktop) / Tap to navigate (Mobile)
|
||||
- **Index Status** - Real-time indexing progress with file/directory counts
|
||||
- **Smart Indexing** - Skips problematic directories (`/dev`, `/proc`, `/sys`)
|
||||
|
||||
### 📱 Mobile App v1.2
|
||||
- **🔍 Search Tab** - Full Smart Search functionality on Android
|
||||
- **Navigate to Location** - Tap search results to navigate to folder
|
||||
- **Copy Path** - Copy file paths to clipboard from search results
|
||||
- **Connection Manager** - Singleton pattern for reliable IP/port management
|
||||
- **Improved Navigation** - Fixed MainPage reference for seamless navigation
|
||||
|
||||
### 🖥️ Desktop Client Updates
|
||||
- **Search Tab** - New dedicated tab for Smart Search
|
||||
- **💻 Shell Terminal** - Execute commands directly on PS5
|
||||
- Run system commands remotely
|
||||
- Real-time output display
|
||||
- Command history
|
||||
- Working directory support
|
||||
- **Equal Panel Layout** - Local Files, PS5 Files, and Right panel now equal width
|
||||
- **Improved UI** - Index Status and buttons positioned above search box
|
||||
- **Debounced Search** - Smooth typing experience with 300ms debounce
|
||||
|
||||
### 🔧 Payload Updates
|
||||
- **Indexing Commands** - `CMD_INDEX_START` (0x40), `CMD_INDEX_STATUS` (0x41), `CMD_SEARCH_INDEX` (0x42)
|
||||
- **In-Memory Index** - Linked list structure for fast search
|
||||
- **Wildcard Matching** - Support for `*` and `?` wildcards
|
||||
- **Thread-Safe** - Mutex-protected index operations
|
||||
- **Root Path Support** - Can index from `/` (entire filesystem)
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
- Fixed indexing hangs when scanning root directory
|
||||
- Fixed search protocol compatibility between mobile and desktop
|
||||
- Fixed navigation stack issues in mobile app
|
||||
- Fixed nullable reference warnings in mobile code
|
||||
- Added proper error handling for index operations
|
||||
|
||||
---
|
||||
|
||||
## Version 3.2.1 - Privacy & Bug Fixes (January 24, 2026)
|
||||
|
||||
### 🔒 Privacy Improvements
|
||||
- **Removed disk space display** - No longer shows PS5 storage capacity (Free/Used/Total)
|
||||
- **Fixed storage query bug** - Resolved syntax errors in statvfs code that could cause crashes
|
||||
- **Privacy-focused** - Application no longer queries or displays sensitive storage information
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
- Fixed potential crash from malformed storage query code
|
||||
- Removed unused protocol busy flag that caused compiler warnings
|
||||
- Cleaned up all storage-related UI elements and backend code
|
||||
|
||||
---
|
||||
|
||||
## Version 3.2.0 - Mobile Improvements & Bug Fixes (January 24, 2026)
|
||||
|
||||
### 🎯 Improvements
|
||||
|
||||
#### 💾 Accurate Storage Display
|
||||
- **Storage now matches PS5 UI** - Shows ~848 GB instead of raw 872 GB
|
||||
- **Accounts for reserved space** - Same calculation as PS5 system
|
||||
- Uses proper calculation: `(total_blocks - reserved) * block_size`
|
||||
|
||||
#### 📱 Mobile App Improvements
|
||||
- **Multi-select mode** - Toggle button (☑️/✅) to select multiple files/folders
|
||||
- **Folder browser** - Visual folder picker for Copy/Move destinations with recursive navigation
|
||||
- **Sorted file list** - Folders always displayed at top, then files (alphabetically)
|
||||
- **Exit confirmation** - Prompt dialog when pressing back button
|
||||
- **Delete folders** - Now supports folder deletion (not just files)
|
||||
- **Batch operations** - Delete/download multiple items at once
|
||||
|
||||
#### 3. 🐛 Bug Fixes
|
||||
- **Fixed empty folder deletion** - No more "Unexpected response" error when deleting empty directories
|
||||
- **Fixed Copy/Move crash** - No longer crashes when selecting destination folder (saved file info before browsing)
|
||||
- **Fixed multi-select count** - Correct item count in delete confirmation dialog
|
||||
- **Fixed folder navigation** - Can enter folders after actions complete (auto-exit multi-select mode)
|
||||
|
||||
---
|
||||
|
||||
## Version 3.1.0 - Parallel Chunked Uploads (January 2026)
|
||||
|
||||
### 🚀 Performance Improvements
|
||||
|
||||
#### 1. ⚡ Parallel Chunked Uploads (104 MB/s!)
|
||||
- **Large files (>100MB)** are now split into 500MB chunks
|
||||
- **4 parallel connections** upload chunks simultaneously
|
||||
- **Result:** ~104 MB/s upload speed (2x faster than before!)
|
||||
- **Fixed race condition:** First chunk creates file before others start
|
||||
- **Fixed closure bug:** Correct offset/size capture for parallel tasks
|
||||
|
||||
#### 2. 📊 Real-time Progress Display
|
||||
- **Speed display** now updates in real-time during chunked uploads
|
||||
- **ETA display** shows accurate time remaining
|
||||
- **Progress bar** correctly shows 0-100% for chunked files
|
||||
- No more speed dropping to 0 during large file uploads
|
||||
|
||||
#### 3. 💾 Storage Display Improvements
|
||||
- **Changed label** to "Data Storage (/data)" for clarity
|
||||
- **Uses statfs with f_bavail** for more accurate available space
|
||||
- **Real-time updates** every 5 seconds when connected
|
||||
|
||||
---
|
||||
|
||||
## Version 3.0.0 - Mobile Client & Path Fixes (January 2026)
|
||||
|
||||
### 🐛 Critical Bug Fixes
|
||||
|
||||
#### 1. 🔧 Path Normalization Fix
|
||||
- **Fixed:** Double-slash paths (`//mnt/ext1/...`) that caused directory creation to fail
|
||||
- **Affected:** All file operations (upload, download, delete, rename, copy, move)
|
||||
- **Solution:** Added `NormalizePath()` function in both client and server
|
||||
- **Result:** 100% reliable directory creation and file uploads
|
||||
|
||||
#### 2. 📱 Android Mobile Client
|
||||
- **NEW:** Full-featured Android app for PS5 file management
|
||||
- **Multi-PS5 Profiles** - Save and switch between multiple PS5 consoles
|
||||
- Upload files from phone to PS5
|
||||
- Download files from PS5 with Share option
|
||||
- Browse PS5 filesystem
|
||||
- Create new folders
|
||||
- Rename files/folders
|
||||
- Copy files/folders
|
||||
- Move files/folders
|
||||
- Delete files
|
||||
- Favorites for quick navigation
|
||||
- Debug Log with Copy to clipboard
|
||||
- Transfer History tracking
|
||||
|
||||
#### 3. 🛠️ Server Improvements
|
||||
- Path normalization in all handler functions
|
||||
- More robust error handling
|
||||
- Improved stability for parallel uploads
|
||||
|
||||
---
|
||||
|
||||
## Version 2.1.0 - Performance & History (January 2026)
|
||||
|
||||
### 🚀 Performance Optimizations
|
||||
|
||||
#### 1. ⚡ Massive Upload Speed Boost (88-110 MB/s)
|
||||
- **Server-side:** Replaced `fwrite()` with direct `write()` syscalls
|
||||
- **Client-side:** 8 parallel large file uploads (optimal for PS5 disk)
|
||||
- **Result:** 80-110 MB/s aggregate upload speed on Gigabit Ethernet
|
||||
- **Peak bursts:** Up to 2.05 GB/s when hitting disk cache
|
||||
- **Per-file:** 11-14 MB/s sustained per connection
|
||||
|
||||
#### 2. 📊 Transfer History
|
||||
- Complete history of all uploads and downloads
|
||||
- Success/Failed status tracking with error messages
|
||||
- Speed statistics (average, min, max)
|
||||
- Export to CSV/JSON for analysis
|
||||
- Persistent storage across sessions
|
||||
|
||||
#### 3. 🔄 Auto-Clear History on Startup
|
||||
- Optional checkbox to clear history automatically
|
||||
- Useful for keeping UI clean between sessions
|
||||
- Setting saved in `ps5_upload_settings.json`
|
||||
|
||||
#### 4. 🖥️ Maximized Window UI
|
||||
- Application opens in full-screen mode by default
|
||||
- Better visibility for large file transfers
|
||||
- Can be resized/restored as needed
|
||||
|
||||
### Technical Improvements
|
||||
- ✅ **16MB socket buffers** (up from 4MB) for maximum throughput
|
||||
- ✅ **Per-file mutex locking** - Parallel writes without race conditions
|
||||
- ✅ **File pre-allocation** - Reduces disk fragmentation for large files
|
||||
- ✅ **Direct syscalls** - Bypasses stdio buffering overhead
|
||||
|
||||
---
|
||||
|
||||
## Version 2.0.0 - Download & Multi-PS5 (January 2026)
|
||||
|
||||
### 🎉 4 Major New Features
|
||||
|
||||
#### 1. 📥 Download Files (PS5 → PC)
|
||||
- Right-click any file → "⬇️ Download to PC"
|
||||
- Save file dialog for destination selection
|
||||
- Real-time progress tracking with speed display
|
||||
- Optimized with sendfile for maximum speed
|
||||
|
||||
#### 2. 🔍 File Search
|
||||
- Search box in PS5 Files panel
|
||||
- Real-time filtering as you type
|
||||
- Case-insensitive search
|
||||
- Quick "Clear" button to reset
|
||||
|
||||
#### 3. ⭐ Favorites/Bookmarks
|
||||
- Save frequently used PS5 paths
|
||||
- Quick dropdown navigation
|
||||
- Add/Remove favorite paths
|
||||
- Persistent storage in JSON
|
||||
|
||||
#### 4. 🎮 Multi-PS5 Support
|
||||
- Save multiple PS5 profiles (IP + name)
|
||||
- Quick switch between different PS5 consoles
|
||||
- Dropdown profile selector
|
||||
- Persistent profile storage
|
||||
|
||||
---
|
||||
|
||||
## Version 1.3.0 - Stable Release (January 13, 2026)
|
||||
|
||||
### 🎯 Major Achievement
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -2,11 +2,16 @@
|
||||
|
||||
**By Manos**
|
||||
|
||||
**Version 3.1.0 - Parallel Chunked Uploads & Real-time Progress**
|
||||
**Version 4.1.0 - Memory Optimization & Large File Handling**
|
||||
|
||||
Custom high-speed file transfer system for PS5 with etaHEN. Achieves **104+ MB/s** upload speeds for large files using parallel chunked uploads!
|
||||
|
||||
⭐ **NEW in v3.1.0:** Parallel chunked uploads (2x faster!), real-time speed/ETA display, storage improvements!
|
||||
⭐ **NEW in v4.1.0:**
|
||||
- 🧠 **Memory Optimization** - Handles 156K+ files without crashes
|
||||
- ⚡ **Reduced UI Stuttering** - Batch logging for smoother experience
|
||||
- 🔧 **Lock-Free Operations** - ConcurrentDictionary for thread-safety
|
||||
- 🧹 **Auto Memory Cleanup** - Completed files removed from tracking
|
||||
- � **Incremental Processing** - No massive dictionary allocations
|
||||
|
||||
📱 **Android Mobile Client available!**
|
||||
|
||||
@@ -15,49 +20,32 @@ Custom high-speed file transfer system for PS5 with etaHEN. Achieves **104+ MB/s
|
||||
|
||||
---
|
||||
|
||||
## 📦 What's Included
|
||||
## 📦 Downloads
|
||||
|
||||
Download the latest release from the [Releases](https://github.com/manos555555/PS5-Upload-Suite/releases) page:
|
||||
|
||||
### 1. PS5 Server Payload
|
||||
- **File:** `payload/ps5_upload_server.elf`
|
||||
- **File:** `ps5_upload_server.elf`
|
||||
- **Port:** 9113
|
||||
- **Protocol:** Custom binary (optimized for speed)
|
||||
- **Features:**
|
||||
- 16MB socket buffers (optimized for maximum throughput)
|
||||
- SO_NOSIGPIPE enabled
|
||||
- TCP_NODELAY for low latency
|
||||
- Direct `write()` syscalls (bypasses stdio buffering for 80-110 MB/s upload)
|
||||
- Per-file mutex locking (parallel writes without race conditions)
|
||||
- File pre-allocation for large files (reduces fragmentation)
|
||||
- Multi-threaded client handling
|
||||
- High-speed custom binary protocol
|
||||
- 16MB socket buffers for maximum throughput
|
||||
- Multi-threaded client handling
|
||||
|
||||
### 2. Windows GUI Client
|
||||
- **File:** `client/bin/Release/net6.0-windows/win-x64/publish/PS5Upload.exe`
|
||||
- **Framework:** .NET 6.0 WPF
|
||||
- **Features:**
|
||||
- Modern dark theme UI (opens maximized for better visibility)
|
||||
- Drag & drop file/folder upload
|
||||
- Browse PS5 filesystem
|
||||
- Real-time upload progress with speed tracking
|
||||
- 8 parallel large file uploads (optimal aggregate throughput)
|
||||
- 128MB TCP buffers for maximum network performance
|
||||
- Transfer History with success/failed tracking
|
||||
- Auto-clear history on startup option
|
||||
- Storage space display
|
||||
- Recursive folder upload
|
||||
- **File:** `PS5Upload.exe`
|
||||
- Self-contained executable (no .NET installation required)
|
||||
- Modern dark theme UI
|
||||
- Drag & drop file/folder upload
|
||||
- Real-time upload progress with speed tracking
|
||||
- Transfer History with success/failed tracking
|
||||
- Privacy-focused (no storage monitoring)
|
||||
|
||||
### 3. 📱 Android Mobile Client (NEW in v2.2.0)
|
||||
- **File:** `mobile/bin/Release/net6.0-android/publish/com.ps5tools.uploadsuite-Signed.apk`
|
||||
- **Framework:** .NET MAUI
|
||||
- **Features:**
|
||||
- **Multi-PS5 Profiles** - Save multiple PS5 with different IPs
|
||||
- Upload files from phone to PS5
|
||||
- Download files from PS5 to phone
|
||||
- Browse PS5 filesystem
|
||||
- Delete files/folders
|
||||
- Favorites for quick navigation
|
||||
- Debug Log with Copy function
|
||||
- Transfer History
|
||||
- Share downloaded files
|
||||
### 3. 📱 Android Mobile Client
|
||||
- **File:** `PS5UploadMobile.apk`
|
||||
- Upload/download files from your phone
|
||||
- Multi-PS5 Profiles support
|
||||
- Browse PS5 filesystem
|
||||
- Favorites for quick navigation
|
||||
|
||||
---
|
||||
|
||||
@@ -65,17 +53,13 @@ Custom high-speed file transfer system for PS5 with etaHEN. Achieves **104+ MB/s
|
||||
|
||||
### Step 1: Load PS5 Payload
|
||||
|
||||
1. Copy `payload/ps5_upload_server.elf` to your PS5:
|
||||
```
|
||||
/data/etaHEN/payloads/ps5_upload_server.elf
|
||||
```
|
||||
1. Download `ps5_upload_server.elf` from the [Releases](https://github.com/manos555555/PS5-Upload-Suite/releases) page
|
||||
|
||||
2. Load the payload with elfldr
|
||||
2. Copy it to your PS5: `/data/etaHEN/payloads/ps5_upload_server.elf`
|
||||
|
||||
3. You should see notification:
|
||||
```
|
||||
PS5 Upload Server: 192.168.0.XXX:9113 - By Manos
|
||||
```
|
||||
3. Load the payload with elfldr
|
||||
|
||||
4. You should see notification: `PS5 Upload Server: 192.168.0.XXX:9113 - By Manos`
|
||||
|
||||
### Step 2: Run Windows Client
|
||||
|
||||
@@ -105,15 +89,24 @@ Custom high-speed file transfer system for PS5 with etaHEN. Achieves **104+ MB/s
|
||||
✅ **Drag & Drop** - Files and folders
|
||||
✅ **Browse PS5** - Navigate filesystem
|
||||
✅ **Real-time Progress** - Speed & percentage tracking
|
||||
✅ **Optimized Upload** - 8 parallel connections for 88-110 MB/s aggregate speed (NEW v2.1)
|
||||
✅ **Transfer History** - Track all uploads/downloads with success/failed status (NEW v2.1)
|
||||
✅ **Auto-Clear History** - Optional auto-clear on startup (NEW v2.1)
|
||||
✅ **Optimized Upload** - 8 parallel connections for 88-110 MB/s aggregate speed
|
||||
✅ **Transfer History** - Track all uploads/downloads with success/failed status
|
||||
✅ **Auto-Clear History** - Optional auto-clear on startup
|
||||
✅ **Folder Upload** - Recursive directory upload
|
||||
✅ **Storage Info** - Free space display
|
||||
✅ **Download Files** - Download from PS5 to PC (v2.0)
|
||||
✅ **File Search** - Real-time filtering of PS5 files (v2.0)
|
||||
✅ **Favorites/Bookmarks** - Quick navigation to saved paths (v2.0)
|
||||
✅ **Multi-PS5 Support** - Save and switch between multiple PS5 profiles (v2.0)
|
||||
✅ **Download Files** - Download from PS5 to PC
|
||||
✅ **🔍 Smart Search** - Full filesystem indexing with instant search (NEW v3.3)
|
||||
- Wildcard support: `*.pkg`, `*loader*`, `game*.bin`
|
||||
- Size filters: `size:>1GB`, `size:<100MB`
|
||||
- Case-insensitive matching
|
||||
- Search both filename and full path
|
||||
- Double-click to navigate to folder
|
||||
✅ **💻 Shell Terminal** - Execute commands directly on PS5 (NEW v3.3)
|
||||
- Run system commands remotely
|
||||
- Real-time output display
|
||||
- Command history
|
||||
- Working directory support
|
||||
✅ **Favorites/Bookmarks** - Quick navigation to saved paths
|
||||
✅ **Multi-PS5 Support** - Save and switch between multiple PS5 profiles
|
||||
|
||||
---
|
||||
|
||||
@@ -140,55 +133,6 @@ Custom high-speed file transfer system for PS5 with etaHEN. Achieves **104+ MB/s
|
||||
|
||||
**Note:** Upload speeds depend on network quality and PS5 disk write performance. WiFi has ~40-60% overhead compared to Ethernet.
|
||||
|
||||
---
|
||||
|
||||
## 🔧 Building from Source
|
||||
|
||||
### PS5 Payload
|
||||
|
||||
Requirements:
|
||||
- PS5 SDK (prospero-clang)
|
||||
- WSL or Linux
|
||||
|
||||
```bash
|
||||
cd payload
|
||||
bash compile.sh
|
||||
```
|
||||
|
||||
### Windows Client
|
||||
|
||||
Requirements:
|
||||
- .NET 6.0 SDK or later
|
||||
- Windows 10/11
|
||||
|
||||
```cmd
|
||||
cd client
|
||||
build.bat
|
||||
```
|
||||
|
||||
Or manually:
|
||||
```cmd
|
||||
dotnet publish -c Release -r win-x64 --self-contained true
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📋 Protocol Specification
|
||||
|
||||
See [PROTOCOL.md](PROTOCOL.md) for detailed protocol documentation.
|
||||
|
||||
### Commands
|
||||
- `PING` - Test connection
|
||||
- `LIST_STORAGE` - Get storage info
|
||||
- `LIST_DIR` - List directory contents
|
||||
- `CREATE_DIR` - Create directory
|
||||
- `DELETE_FILE` - Delete file
|
||||
- `DELETE_DIR` - Delete directory
|
||||
- `START_UPLOAD` - Begin file upload
|
||||
- `UPLOAD_CHUNK` - Upload file chunk
|
||||
- `END_UPLOAD` - Finish upload
|
||||
- `DOWNLOAD_FILE` - Download file from PS5 (NEW v2.0)
|
||||
- `SHUTDOWN` - Shutdown server
|
||||
|
||||
---
|
||||
|
||||
@@ -220,6 +164,30 @@ See [PROTOCOL.md](PROTOCOL.md) for detailed protocol documentation.
|
||||
|
||||
---
|
||||
|
||||
## 📝 What's New in v3.2.0
|
||||
|
||||
### 🎯 Improvements:
|
||||
|
||||
#### 1. 💾 Accurate Storage Display
|
||||
- **Storage now matches PS5 UI** - Shows ~848 GB instead of raw 872 GB
|
||||
- **Accounts for reserved space** - Same calculation as PS5 system
|
||||
|
||||
#### 2. 📱 Mobile App Improvements
|
||||
- **Multi-select mode** - Toggle button to select multiple files/folders
|
||||
- **Folder browser** - Visual folder picker for Copy/Move destinations
|
||||
- **Sorted file list** - Folders always displayed at top
|
||||
- **Exit confirmation** - Prompt when pressing back button
|
||||
- **Delete folders** - Now supports folder deletion (not just files)
|
||||
- **Batch operations** - Delete/download multiple items at once
|
||||
|
||||
#### 3. 🐛 Bug Fixes
|
||||
- **Fixed empty folder deletion** - No more "Unexpected response" error
|
||||
- **Fixed Copy/Move crash** - No longer crashes when selecting destination
|
||||
- **Fixed multi-select count** - Correct item count in delete confirmation
|
||||
- **Fixed folder navigation** - Can enter folders after actions complete
|
||||
|
||||
---
|
||||
|
||||
## 📝 What's New in v3.1.0
|
||||
|
||||
### 🚀 Performance Improvements:
|
||||
@@ -345,7 +313,7 @@ See [PROTOCOL.md](PROTOCOL.md) for detailed protocol documentation.
|
||||
|
||||
## 📝 License
|
||||
|
||||
MIT License - Free to use and modify
|
||||
This software is provided as-is for personal use.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -1,257 +0,0 @@
|
||||
# 🚀 PS5 Upload Suite v2.1.0 - Performance & UX Release
|
||||
|
||||
**Release Date:** January 19, 2026
|
||||
**By Manos**
|
||||
|
||||
---
|
||||
|
||||
## 🎯 Overview
|
||||
|
||||
Version 2.1.0 brings **massive performance improvements** to upload speeds and several quality-of-life enhancements. Upload speeds have been optimized to achieve **88-110 MB/s aggregate throughput** on Gigabit Ethernet, with peak bursts up to **2.05 GB/s**.
|
||||
|
||||
---
|
||||
|
||||
## ⚡ What's New
|
||||
|
||||
### 1. 🚀 Massive Upload Speed Boost (88-110 MB/s)
|
||||
|
||||
**The Problem:**
|
||||
- Previous versions achieved 60-150 MB/s download speeds but only 4-12 MB/s upload speeds
|
||||
- Upload was bottlenecked by stdio buffering (`fwrite()`) and single-threaded disk writes
|
||||
|
||||
**The Solution:**
|
||||
- **Server-side:** Replaced `fwrite()` with direct `write()` syscalls
|
||||
- Bypasses stdio buffering overhead
|
||||
- Eliminates unnecessary memory copies
|
||||
- Direct kernel I/O for maximum performance
|
||||
|
||||
- **Client-side:** Optimized to 8 parallel large file uploads
|
||||
- Leverages PS5 disk's parallel write capacity
|
||||
- 128MB TCP buffers for maximum network throughput
|
||||
- Intelligent queuing system for large files (>100MB)
|
||||
|
||||
**Results:**
|
||||
- ✅ **88-110 MB/s** aggregate upload speed (Gigabit Ethernet)
|
||||
- ✅ **11-14 MB/s** per file sustained
|
||||
- ✅ **Peak bursts:** 610 MB/s - 2.05 GB/s (disk cache hits)
|
||||
- ✅ **WiFi 6:** 32-70 MB/s aggregate (still 3-5x faster than before)
|
||||
|
||||
### 2. 📊 Transfer History
|
||||
|
||||
**New Feature:** Complete tracking of all file transfers
|
||||
|
||||
- **Success/Failed Tracking:** Every upload and download is logged with status
|
||||
- **Speed Statistics:** Average, min, and max speeds for each transfer
|
||||
- **Error Messages:** Detailed error information for failed transfers
|
||||
- **Persistent Storage:** History saved to `ps5_transfer_history.json`
|
||||
- **Export Options:** Export to CSV or JSON for analysis
|
||||
- **Tabs:**
|
||||
- **All:** Complete transfer history
|
||||
- **Completed:** Only successful transfers
|
||||
- **Failed:** Only failed transfers (with retry/remove options)
|
||||
|
||||
**Use Cases:**
|
||||
- Verify all files uploaded successfully
|
||||
- Identify problematic files
|
||||
- Track transfer performance over time
|
||||
- Audit file operations
|
||||
|
||||
### 3. 🔄 Auto-Clear History on Startup
|
||||
|
||||
**New Feature:** Optional automatic history clearing
|
||||
|
||||
- **Checkbox:** "🔄 Auto Clear on Startup" in Transfer History section
|
||||
- **Persistent Setting:** Saved to `ps5_upload_settings.json`
|
||||
- **Use Case:** Keep UI clean between sessions without manual clearing
|
||||
- **Flexible:** Can be toggled on/off at any time
|
||||
|
||||
### 4. 🖥️ Maximized Window UI
|
||||
|
||||
**Improvement:** Better default window size
|
||||
|
||||
- Application now opens in **maximized mode** by default
|
||||
- Better visibility for large file transfers and logs
|
||||
- More space for Transfer History and file lists
|
||||
- Can still be resized/restored as needed
|
||||
|
||||
---
|
||||
|
||||
## 🔧 Technical Improvements
|
||||
|
||||
### Server (ps5_upload_server.elf)
|
||||
|
||||
1. **Direct Syscalls for Upload:**
|
||||
```c
|
||||
// OLD: fwrite() + fflush() (slow)
|
||||
fwrite(data, 1, data_len, upload_fp);
|
||||
fflush(upload_fp);
|
||||
|
||||
// NEW: direct write() syscall (fast)
|
||||
write(upload_fd, data, data_len);
|
||||
```
|
||||
|
||||
2. **16MB Socket Buffers:**
|
||||
- Increased from 4MB to 16MB
|
||||
- `SO_RCVBUF` and `SO_SNDBUF` set to 16MB
|
||||
- Reduces TCP stalls and retransmissions
|
||||
|
||||
3. **Per-File Mutex Locking:**
|
||||
- Each file has its own mutex
|
||||
- Parallel writes to different files without race conditions
|
||||
- Maximum disk throughput utilization
|
||||
|
||||
4. **File Pre-Allocation:**
|
||||
- Large files (>100MB) are pre-allocated on first chunk
|
||||
- Reduces disk fragmentation
|
||||
- Improves sustained write performance
|
||||
|
||||
### Client (PS5Upload.exe)
|
||||
|
||||
1. **8 Parallel Large File Uploads:**
|
||||
- Optimal balance for PS5 disk performance
|
||||
- `MAX_PARALLEL_LARGE_FILES = 8`
|
||||
- Intelligent queuing for files >100MB
|
||||
|
||||
2. **128MB TCP Buffers:**
|
||||
- `ReceiveBufferSize = 128MB`
|
||||
- `SendBufferSize = 128MB`
|
||||
- Maximum network throughput
|
||||
|
||||
3. **Transfer History System:**
|
||||
- `ObservableCollection` for real-time UI updates
|
||||
- JSON serialization for persistent storage
|
||||
- Separate collections for completed/failed transfers
|
||||
|
||||
4. **Settings Management:**
|
||||
- New settings file: `ps5_upload_settings.json`
|
||||
- Extensible for future preferences
|
||||
- Auto-loads on startup
|
||||
|
||||
---
|
||||
|
||||
## 📊 Performance Comparison
|
||||
|
||||
| Metric | v2.0.0 | v2.1.0 | Improvement |
|
||||
|--------|--------|--------|-------------|
|
||||
| **Upload Speed (Ethernet)** | 4-12 MB/s | 88-110 MB/s | **~10x faster** |
|
||||
| **Upload Speed (WiFi 6)** | 2-8 MB/s | 32-70 MB/s | **~8x faster** |
|
||||
| **Download Speed** | 100-120 MB/s | 100-120 MB/s | Same |
|
||||
| **Peak Burst** | 190 MB/s | 2.05 GB/s | **~10x faster** |
|
||||
|
||||
---
|
||||
|
||||
## 📦 Files Included in Release
|
||||
|
||||
### Client Application:
|
||||
- `PS5Upload.exe` - Main executable (self-contained, no .NET runtime needed)
|
||||
- `ps5_logo.png` - Application icon
|
||||
- All required DLLs bundled
|
||||
|
||||
### Server Payload:
|
||||
- `ps5_upload_server.elf` - Optimized PS5 payload for etaHEN
|
||||
|
||||
### Documentation:
|
||||
- `README.md` - Complete documentation
|
||||
- `PROTOCOL.md` - Protocol specification
|
||||
- `RELEASE_NOTES_v2.1.0.md` - This file
|
||||
|
||||
### Tools:
|
||||
- `check_transfer_log.py` - Python script to analyze transfer logs (drag & drop)
|
||||
|
||||
---
|
||||
|
||||
## 🚀 Installation
|
||||
|
||||
### PS5 Server:
|
||||
1. Copy `ps5_upload_server.elf` to `/data/etaHEN/payloads/`
|
||||
2. Load with elfldr
|
||||
3. Notification will show: "PS5 Upload Server: 192.168.0.XXX:9113 - By Manos"
|
||||
|
||||
### Windows Client:
|
||||
1. Extract `PS5Upload.exe` to any folder
|
||||
2. Run `PS5Upload.exe`
|
||||
3. Enter PS5 IP address and click Connect
|
||||
|
||||
**No installation required!** Both are portable executables.
|
||||
|
||||
---
|
||||
|
||||
## 🔄 Upgrading from v2.0.0
|
||||
|
||||
1. **Replace server payload:** Upload new `ps5_upload_server.elf` to PS5
|
||||
2. **Restart server:** Load the new payload with elfldr
|
||||
3. **Replace client:** Overwrite old `PS5Upload.exe` with new version
|
||||
4. **Done!** Your settings, favorites, and profiles are preserved
|
||||
|
||||
**Note:** Transfer history from v2.0.0 will NOT be migrated (new feature in v2.1.0).
|
||||
|
||||
---
|
||||
|
||||
## 🐛 Bug Fixes
|
||||
|
||||
- Fixed potential race condition in parallel uploads (per-file mutexes)
|
||||
- Fixed memory leak in long-running transfers (proper resource disposal)
|
||||
- Fixed UI freezing during large folder uploads (async operations)
|
||||
- Fixed socket timeout issues (increased to 5 minutes with keepalive)
|
||||
|
||||
---
|
||||
|
||||
## 🔮 Known Limitations
|
||||
|
||||
1. **Upload Speed on WiFi:**
|
||||
- WiFi has ~40-60% overhead compared to Ethernet
|
||||
- Expected: 32-70 MB/s on WiFi 6 vs 88-110 MB/s on Ethernet
|
||||
- This is a WiFi protocol limitation, not a software issue
|
||||
|
||||
2. **PS5 Disk Performance:**
|
||||
- Sustained upload speed limited by PS5 internal disk write speed
|
||||
- Single-threaded writes: 12-35 MB/s
|
||||
- Parallel writes (8 connections): 88-110 MB/s aggregate
|
||||
|
||||
3. **Large File Transfers:**
|
||||
- Files >100MB are chunked and uploaded in parallel
|
||||
- Requires sufficient RAM on both PC and PS5
|
||||
|
||||
---
|
||||
|
||||
## 🙏 Credits
|
||||
|
||||
- **PS5 SDK** - For the development tools
|
||||
- **etaHEN** - For enabling homebrew on PS5
|
||||
- **PS5 Homebrew Community** - For testing and feedback
|
||||
|
||||
---
|
||||
|
||||
## 📞 Support
|
||||
|
||||
For issues, questions, or feature requests:
|
||||
- **GitHub Issues:** https://github.com/manos555555/PS5-Upload-Suite/issues
|
||||
- **Discussions:** https://github.com/manos555555/PS5-Upload-Suite/discussions
|
||||
|
||||
---
|
||||
|
||||
## 📝 Changelog
|
||||
|
||||
### v2.1.0 (2026-01-19)
|
||||
- ⚡ Massive upload speed boost (88-110 MB/s aggregate)
|
||||
- 📊 Transfer History with success/failed tracking
|
||||
- 🔄 Auto-clear history on startup option
|
||||
- 🖥️ Maximized window UI by default
|
||||
- 🔧 Direct write() syscalls for upload (server-side)
|
||||
- 🔧 16MB socket buffers (up from 4MB)
|
||||
- 🔧 Per-file mutex locking for parallel writes
|
||||
- 🔧 File pre-allocation for large files
|
||||
- 🐛 Fixed race conditions in parallel uploads
|
||||
- 🐛 Fixed memory leaks in long transfers
|
||||
|
||||
### v2.0.0 (Previous Release)
|
||||
- 📥 Download files from PS5 to PC
|
||||
- 🔍 File search with real-time filtering
|
||||
- ⭐ Favorites/Bookmarks system
|
||||
- 🎮 Multi-PS5 profile support
|
||||
|
||||
---
|
||||
|
||||
**Enjoy blazing-fast file transfers on your PS5!** 🚀
|
||||
|
||||
**- Manos**
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,14 @@
|
||||
<?xml version = "1.0" encoding = "UTF-8" ?>
|
||||
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:local="clr-namespace:PS5UploadMobile"
|
||||
x:Class="PS5UploadMobile.App">
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
|
||||
<ResourceDictionary Source="Resources/Styles/Styles.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
</Application>
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace PS5UploadMobile;
|
||||
|
||||
public partial class App : Application
|
||||
{
|
||||
public App()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
MainPage = new AppShell();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<Shell
|
||||
x:Class="PS5UploadMobile.AppShell"
|
||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:local="clr-namespace:PS5UploadMobile"
|
||||
Shell.FlyoutBehavior="Disabled">
|
||||
|
||||
<ShellContent
|
||||
Title="Home"
|
||||
ContentTemplate="{DataTemplate local:MainPage}"
|
||||
Route="MainPage" />
|
||||
|
||||
</Shell>
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace PS5UploadMobile;
|
||||
|
||||
public partial class AppShell : Shell
|
||||
{
|
||||
public AppShell()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="PS5UploadMobile.MainPage"
|
||||
Title="PS5 Upload Suite">
|
||||
|
||||
<Grid RowDefinitions="Auto,Auto,Auto,*,Auto,Auto">
|
||||
|
||||
<!-- Top Bar with Menu -->
|
||||
<Grid Grid.Row="0" Padding="10" BackgroundColor="#1E1E1E" ColumnDefinitions="Auto,*,Auto">
|
||||
<Button Grid.Column="0" Text="☰" FontSize="24" BackgroundColor="Transparent"
|
||||
Clicked="OnMenuClicked" WidthRequest="50"/>
|
||||
<Label Grid.Column="1" Text="PS5 Upload Suite" FontSize="20" FontAttributes="Bold"
|
||||
TextColor="White" VerticalOptions="Center" HorizontalOptions="Center"/>
|
||||
<Button Grid.Column="2" Text="⭐" FontSize="20" BackgroundColor="Transparent"
|
||||
Clicked="OnAddFavoriteClicked" WidthRequest="50"/>
|
||||
</Grid>
|
||||
|
||||
<!-- Connection Panel -->
|
||||
<Frame Grid.Row="1" Padding="10" Margin="10,5,10,5" BackgroundColor="#1E1E1E" CornerRadius="8">
|
||||
<VerticalStackLayout Spacing="10">
|
||||
<Label Text="PS5 Connection" FontSize="18" FontAttributes="Bold" TextColor="White"/>
|
||||
|
||||
<Grid ColumnDefinitions="*,*" ColumnSpacing="10">
|
||||
<Entry x:Name="IpEntry" Grid.Column="0" Placeholder="PS5 IP (192.168.0.160)"
|
||||
Text="192.168.0.160" TextColor="White" PlaceholderColor="Gray"/>
|
||||
<Entry x:Name="PortEntry" Grid.Column="1" Placeholder="Port (9113)"
|
||||
Text="9113" Keyboard="Numeric" TextColor="White" PlaceholderColor="Gray"/>
|
||||
</Grid>
|
||||
|
||||
<Grid ColumnDefinitions="*,*" ColumnSpacing="10">
|
||||
<Button x:Name="ConnectBtn" Grid.Column="0" Text="Connect"
|
||||
Clicked="OnConnectClicked" BackgroundColor="#0078D4"/>
|
||||
<Button x:Name="DisconnectBtn" Grid.Column="1" Text="Disconnect"
|
||||
Clicked="OnDisconnectClicked" BackgroundColor="#D13438" IsEnabled="False"/>
|
||||
</Grid>
|
||||
|
||||
<Label x:Name="StatusLabel" Text="Not connected" FontSize="12"
|
||||
TextColor="Orange" HorizontalOptions="Center"/>
|
||||
</VerticalStackLayout>
|
||||
</Frame>
|
||||
|
||||
<!-- Path Navigation -->
|
||||
<Frame Grid.Row="2" Padding="10" Margin="10,0,10,5" BackgroundColor="#2D2D2D" CornerRadius="8">
|
||||
<Grid ColumnDefinitions="Auto,*,Auto">
|
||||
<Button Grid.Column="0" Text="⬆️" Clicked="OnUpDirectoryClicked"
|
||||
WidthRequest="50" BackgroundColor="#3E3E3E"/>
|
||||
<Entry x:Name="PathEntry" Grid.Column="1" Text="/data/"
|
||||
TextColor="White" Margin="10,0"/>
|
||||
<Button Grid.Column="2" Text="🔄" Clicked="OnRefreshClicked"
|
||||
WidthRequest="50" BackgroundColor="#3E3E3E"/>
|
||||
</Grid>
|
||||
</Frame>
|
||||
|
||||
<!-- File List -->
|
||||
<Frame Grid.Row="3" Padding="0" Margin="10,0,10,5" BackgroundColor="#2D2D2D" CornerRadius="8">
|
||||
<CollectionView x:Name="FileListView" SelectionMode="Single"
|
||||
SelectionChanged="OnFileSelected">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Padding="15,10" ColumnDefinitions="Auto,*,Auto">
|
||||
<Label Grid.Column="0" Text="{Binding Icon}" FontSize="20"
|
||||
VerticalOptions="Center" Margin="0,0,10,0"/>
|
||||
<VerticalStackLayout Grid.Column="1" VerticalOptions="Center">
|
||||
<Label Text="{Binding Name}" TextColor="White" FontSize="16"/>
|
||||
<Label Text="{Binding Size}" TextColor="Gray" FontSize="12"/>
|
||||
</VerticalStackLayout>
|
||||
<Label Grid.Column="2" Text="{Binding Type}" TextColor="Gray"
|
||||
FontSize="12" VerticalOptions="Center"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</Frame>
|
||||
|
||||
<!-- Progress Bar -->
|
||||
<Frame Grid.Row="4" Padding="10" Margin="10,0,10,5" BackgroundColor="#2D2D2D"
|
||||
CornerRadius="8" IsVisible="{Binding IsTransferring}">
|
||||
<VerticalStackLayout Spacing="5">
|
||||
<Label x:Name="ProgressLabel" Text="Uploading..." TextColor="White" FontSize="14"/>
|
||||
<ProgressBar x:Name="ProgressBar" Progress="0" ProgressColor="#0078D4"/>
|
||||
<Label x:Name="ProgressPercentLabel" Text="0%" TextColor="Gray"
|
||||
FontSize="12" HorizontalOptions="Center"/>
|
||||
</VerticalStackLayout>
|
||||
</Frame>
|
||||
|
||||
<!-- Action Buttons -->
|
||||
<Grid Grid.Row="5" Padding="10" ColumnDefinitions="*,*,*" ColumnSpacing="10">
|
||||
<Button Grid.Column="0" Text="📤 Upload" Clicked="OnUploadClicked"
|
||||
BackgroundColor="#107C10"/>
|
||||
<Button Grid.Column="1" Text="📥 Download" Clicked="OnDownloadClicked"
|
||||
BackgroundColor="#0078D4"/>
|
||||
<Button Grid.Column="2" Text="🗑️ Delete" Clicked="OnDeleteClicked"
|
||||
BackgroundColor="#D13438"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</ContentPage>
|
||||
@@ -0,0 +1,571 @@
|
||||
#nullable enable
|
||||
using PS5UploadMobile.Services;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace PS5UploadMobile;
|
||||
|
||||
public partial class MainPage : ContentPage
|
||||
{
|
||||
private PS5UploadService _uploadService;
|
||||
private ObservableCollection<FileItem> _files;
|
||||
private string _currentPath = "/data/";
|
||||
private FileItem? _selectedFile;
|
||||
|
||||
// New features
|
||||
private List<string> _favorites = new List<string>();
|
||||
private List<string> _debugLog = new List<string>();
|
||||
private List<string> _transferHistory = new List<string>();
|
||||
private const string FavoritesKey = "ps5_favorites";
|
||||
|
||||
// PS5 Profiles
|
||||
private Dictionary<string, string> _ps5Profiles = new Dictionary<string, string>(); // name -> ip:port
|
||||
private const string ProfilesKey = "ps5_profiles";
|
||||
private string _currentProfileName = "";
|
||||
|
||||
public MainPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
_uploadService = new PS5UploadService();
|
||||
_files = new ObservableCollection<FileItem>();
|
||||
FileListView.ItemsSource = _files;
|
||||
|
||||
_uploadService.LogMessage += OnLogMessage;
|
||||
_uploadService.ProgressChanged += OnProgressChanged;
|
||||
|
||||
LoadFavorites();
|
||||
LoadProfiles();
|
||||
}
|
||||
|
||||
// Menu button handler
|
||||
private async void OnMenuClicked(object sender, EventArgs e)
|
||||
{
|
||||
string action = await DisplayActionSheet("Menu", "Cancel", null,
|
||||
"🎮 PS5 Profiles",
|
||||
"📋 Debug Log",
|
||||
"📊 Transfer History",
|
||||
"⭐ Favorites",
|
||||
"🗑️ Clear Logs");
|
||||
|
||||
switch (action)
|
||||
{
|
||||
case "🎮 PS5 Profiles":
|
||||
await ShowProfiles();
|
||||
break;
|
||||
case "📋 Debug Log":
|
||||
await ShowDebugLog();
|
||||
break;
|
||||
case "📊 Transfer History":
|
||||
await ShowTransferHistory();
|
||||
break;
|
||||
case "⭐ Favorites":
|
||||
await ShowFavorites();
|
||||
break;
|
||||
case "🗑️ Clear Logs":
|
||||
_debugLog.Clear();
|
||||
_transferHistory.Clear();
|
||||
await DisplayAlert("Cleared", "Logs cleared", "OK");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private async Task ShowDebugLog()
|
||||
{
|
||||
string log = _debugLog.Count > 0
|
||||
? string.Join("\n", _debugLog.TakeLast(50))
|
||||
: "No log entries yet";
|
||||
|
||||
string action = await DisplayActionSheet("Debug Log", "Close", null, "📋 Copy Log", "👁️ View Log");
|
||||
|
||||
if (action == "📋 Copy Log")
|
||||
{
|
||||
await Clipboard.SetTextAsync(log);
|
||||
await DisplayAlert("Copied", "Log copied to clipboard", "OK");
|
||||
}
|
||||
else if (action == "👁️ View Log")
|
||||
{
|
||||
await DisplayAlert("Debug Log", log, "OK");
|
||||
}
|
||||
}
|
||||
|
||||
private async Task ShowTransferHistory()
|
||||
{
|
||||
string history = _transferHistory.Count > 0
|
||||
? string.Join("\n", _transferHistory.TakeLast(20))
|
||||
: "No transfers yet";
|
||||
await DisplayAlert("Transfer History", history, "OK");
|
||||
}
|
||||
|
||||
private async Task ShowFavorites()
|
||||
{
|
||||
if (_favorites.Count == 0)
|
||||
{
|
||||
await DisplayAlert("Favorites", "No favorites saved.\nTap ⭐ to add current path.", "OK");
|
||||
return;
|
||||
}
|
||||
|
||||
// Add options for each favorite plus a delete option
|
||||
var options = new List<string>();
|
||||
foreach (var fav in _favorites)
|
||||
{
|
||||
options.Add($"📁 {fav}");
|
||||
}
|
||||
options.Add("🗑️ Delete a favorite");
|
||||
|
||||
string? selected = await DisplayActionSheet("Favorites", "Cancel", null, options.ToArray());
|
||||
|
||||
if (selected == null || selected == "Cancel")
|
||||
return;
|
||||
|
||||
if (selected == "🗑️ Delete a favorite")
|
||||
{
|
||||
await DeleteFavorite();
|
||||
}
|
||||
else if (selected.StartsWith("📁 "))
|
||||
{
|
||||
string path = selected.Substring(3);
|
||||
if (_favorites.Contains(path))
|
||||
{
|
||||
_currentPath = path;
|
||||
PathEntry.Text = _currentPath;
|
||||
await RefreshFileList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async Task DeleteFavorite()
|
||||
{
|
||||
if (_favorites.Count == 0) return;
|
||||
|
||||
string? toDelete = await DisplayActionSheet("Delete which favorite?", "Cancel", null, _favorites.ToArray());
|
||||
if (toDelete != null && toDelete != "Cancel" && _favorites.Contains(toDelete))
|
||||
{
|
||||
_favorites.Remove(toDelete);
|
||||
SaveFavorites();
|
||||
await DisplayAlert("Deleted", $"'{toDelete}' removed from favorites", "OK");
|
||||
}
|
||||
}
|
||||
|
||||
private async void OnAddFavoriteClicked(object sender, EventArgs e)
|
||||
{
|
||||
if (_favorites.Contains(_currentPath))
|
||||
{
|
||||
bool remove = await DisplayAlert("Favorite Exists",
|
||||
$"Remove '{_currentPath}' from favorites?", "Remove", "Cancel");
|
||||
if (remove)
|
||||
{
|
||||
_favorites.Remove(_currentPath);
|
||||
SaveFavorites();
|
||||
await DisplayAlert("Removed", "Favorite removed", "OK");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_favorites.Add(_currentPath);
|
||||
SaveFavorites();
|
||||
await DisplayAlert("Added", $"'{_currentPath}' added to favorites", "OK");
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadFavorites()
|
||||
{
|
||||
string? saved = Preferences.Get(FavoritesKey, "");
|
||||
if (!string.IsNullOrEmpty(saved))
|
||||
{
|
||||
_favorites = saved.Split('|').Where(s => !string.IsNullOrEmpty(s)).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
private void SaveFavorites()
|
||||
{
|
||||
Preferences.Set(FavoritesKey, string.Join("|", _favorites));
|
||||
}
|
||||
|
||||
// PS5 Profile Management
|
||||
private void LoadProfiles()
|
||||
{
|
||||
string? saved = Preferences.Get(ProfilesKey, "");
|
||||
if (!string.IsNullOrEmpty(saved))
|
||||
{
|
||||
_ps5Profiles.Clear();
|
||||
var entries = saved.Split('|').Where(s => !string.IsNullOrEmpty(s));
|
||||
foreach (var entry in entries)
|
||||
{
|
||||
var parts = entry.Split('=');
|
||||
if (parts.Length == 2)
|
||||
{
|
||||
_ps5Profiles[parts[0]] = parts[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void SaveProfiles()
|
||||
{
|
||||
var entries = _ps5Profiles.Select(p => $"{p.Key}={p.Value}");
|
||||
Preferences.Set(ProfilesKey, string.Join("|", entries));
|
||||
}
|
||||
|
||||
private async Task ShowProfiles()
|
||||
{
|
||||
var options = new List<string>();
|
||||
|
||||
foreach (var profile in _ps5Profiles)
|
||||
{
|
||||
string marker = profile.Key == _currentProfileName ? "✓ " : "";
|
||||
options.Add($"{marker}🎮 {profile.Key} ({profile.Value})");
|
||||
}
|
||||
options.Add("➕ Add new profile");
|
||||
if (_ps5Profiles.Count > 0)
|
||||
{
|
||||
options.Add("🗑️ Delete a profile");
|
||||
}
|
||||
|
||||
string? selected = await DisplayActionSheet("PS5 Profiles", "Cancel", null, options.ToArray());
|
||||
|
||||
if (selected == null || selected == "Cancel")
|
||||
return;
|
||||
|
||||
if (selected == "➕ Add new profile")
|
||||
{
|
||||
await AddNewProfile();
|
||||
}
|
||||
else if (selected == "🗑️ Delete a profile")
|
||||
{
|
||||
await DeleteProfile();
|
||||
}
|
||||
else if (selected.Contains("🎮"))
|
||||
{
|
||||
// Extract profile name
|
||||
int start = selected.IndexOf("🎮 ") + 3;
|
||||
int end = selected.IndexOf(" (");
|
||||
if (start > 2 && end > start)
|
||||
{
|
||||
string profileName = selected.Substring(start, end - start);
|
||||
await SelectProfile(profileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async Task AddNewProfile()
|
||||
{
|
||||
string? name = await DisplayPromptAsync("New Profile", "Enter profile name:", "Save", "Cancel", "My PS5");
|
||||
if (string.IsNullOrEmpty(name)) return;
|
||||
|
||||
string? ip = await DisplayPromptAsync("PS5 IP", "Enter PS5 IP address:", "Save", "Cancel", "192.168.0.160");
|
||||
if (string.IsNullOrEmpty(ip)) return;
|
||||
|
||||
string? port = await DisplayPromptAsync("Port", "Enter port (default 9113):", "Save", "Cancel", "9113", keyboard: Keyboard.Numeric);
|
||||
if (string.IsNullOrEmpty(port)) port = "9113";
|
||||
|
||||
_ps5Profiles[name] = $"{ip}:{port}";
|
||||
SaveProfiles();
|
||||
|
||||
await DisplayAlert("Saved", $"Profile '{name}' saved", "OK");
|
||||
await SelectProfile(name);
|
||||
}
|
||||
|
||||
private async Task DeleteProfile()
|
||||
{
|
||||
if (_ps5Profiles.Count == 0) return;
|
||||
|
||||
string? toDelete = await DisplayActionSheet("Delete which profile?", "Cancel", null, _ps5Profiles.Keys.ToArray());
|
||||
if (toDelete != null && toDelete != "Cancel" && _ps5Profiles.ContainsKey(toDelete))
|
||||
{
|
||||
_ps5Profiles.Remove(toDelete);
|
||||
SaveProfiles();
|
||||
if (_currentProfileName == toDelete)
|
||||
{
|
||||
_currentProfileName = "";
|
||||
}
|
||||
await DisplayAlert("Deleted", $"Profile '{toDelete}' deleted", "OK");
|
||||
}
|
||||
}
|
||||
|
||||
private async Task SelectProfile(string profileName)
|
||||
{
|
||||
if (!_ps5Profiles.ContainsKey(profileName)) return;
|
||||
|
||||
string ipPort = _ps5Profiles[profileName];
|
||||
var parts = ipPort.Split(':');
|
||||
if (parts.Length == 2)
|
||||
{
|
||||
IpEntry.Text = parts[0];
|
||||
PortEntry.Text = parts[1];
|
||||
_currentProfileName = profileName;
|
||||
AddLog($"Selected profile: {profileName} ({ipPort})");
|
||||
await DisplayAlert("Profile Selected", $"Using '{profileName}'\nIP: {parts[0]}\nPort: {parts[1]}", "OK");
|
||||
}
|
||||
}
|
||||
|
||||
private async void OnConnectClicked(object sender, EventArgs e)
|
||||
{
|
||||
ConnectBtn.IsEnabled = false;
|
||||
StatusLabel.Text = "Connecting...";
|
||||
StatusLabel.TextColor = Colors.Yellow;
|
||||
|
||||
_uploadService.PS5Ip = IpEntry.Text;
|
||||
_uploadService.Port = int.Parse(PortEntry.Text);
|
||||
|
||||
AddLog($"Connecting to {IpEntry.Text}:{PortEntry.Text}...");
|
||||
bool connected = await _uploadService.ConnectAsync();
|
||||
|
||||
if (connected)
|
||||
{
|
||||
StatusLabel.Text = "Connected ✓";
|
||||
StatusLabel.TextColor = Colors.Green;
|
||||
ConnectBtn.IsEnabled = false;
|
||||
DisconnectBtn.IsEnabled = true;
|
||||
AddLog("Connected successfully");
|
||||
|
||||
await RefreshFileList();
|
||||
}
|
||||
else
|
||||
{
|
||||
StatusLabel.Text = "Connection failed";
|
||||
StatusLabel.TextColor = Colors.Red;
|
||||
ConnectBtn.IsEnabled = true;
|
||||
AddLog("Connection failed");
|
||||
}
|
||||
}
|
||||
|
||||
private async void OnDisconnectClicked(object sender, EventArgs e)
|
||||
{
|
||||
await _uploadService.DisconnectAsync();
|
||||
|
||||
StatusLabel.Text = "Disconnected";
|
||||
StatusLabel.TextColor = Colors.Orange;
|
||||
ConnectBtn.IsEnabled = true;
|
||||
DisconnectBtn.IsEnabled = false;
|
||||
|
||||
_files.Clear();
|
||||
AddLog("Disconnected");
|
||||
}
|
||||
|
||||
private async void OnRefreshClicked(object sender, EventArgs e)
|
||||
{
|
||||
await RefreshFileList();
|
||||
}
|
||||
|
||||
private async void OnUpDirectoryClicked(object sender, EventArgs e)
|
||||
{
|
||||
if (_currentPath != "/")
|
||||
{
|
||||
int lastSlash = _currentPath.TrimEnd('/').LastIndexOf('/');
|
||||
_currentPath = _currentPath.Substring(0, lastSlash + 1);
|
||||
PathEntry.Text = _currentPath;
|
||||
await RefreshFileList();
|
||||
}
|
||||
}
|
||||
|
||||
private async void OnFileSelected(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
if (e.CurrentSelection.Count > 0)
|
||||
{
|
||||
_selectedFile = e.CurrentSelection[0] as FileItem;
|
||||
|
||||
if (_selectedFile?.IsDirectory == true)
|
||||
{
|
||||
_currentPath = _selectedFile.FullPath;
|
||||
PathEntry.Text = _currentPath;
|
||||
await RefreshFileList();
|
||||
FileListView.SelectedItem = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async void OnUploadClicked(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
var result = await FilePicker.PickAsync();
|
||||
if (result != null)
|
||||
{
|
||||
ProgressLabel.Text = $"Uploading {result.FileName}...";
|
||||
ProgressBar.Progress = 0;
|
||||
ProgressPercentLabel.Text = "0%";
|
||||
|
||||
// Copy file to temp location for reliable access on Android
|
||||
string tempPath = Path.Combine(FileSystem.CacheDirectory, result.FileName);
|
||||
using (var sourceStream = await result.OpenReadAsync())
|
||||
using (var destStream = File.Create(tempPath))
|
||||
{
|
||||
await sourceStream.CopyToAsync(destStream);
|
||||
}
|
||||
|
||||
string remotePath = _currentPath.TrimEnd('/') + "/" + result.FileName;
|
||||
AddLog($"Uploading: {result.FileName} -> {remotePath}");
|
||||
|
||||
bool success = await _uploadService.UploadFileAsync(tempPath, remotePath);
|
||||
|
||||
// Clean up temp file
|
||||
try { File.Delete(tempPath); } catch { }
|
||||
|
||||
if (success)
|
||||
{
|
||||
AddTransfer($"⬆️ {result.FileName}");
|
||||
await DisplayAlert("Success", "File uploaded successfully!", "OK");
|
||||
await RefreshFileList();
|
||||
}
|
||||
else
|
||||
{
|
||||
await DisplayAlert("Error", "Upload failed", "OK");
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
AddLog($"Upload error: {ex.Message}");
|
||||
await DisplayAlert("Error", $"Upload failed: {ex.Message}", "OK");
|
||||
}
|
||||
}
|
||||
|
||||
private async void OnDownloadClicked(object sender, EventArgs e)
|
||||
{
|
||||
if (_selectedFile == null || _selectedFile.IsDirectory)
|
||||
{
|
||||
await DisplayAlert("Error", "Please select a file to download", "OK");
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
// First download to cache, then let user save via Share
|
||||
string cachePath = Path.Combine(FileSystem.CacheDirectory, _selectedFile.Name);
|
||||
|
||||
ProgressLabel.Text = $"Downloading {_selectedFile.Name}...";
|
||||
ProgressBar.Progress = 0;
|
||||
ProgressPercentLabel.Text = "0%";
|
||||
|
||||
AddLog($"Downloading: {_selectedFile.FullPath} -> {cachePath}");
|
||||
bool success = await _uploadService.DownloadFileAsync(_selectedFile.FullPath, cachePath);
|
||||
|
||||
if (success)
|
||||
{
|
||||
AddTransfer($"⬇️ {_selectedFile.Name}");
|
||||
|
||||
// Use Share to let user choose where to save
|
||||
// This opens the Android share sheet where user can:
|
||||
// - Save to Files app (choose location)
|
||||
// - Save to Downloads
|
||||
// - Send via other apps
|
||||
string? action = await DisplayActionSheet(
|
||||
$"'{_selectedFile.Name}' downloaded!",
|
||||
"Close", null,
|
||||
"💾 Save to location...",
|
||||
"📂 Open file");
|
||||
|
||||
if (action == "💾 Save to location...")
|
||||
{
|
||||
// Share opens Android's save/share dialog where user can choose location
|
||||
await Share.RequestAsync(new ShareFileRequest
|
||||
{
|
||||
Title = $"Save {_selectedFile.Name}",
|
||||
File = new ShareFile(cachePath)
|
||||
});
|
||||
}
|
||||
else if (action == "📂 Open file")
|
||||
{
|
||||
try
|
||||
{
|
||||
await Launcher.OpenAsync(new OpenFileRequest
|
||||
{
|
||||
File = new ReadOnlyFile(cachePath)
|
||||
});
|
||||
}
|
||||
catch
|
||||
{
|
||||
await DisplayAlert("Error", "No app found to open this file type", "OK");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
await DisplayAlert("Error", "Download failed", "OK");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
AddLog($"Download error: {ex.Message}");
|
||||
await DisplayAlert("Error", $"Download failed: {ex.Message}", "OK");
|
||||
}
|
||||
}
|
||||
|
||||
private async void OnDeleteClicked(object sender, EventArgs e)
|
||||
{
|
||||
if (_selectedFile == null)
|
||||
{
|
||||
await DisplayAlert("Error", "Please select a file to delete", "OK");
|
||||
return;
|
||||
}
|
||||
|
||||
bool confirm = await DisplayAlert("Confirm",
|
||||
$"Delete {_selectedFile.Name}?", "Yes", "No");
|
||||
|
||||
if (confirm)
|
||||
{
|
||||
AddLog($"Deleting: {_selectedFile.FullPath}");
|
||||
bool success = await _uploadService.DeleteFileAsync(_selectedFile.FullPath);
|
||||
if (success)
|
||||
{
|
||||
AddTransfer($"🗑️ {_selectedFile.Name}");
|
||||
await RefreshFileList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async Task RefreshFileList()
|
||||
{
|
||||
try
|
||||
{
|
||||
_files.Clear();
|
||||
AddLog($"Listing: {_currentPath}");
|
||||
|
||||
var fileItems = await _uploadService.ListDirectoryAsync(_currentPath);
|
||||
|
||||
foreach (var fileItem in fileItems)
|
||||
{
|
||||
_files.Add(fileItem);
|
||||
}
|
||||
|
||||
AddLog($"Found {fileItems.Count} items");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
AddLog($"List error: {ex.Message}");
|
||||
await DisplayAlert("Error", $"Failed to list directory: {ex.Message}", "OK");
|
||||
}
|
||||
}
|
||||
|
||||
private void AddLog(string message)
|
||||
{
|
||||
string timestamp = DateTime.Now.ToString("HH:mm:ss");
|
||||
_debugLog.Add($"[{timestamp}] {message}");
|
||||
if (_debugLog.Count > 100) _debugLog.RemoveAt(0);
|
||||
}
|
||||
|
||||
private void AddTransfer(string message)
|
||||
{
|
||||
string timestamp = DateTime.Now.ToString("HH:mm:ss");
|
||||
_transferHistory.Add($"[{timestamp}] {message}");
|
||||
if (_transferHistory.Count > 50) _transferHistory.RemoveAt(0);
|
||||
}
|
||||
|
||||
private void OnLogMessage(object? sender, string message)
|
||||
{
|
||||
MainThread.BeginInvokeOnMainThread(() =>
|
||||
{
|
||||
AddLog(message);
|
||||
});
|
||||
}
|
||||
|
||||
private void OnProgressChanged(object? sender, int progress)
|
||||
{
|
||||
MainThread.BeginInvokeOnMainThread(() =>
|
||||
{
|
||||
ProgressBar.Progress = progress / 100.0;
|
||||
ProgressPercentLabel.Text = $"{progress}%";
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace PS5UploadMobile;
|
||||
|
||||
public static class MauiProgram
|
||||
{
|
||||
public static MauiApp CreateMauiApp()
|
||||
{
|
||||
var builder = MauiApp.CreateBuilder();
|
||||
builder
|
||||
.UseMauiApp<App>()
|
||||
.ConfigureFonts(fonts =>
|
||||
{
|
||||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
||||
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
|
||||
});
|
||||
|
||||
return builder.Build();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net6.0-android</TargetFrameworks>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>PS5UploadMobile</RootNamespace>
|
||||
<UseMaui>true</UseMaui>
|
||||
<SingleProject>true</SingleProject>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
|
||||
<!-- Display name -->
|
||||
<ApplicationTitle>PS5 Upload Suite</ApplicationTitle>
|
||||
|
||||
<!-- App Identifier -->
|
||||
<ApplicationId>com.ps5tools.uploadsuite</ApplicationId>
|
||||
<ApplicationIdGuid>0cb2ca56-8fa9-400b-8669-c219279a7aad</ApplicationIdGuid>
|
||||
|
||||
<!-- Versions -->
|
||||
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
|
||||
<ApplicationVersion>1</ApplicationVersion>
|
||||
|
||||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
|
||||
|
||||
<!-- Android specific -->
|
||||
<AndroidManifest>Platforms\Android\AndroidManifest.xml</AndroidManifest>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="$(TargetFramework.StartsWith('net6.0-android'))">
|
||||
<PackageReference Include="System.Net.Sockets" Version="4.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- App Icon - PS5 Logo from Windows client -->
|
||||
<MauiIcon Include="Resources\AppIcon\appicon.svg" />
|
||||
|
||||
<!-- Images -->
|
||||
<MauiImage Include="Resources\Images\*" />
|
||||
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
|
||||
|
||||
<!-- Custom Fonts -->
|
||||
<MauiFont Include="Resources\Fonts\*" />
|
||||
|
||||
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
|
||||
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,270 @@
|
||||
#nullable enable
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
|
||||
namespace PS5UploadMobile.Services
|
||||
{
|
||||
public class FtpService
|
||||
{
|
||||
private string _ps5Ip = "192.168.0.160";
|
||||
private int _ftpPort = 2121;
|
||||
private TcpClient? _controlClient;
|
||||
private NetworkStream? _controlStream;
|
||||
private StreamReader? _controlReader;
|
||||
|
||||
public event EventHandler<string>? LogMessage;
|
||||
public event EventHandler<int>? ProgressChanged;
|
||||
|
||||
public string PS5Ip
|
||||
{
|
||||
get => _ps5Ip;
|
||||
set => _ps5Ip = value;
|
||||
}
|
||||
|
||||
public int FtpPort
|
||||
{
|
||||
get => _ftpPort;
|
||||
set => _ftpPort = value;
|
||||
}
|
||||
|
||||
public async Task<bool> ConnectAsync()
|
||||
{
|
||||
try
|
||||
{
|
||||
_controlClient = new TcpClient();
|
||||
await _controlClient.ConnectAsync(_ps5Ip, _ftpPort);
|
||||
_controlStream = _controlClient.GetStream();
|
||||
_controlReader = new StreamReader(_controlStream, Encoding.ASCII);
|
||||
|
||||
// Read welcome message
|
||||
string? response = await _controlReader.ReadLineAsync();
|
||||
LogMessage?.Invoke(this, $"Connected: {response}");
|
||||
|
||||
// Login as anonymous
|
||||
await SendCommandAsync("USER anonymous");
|
||||
await SendCommandAsync("PASS anonymous");
|
||||
await SendCommandAsync("TYPE I"); // Binary mode
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"Connection failed: {ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public async Task DisconnectAsync()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (_controlClient?.Connected == true)
|
||||
{
|
||||
await SendCommandAsync("QUIT");
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
finally
|
||||
{
|
||||
_controlReader?.Dispose();
|
||||
_controlStream?.Dispose();
|
||||
_controlClient?.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<List<string>> ListDirectoryAsync(string path)
|
||||
{
|
||||
var files = new List<string>();
|
||||
|
||||
try
|
||||
{
|
||||
// Change to directory
|
||||
await SendCommandAsync($"CWD {path}");
|
||||
|
||||
// Enter passive mode
|
||||
string pasvResponse = await SendCommandAsync("PASV");
|
||||
var dataEndpoint = ParsePasvResponse(pasvResponse);
|
||||
|
||||
// Connect to data channel
|
||||
using var dataClient = new TcpClient();
|
||||
await dataClient.ConnectAsync(dataEndpoint.Address, dataEndpoint.Port);
|
||||
using var dataStream = dataClient.GetStream();
|
||||
using var dataReader = new StreamReader(dataStream, Encoding.ASCII);
|
||||
|
||||
// Send LIST command
|
||||
await SendCommandAsync("LIST");
|
||||
|
||||
// Read directory listing
|
||||
string? line;
|
||||
while ((line = await dataReader.ReadLineAsync()) != null)
|
||||
{
|
||||
files.Add(line);
|
||||
}
|
||||
|
||||
dataClient.Close();
|
||||
await ReadResponseAsync(); // Read final response
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"List failed: {ex.Message}");
|
||||
}
|
||||
|
||||
return files;
|
||||
}
|
||||
|
||||
public async Task<bool> UploadFileAsync(string localPath, string remotePath)
|
||||
{
|
||||
try
|
||||
{
|
||||
var fileInfo = new FileInfo(localPath);
|
||||
long totalBytes = fileInfo.Length;
|
||||
long uploadedBytes = 0;
|
||||
|
||||
// Enter passive mode
|
||||
string pasvResponse = await SendCommandAsync("PASV");
|
||||
var dataEndpoint = ParsePasvResponse(pasvResponse);
|
||||
|
||||
// Connect to data channel
|
||||
using var dataClient = new TcpClient();
|
||||
await dataClient.ConnectAsync(dataEndpoint.Address, dataEndpoint.Port);
|
||||
using var dataStream = dataClient.GetStream();
|
||||
|
||||
// Send STOR command
|
||||
await SendCommandAsync($"STOR {remotePath}");
|
||||
|
||||
// Upload file
|
||||
using var fileStream = File.OpenRead(localPath);
|
||||
byte[] buffer = new byte[8192];
|
||||
int bytesRead;
|
||||
|
||||
while ((bytesRead = await fileStream.ReadAsync(buffer, 0, buffer.Length)) > 0)
|
||||
{
|
||||
await dataStream.WriteAsync(buffer, 0, bytesRead);
|
||||
uploadedBytes += bytesRead;
|
||||
|
||||
int progress = (int)((uploadedBytes * 100) / totalBytes);
|
||||
ProgressChanged?.Invoke(this, progress);
|
||||
}
|
||||
|
||||
dataClient.Close();
|
||||
await ReadResponseAsync(); // Read final response
|
||||
|
||||
LogMessage?.Invoke(this, $"Upload complete: {Path.GetFileName(localPath)}");
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"Upload failed: {ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<bool> DownloadFileAsync(string remotePath, string localPath)
|
||||
{
|
||||
try
|
||||
{
|
||||
// Get file size
|
||||
string sizeResponse = await SendCommandAsync($"SIZE {remotePath}");
|
||||
long totalBytes = ParseSizeResponse(sizeResponse);
|
||||
long downloadedBytes = 0;
|
||||
|
||||
// Enter passive mode
|
||||
string pasvResponse = await SendCommandAsync("PASV");
|
||||
var dataEndpoint = ParsePasvResponse(pasvResponse);
|
||||
|
||||
// Connect to data channel
|
||||
using var dataClient = new TcpClient();
|
||||
await dataClient.ConnectAsync(dataEndpoint.Address, dataEndpoint.Port);
|
||||
using var dataStream = dataClient.GetStream();
|
||||
|
||||
// Send RETR command
|
||||
await SendCommandAsync($"RETR {remotePath}");
|
||||
|
||||
// Download file
|
||||
using var fileStream = File.Create(localPath);
|
||||
byte[] buffer = new byte[8192];
|
||||
int bytesRead;
|
||||
|
||||
while ((bytesRead = await dataStream.ReadAsync(buffer, 0, buffer.Length)) > 0)
|
||||
{
|
||||
await fileStream.WriteAsync(buffer, 0, bytesRead);
|
||||
downloadedBytes += bytesRead;
|
||||
|
||||
if (totalBytes > 0)
|
||||
{
|
||||
int progress = (int)((downloadedBytes * 100) / totalBytes);
|
||||
ProgressChanged?.Invoke(this, progress);
|
||||
}
|
||||
}
|
||||
|
||||
dataClient.Close();
|
||||
await ReadResponseAsync(); // Read final response
|
||||
|
||||
LogMessage?.Invoke(this, $"Download complete: {Path.GetFileName(remotePath)}");
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"Download failed: {ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<bool> DeleteFileAsync(string remotePath)
|
||||
{
|
||||
try
|
||||
{
|
||||
await SendCommandAsync($"DELE {remotePath}");
|
||||
LogMessage?.Invoke(this, $"Deleted: {remotePath}");
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"Delete failed: {ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private async Task<string> SendCommandAsync(string command)
|
||||
{
|
||||
if (_controlStream == null || _controlReader == null)
|
||||
throw new InvalidOperationException("Not connected");
|
||||
|
||||
byte[] commandBytes = Encoding.ASCII.GetBytes(command + "\r\n");
|
||||
await _controlStream.WriteAsync(commandBytes, 0, commandBytes.Length);
|
||||
|
||||
return await ReadResponseAsync();
|
||||
}
|
||||
|
||||
private async Task<string> ReadResponseAsync()
|
||||
{
|
||||
if (_controlReader == null)
|
||||
throw new InvalidOperationException("Not connected");
|
||||
|
||||
string? response = await _controlReader.ReadLineAsync();
|
||||
LogMessage?.Invoke(this, $"FTP: {response}");
|
||||
return response ?? "";
|
||||
}
|
||||
|
||||
private IPEndPoint ParsePasvResponse(string response)
|
||||
{
|
||||
// Parse PASV response: 227 Entering Passive Mode (192,168,0,160,8,19)
|
||||
int start = response.IndexOf('(');
|
||||
int end = response.IndexOf(')');
|
||||
string[] parts = response.Substring(start + 1, end - start - 1).Split(',');
|
||||
|
||||
string ip = $"{parts[0]}.{parts[1]}.{parts[2]}.{parts[3]}";
|
||||
int port = int.Parse(parts[4]) * 256 + int.Parse(parts[5]);
|
||||
|
||||
return new IPEndPoint(IPAddress.Parse(ip), port);
|
||||
}
|
||||
|
||||
private long ParseSizeResponse(string response)
|
||||
{
|
||||
// Parse SIZE response: 213 12345
|
||||
string[] parts = response.Split(' ');
|
||||
return parts.Length > 1 ? long.Parse(parts[1]) : 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,241 @@
|
||||
#nullable enable
|
||||
using PS5Upload;
|
||||
|
||||
namespace PS5UploadMobile.Services
|
||||
{
|
||||
public class PS5UploadService
|
||||
{
|
||||
private string _ps5Ip = "192.168.0.160";
|
||||
private int _port = 9113;
|
||||
private PS5Protocol? _protocol;
|
||||
|
||||
public event EventHandler<string>? LogMessage;
|
||||
public event EventHandler<int>? ProgressChanged;
|
||||
|
||||
public PS5UploadService()
|
||||
{
|
||||
_protocol = new PS5Protocol();
|
||||
}
|
||||
|
||||
public string PS5Ip
|
||||
{
|
||||
get => _ps5Ip;
|
||||
set => _ps5Ip = value;
|
||||
}
|
||||
|
||||
public int Port
|
||||
{
|
||||
get => _port;
|
||||
set => _port = value;
|
||||
}
|
||||
|
||||
public bool IsConnected => _protocol?.IsConnected ?? false;
|
||||
|
||||
public async Task<bool> ConnectAsync()
|
||||
{
|
||||
try
|
||||
{
|
||||
_protocol = new PS5Protocol();
|
||||
bool connected = await _protocol.ConnectAsync(_ps5Ip, _port);
|
||||
|
||||
if (connected)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"Connected to PS5 at {_ps5Ip}:{_port}");
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
LogMessage?.Invoke(this, "Failed to connect to PS5");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"Connection error: {ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public Task DisconnectAsync()
|
||||
{
|
||||
if (_protocol != null)
|
||||
{
|
||||
_protocol.Disconnect();
|
||||
LogMessage?.Invoke(this, "Disconnected from PS5");
|
||||
}
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
public async Task<List<FileItem>> ListDirectoryAsync(string path)
|
||||
{
|
||||
var files = new List<FileItem>();
|
||||
|
||||
if (_protocol == null || !_protocol.IsConnected)
|
||||
{
|
||||
LogMessage?.Invoke(this, "Not connected to PS5");
|
||||
return files;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var entries = await _protocol.ListDirAsync(path);
|
||||
|
||||
foreach (var entry in entries)
|
||||
{
|
||||
string fullPath = path.TrimEnd('/') + "/" + entry.Name;
|
||||
if (entry.IsDirectory) fullPath += "/";
|
||||
|
||||
files.Add(new FileItem
|
||||
{
|
||||
Name = entry.Name,
|
||||
Size = entry.IsDirectory ? "" : FormatFileSize(entry.Size),
|
||||
Type = entry.IsDirectory ? "DIR" : "FILE",
|
||||
Icon = entry.IsDirectory ? "📁" : "📄",
|
||||
IsDirectory = entry.IsDirectory,
|
||||
FullPath = fullPath
|
||||
});
|
||||
}
|
||||
|
||||
LogMessage?.Invoke(this, $"Listed {files.Count} items in {path}");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"List error: {ex.Message}");
|
||||
}
|
||||
|
||||
return files;
|
||||
}
|
||||
|
||||
public async Task<bool> UploadFileAsync(string localPath, string remotePath)
|
||||
{
|
||||
if (_protocol == null || !_protocol.IsConnected)
|
||||
{
|
||||
LogMessage?.Invoke(this, "Not connected to PS5");
|
||||
return false;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var fileInfo = new FileInfo(localPath);
|
||||
LogMessage?.Invoke(this, $"Uploading {fileInfo.Name} ({FormatFileSize(fileInfo.Length)})...");
|
||||
|
||||
var progress = new Progress<UploadProgress>(p =>
|
||||
{
|
||||
int percent = p.TotalBytes > 0 ? (int)((p.BytesSent * 100) / p.TotalBytes) : 0;
|
||||
ProgressChanged?.Invoke(this, percent);
|
||||
});
|
||||
|
||||
bool success = await _protocol.UploadFileAsync(localPath, remotePath, progress);
|
||||
|
||||
if (success)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"Upload complete: {fileInfo.Name}");
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
LogMessage?.Invoke(this, "Upload failed");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"Upload error: {ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<bool> DownloadFileAsync(string remotePath, string localPath)
|
||||
{
|
||||
if (_protocol == null || !_protocol.IsConnected)
|
||||
{
|
||||
LogMessage?.Invoke(this, "Not connected to PS5");
|
||||
return false;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
LogMessage?.Invoke(this, $"Downloading {Path.GetFileName(remotePath)}...");
|
||||
|
||||
var progress = new Progress<UploadProgress>(p =>
|
||||
{
|
||||
int percent = p.TotalBytes > 0 ? (int)((p.BytesSent * 100) / p.TotalBytes) : 0;
|
||||
ProgressChanged?.Invoke(this, percent);
|
||||
});
|
||||
|
||||
bool success = await _protocol.DownloadFileAsync(remotePath, localPath, progress);
|
||||
|
||||
if (success)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"Download complete: {Path.GetFileName(remotePath)}");
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
LogMessage?.Invoke(this, "Download failed");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"Download error: {ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<bool> DeleteFileAsync(string remotePath)
|
||||
{
|
||||
if (_protocol == null || !_protocol.IsConnected)
|
||||
{
|
||||
LogMessage?.Invoke(this, "Not connected to PS5");
|
||||
return false;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
bool success = await _protocol.DeleteFileAsync(remotePath);
|
||||
|
||||
if (success)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"Deleted: {remotePath}");
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
LogMessage?.Invoke(this, "Delete failed");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogMessage?.Invoke(this, $"Delete error: {ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private string FormatFileSize(long bytes)
|
||||
{
|
||||
string[] sizes = { "B", "KB", "MB", "GB" };
|
||||
double len = bytes;
|
||||
int order = 0;
|
||||
|
||||
while (len >= 1024 && order < sizes.Length - 1)
|
||||
{
|
||||
order++;
|
||||
len /= 1024;
|
||||
}
|
||||
|
||||
return $"{len:0.##} {sizes[order]}";
|
||||
}
|
||||
}
|
||||
|
||||
public class FileItem
|
||||
{
|
||||
public string Name { get; set; } = "";
|
||||
public string Size { get; set; } = "";
|
||||
public string Type { get; set; } = "";
|
||||
public string Icon { get; set; } = "";
|
||||
public bool IsDirectory { get; set; }
|
||||
public string FullPath { get; set; } = "";
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
@@ -0,0 +1,343 @@
|
||||
# 🚀 PS5 Upload Suite - High-Speed File Transfer
|
||||
|
||||
**By Manos**
|
||||
|
||||
**Version 4.1.0 - Memory Optimization & Large File Handling**
|
||||
|
||||
Custom high-speed file transfer system for PS5 with etaHEN. Achieves **104+ MB/s** upload speeds for large files using parallel chunked uploads!
|
||||
|
||||
⭐ **NEW in v4.1.0:**
|
||||
- 🧠 **Memory Optimization** - Handles 156K+ files without crashes
|
||||
- ⚡ **Reduced UI Stuttering** - Batch logging for smoother experience
|
||||
- 🔧 **Lock-Free Operations** - ConcurrentDictionary for thread-safety
|
||||
- 🧹 **Auto Memory Cleanup** - Completed files removed from tracking
|
||||
- � **Incremental Processing** - No massive dictionary allocations
|
||||
|
||||
📱 **Android Mobile Client available!**
|
||||
|
||||

|
||||

|
||||
|
||||
---
|
||||
|
||||
## 📦 Downloads
|
||||
|
||||
Download the latest release from the [Releases](https://github.com/manos555555/PS5-Upload-Suite/releases) page:
|
||||
|
||||
### 1. PS5 Server Payload
|
||||
- **File:** `ps5_upload_server.elf`
|
||||
- **Port:** 9113
|
||||
- High-speed custom binary protocol
|
||||
- 16MB socket buffers for maximum throughput
|
||||
- Multi-threaded client handling
|
||||
|
||||
### 2. Windows GUI Client
|
||||
- **File:** `PS5Upload.exe`
|
||||
- Self-contained executable (no .NET installation required)
|
||||
- Modern dark theme UI
|
||||
- Drag & drop file/folder upload
|
||||
- Real-time upload progress with speed tracking
|
||||
- Transfer History with success/failed tracking
|
||||
- Privacy-focused (no storage monitoring)
|
||||
|
||||
### 3. 📱 Android Mobile Client
|
||||
- **File:** `PS5UploadMobile.apk`
|
||||
- Upload/download files from your phone
|
||||
- Multi-PS5 Profiles support
|
||||
- Browse PS5 filesystem
|
||||
- Favorites for quick navigation
|
||||
|
||||
---
|
||||
|
||||
## 🚀 Quick Start
|
||||
|
||||
### Step 1: Load PS5 Payload
|
||||
|
||||
1. Download `ps5_upload_server.elf` from the [Releases](https://github.com/manos555555/PS5-Upload-Suite/releases) page
|
||||
|
||||
2. Copy it to your PS5: `/data/etaHEN/payloads/ps5_upload_server.elf`
|
||||
|
||||
3. Load the payload with elfldr
|
||||
|
||||
4. You should see notification: `PS5 Upload Server: 192.168.0.XXX:9113 - By Manos`
|
||||
|
||||
### Step 2: Run Windows Client
|
||||
|
||||
1. Run `PS5Upload.exe` on your PC
|
||||
|
||||
2. Enter your PS5's IP address (e.g., `192.168.0.160`)
|
||||
|
||||
3. Click **Connect**
|
||||
|
||||
4. Browse files/folders or drag & drop
|
||||
|
||||
5. Click **Upload to PS5**
|
||||
|
||||
---
|
||||
|
||||
## 🎨 Features
|
||||
|
||||
### PS5 Server
|
||||
✅ **High-Speed Protocol** - Custom binary protocol
|
||||
✅ **4MB Buffers** - Maximum throughput
|
||||
✅ **Direct Disk I/O** - No temp files
|
||||
✅ **Multi-threaded** - Handle multiple clients
|
||||
✅ **Robust Error Handling** - Graceful failures
|
||||
|
||||
### Windows Client
|
||||
✅ **Modern UI** - Dark theme, maximized window for better visibility
|
||||
✅ **Drag & Drop** - Files and folders
|
||||
✅ **Browse PS5** - Navigate filesystem
|
||||
✅ **Real-time Progress** - Speed & percentage tracking
|
||||
✅ **Optimized Upload** - 8 parallel connections for 88-110 MB/s aggregate speed
|
||||
✅ **Transfer History** - Track all uploads/downloads with success/failed status
|
||||
✅ **Auto-Clear History** - Optional auto-clear on startup
|
||||
✅ **Folder Upload** - Recursive directory upload
|
||||
✅ **Download Files** - Download from PS5 to PC
|
||||
✅ **🔍 Smart Search** - Full filesystem indexing with instant search (NEW v3.3)
|
||||
- Wildcard support: `*.pkg`, `*loader*`, `game*.bin`
|
||||
- Size filters: `size:>1GB`, `size:<100MB`
|
||||
- Case-insensitive matching
|
||||
- Search both filename and full path
|
||||
- Double-click to navigate to folder
|
||||
✅ **💻 Shell Terminal** - Execute commands directly on PS5 (NEW v3.3)
|
||||
- Run system commands remotely
|
||||
- Real-time output display
|
||||
- Command history
|
||||
- Working directory support
|
||||
✅ **Favorites/Bookmarks** - Quick navigation to saved paths
|
||||
✅ **Multi-PS5 Support** - Save and switch between multiple PS5 profiles
|
||||
|
||||
---
|
||||
|
||||
## 📊 Performance
|
||||
|
||||
### v3.1.0 Optimized Results:
|
||||
- ✅ **104+ MB/s** upload speed for large files (parallel chunked uploads)
|
||||
- ✅ **4 parallel chunk connections** for maximum throughput
|
||||
- ✅ **500MB chunks** - optimal size for PS5 disk performance
|
||||
- ✅ **Real-time progress** - Speed/ETA updates during upload
|
||||
- ✅ **Zero chunk failures** - Fixed race conditions
|
||||
- ✅ **Fully responsive UI** throughout upload
|
||||
- ✅ **No memory leaks** - stable operation
|
||||
|
||||
### Previous Results (v1.3.0):
|
||||
- ✅ **42,801 files** uploaded successfully
|
||||
- ✅ **60-150 MB/s** sustained throughput
|
||||
|
||||
| Network | Expected Upload Speed | Expected Download Speed |
|
||||
|---------|----------------------|------------------------|
|
||||
| **Gigabit Ethernet** | 88-110 MB/s (aggregate) | 100-120 MB/s |
|
||||
| **WiFi 6 (5GHz)** | 32-70 MB/s (aggregate) | 60-80 MB/s |
|
||||
| **WiFi 5 (5GHz)** | 20-50 MB/s (aggregate) | 40-60 MB/s |
|
||||
|
||||
**Note:** Upload speeds depend on network quality and PS5 disk write performance. WiFi has ~40-60% overhead compared to Ethernet.
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 🛠️ Troubleshooting
|
||||
|
||||
### Connection Failed
|
||||
- Make sure PS5 payload is running
|
||||
- Check PS5 IP address is correct
|
||||
- Verify both devices are on same network
|
||||
- Check firewall settings
|
||||
|
||||
### Slow Upload Speed
|
||||
- Use wired Ethernet connection (not WiFi)
|
||||
- Close other network applications
|
||||
- Check PS5 disk health
|
||||
|
||||
### Upload Fails
|
||||
- Check PS5 has enough free space
|
||||
- Verify destination path exists
|
||||
- Check file permissions
|
||||
|
||||
---
|
||||
|
||||
## 🔒 Security Notes
|
||||
|
||||
- Server only accepts connections from local network
|
||||
- No authentication required (local network only)
|
||||
- SHUTDOWN command only works from localhost
|
||||
|
||||
---
|
||||
|
||||
## 📝 What's New in v3.2.0
|
||||
|
||||
### 🎯 Improvements:
|
||||
|
||||
#### 1. 💾 Accurate Storage Display
|
||||
- **Storage now matches PS5 UI** - Shows ~848 GB instead of raw 872 GB
|
||||
- **Accounts for reserved space** - Same calculation as PS5 system
|
||||
|
||||
#### 2. 📱 Mobile App Improvements
|
||||
- **Multi-select mode** - Toggle button to select multiple files/folders
|
||||
- **Folder browser** - Visual folder picker for Copy/Move destinations
|
||||
- **Sorted file list** - Folders always displayed at top
|
||||
- **Exit confirmation** - Prompt when pressing back button
|
||||
- **Delete folders** - Now supports folder deletion (not just files)
|
||||
- **Batch operations** - Delete/download multiple items at once
|
||||
|
||||
#### 3. 🐛 Bug Fixes
|
||||
- **Fixed empty folder deletion** - No more "Unexpected response" error
|
||||
- **Fixed Copy/Move crash** - No longer crashes when selecting destination
|
||||
- **Fixed multi-select count** - Correct item count in delete confirmation
|
||||
- **Fixed folder navigation** - Can enter folders after actions complete
|
||||
|
||||
---
|
||||
|
||||
## 📝 What's New in v3.1.0
|
||||
|
||||
### 🚀 Performance Improvements:
|
||||
|
||||
#### 1. ⚡ Parallel Chunked Uploads (104 MB/s!)
|
||||
- **Large files (>100MB)** are now split into 500MB chunks
|
||||
- **4 parallel connections** upload chunks simultaneously
|
||||
- **Result:** ~104 MB/s upload speed (2x faster than before!)
|
||||
- **Fixed race condition:** First chunk creates file before others start
|
||||
- **Fixed closure bug:** Correct offset/size capture for parallel tasks
|
||||
|
||||
#### 2. 📊 Real-time Progress Display
|
||||
- **Speed display** now updates in real-time during chunked uploads
|
||||
- **ETA display** shows accurate time remaining
|
||||
- **Progress bar** correctly shows 0-100% for chunked files
|
||||
- No more speed dropping to 0 during large file uploads
|
||||
|
||||
#### 3. 💾 Storage Display Improvements
|
||||
- **Changed label** to "Data Storage (/data)" for clarity
|
||||
- **Uses statfs with f_bavail** for more accurate available space
|
||||
- **Real-time updates** every 5 seconds when connected
|
||||
|
||||
---
|
||||
|
||||
## 📝 What's New in v3.0.0
|
||||
|
||||
### 🐛 Critical Bug Fixes:
|
||||
|
||||
#### 1. 🔧 Path Normalization Fix
|
||||
- **Fixed:** Double-slash paths (`//mnt/ext1/...`) that caused directory creation to fail
|
||||
- **Affected:** All file operations (upload, download, delete, rename, copy, move)
|
||||
- **Solution:** Added `NormalizePath()` function in both client and server
|
||||
- **Result:** 100% reliable directory creation and file uploads
|
||||
|
||||
#### 2. 📱 Android Mobile Client
|
||||
- **NEW:** Full-featured Android app for PS5 file management
|
||||
- **Multi-PS5 Profiles** - Save and switch between multiple PS5 consoles
|
||||
- Upload files from phone to PS5
|
||||
- Download files from PS5 with Share option
|
||||
- Browse PS5 filesystem
|
||||
- Favorites for quick navigation
|
||||
- Debug Log with Copy to clipboard
|
||||
- Transfer History tracking
|
||||
|
||||
#### 3. 🛠️ Server Improvements
|
||||
- Path normalization in all handler functions
|
||||
- More robust error handling
|
||||
- Improved stability for parallel uploads
|
||||
|
||||
---
|
||||
|
||||
## 📝 What's New in v2.1.0
|
||||
|
||||
### 🚀 Performance Optimizations:
|
||||
|
||||
#### 1. ⚡ Massive Upload Speed Boost (88-110 MB/s)
|
||||
- **Server-side:** Replaced `fwrite()` with direct `write()` syscalls
|
||||
- **Client-side:** 8 parallel large file uploads (optimal for PS5 disk)
|
||||
- **Result:** 80-110 MB/s aggregate upload speed on Gigabit Ethernet
|
||||
- **Peak bursts:** Up to 2.05 GB/s when hitting disk cache
|
||||
- **Per-file:** 11-14 MB/s sustained per connection
|
||||
|
||||
#### 2. 📊 Transfer History
|
||||
- Complete history of all uploads and downloads
|
||||
- Success/Failed status tracking with error messages
|
||||
- Speed statistics (average, min, max)
|
||||
- Export to CSV/JSON for analysis
|
||||
- Persistent storage across sessions
|
||||
|
||||
#### 3. 🔄 Auto-Clear History on Startup
|
||||
- Optional checkbox to clear history automatically
|
||||
- Useful for keeping UI clean between sessions
|
||||
- Setting saved in `ps5_upload_settings.json`
|
||||
|
||||
#### 4. 🖥️ Maximized Window UI
|
||||
- Application opens in full-screen mode by default
|
||||
- Better visibility for large file transfers
|
||||
- Can be resized/restored as needed
|
||||
|
||||
### Technical Improvements:
|
||||
- ✅ **16MB socket buffers** (up from 4MB) for maximum throughput
|
||||
- ✅ **Per-file mutex locking** - Parallel writes without race conditions
|
||||
- ✅ **File pre-allocation** - Reduces disk fragmentation for large files
|
||||
- ✅ **Direct syscalls** - Bypasses stdio buffering overhead
|
||||
|
||||
---
|
||||
|
||||
## 📝 What's New in v2.0.0
|
||||
|
||||
### 🎉 4 Major New Features:
|
||||
|
||||
#### 1. 📥 Download Files (PS5 → PC)
|
||||
- Right-click any file → "⬇️ Download to PC"
|
||||
- Save file dialog for destination selection
|
||||
- Real-time progress tracking with speed display
|
||||
- Optimized with sendfile for maximum speed
|
||||
|
||||
#### 2. 🔍 File Search
|
||||
- Search box in PS5 Files panel
|
||||
- Real-time filtering as you type
|
||||
- Case-insensitive search
|
||||
- Quick "Clear" button to reset
|
||||
|
||||
#### 3. ⭐ Favorites/Bookmarks
|
||||
- Save frequently used PS5 paths
|
||||
- Quick dropdown navigation
|
||||
- Add/Remove favorite paths
|
||||
- Persistent storage in JSON
|
||||
|
||||
#### 4. 🎮 Multi-PS5 Support
|
||||
- Save multiple PS5 profiles (IP + name)
|
||||
- Quick switch between different PS5 consoles
|
||||
- Dropdown profile selector
|
||||
- Persistent profile storage
|
||||
|
||||
### Previous Stability (v1.3.0):
|
||||
- ✅ **Zero connection drops** - 5 minute socket timeout + aggressive keepalive
|
||||
- ✅ **Fully responsive UI** - Async updates + throttled logging
|
||||
- ✅ **No memory leaks** - Proper resource disposal
|
||||
- ✅ **Tested:** 42,801 files uploaded with 100% success rate
|
||||
|
||||
---
|
||||
|
||||
## 📝 License
|
||||
|
||||
This software is provided as-is for personal use.
|
||||
|
||||
---
|
||||
|
||||
## 👤 Author
|
||||
|
||||
**Manos**
|
||||
|
||||
Created with ❤️ for the PS5 homebrew community
|
||||
|
||||
---
|
||||
|
||||
## 🙏 Credits
|
||||
|
||||
- PS5 SDK
|
||||
- etaHEN
|
||||
- Inspired by ps5upload by PhantomPtr
|
||||
- PS5 homebrew community
|
||||
|
||||
---
|
||||
|
||||
## 📞 Support
|
||||
|
||||
For issues or questions, please open an issue on GitHub.
|
||||
|
||||
---
|
||||
|
||||
**Enjoy blazing-fast file transfers on your PS5!** 🚀
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 311 KiB After Width: | Height: | Size: 93 KiB |
Reference in new issue
Block a user