# LampSocket **Repository Path**: songxt/lampsocket ## Basic Information - **Project Name**: LampSocket - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-07-14 - **Last Updated**: 2026-07-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LampSocket .NET 8 rebuild of LampServer: SuperSocket (GPRS) + ASP.NET Core Web API + SqlSugar + Quartz. ## Projects | Project | Role | |---------|------| | `LampSocket.Protocol` | Frame buffer, Packet, all `*R/*S` protocol codecs | | `LampSocket.Data` | SqlSugar entities/services (Albert.DBAccess replacement) | | `LampSocket.Host` | SuperSocket GPRS + WebApi 同进程;HTTP 地址由根级 `Urls` 配置 | ## Run ```bash cd src/LampSocket.Host # Edit appsettings.Development.json connection string first dotnet run ``` ## Windows Service (Topshelf) Publish (or build) `LampSocket.Host`, then run the scripts **as Administrator** from the output folder: Service name / display name / description: `WindowsService` in `appsettings.json`. ```bat install-service.bat # install + start uninstall-service.bat # stop + uninstall ``` Equivalent CLI: `LampSocket.Host.exe install|start|stop|uninstall`. Console debug: run the exe with no args. ## Ports - GPRS TCP: `Server:GprsPorts`(数组,如 `[81, 5500]`;仍兼容旧版单值 `GprsPort`) - HTTP / WebApi: 根级 `Urls`(如 `http://*:82`,也可 `ASPNETCORE_URLS` / `--urls`) - 首页: `http://host:82/` 显示运行状态;JSON: `/api/status` ## Smoke checklist 1. Device TCP connect + login frame (`68…16`) → session registered 2. Heartbeat → online state updated in DB 3. `GET /Login?userName=...&password=...&callback=cb` 4. Online concentrator: `GET /SingleLightControl?...` → packet sent, reply via PacketStore 5. Quartz `CorrectTime` every 5 minutes (FN=31) PC client channel (legacy :5502) is deferred.