# MPwrLdr **Repository Path**: qomoliao/mpwr-ldr ## Basic Information - **Project Name**: MPwrLdr - **Description**: 是一个芯片调测工具,包含一下三大功能: - I2C芯片调测工具 - 程控电源 - 电子负载 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-01-28 - **Last Updated**: 2024-09-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # EmbTools —— 嵌入式开发工具集 一个在线的嵌入式开发调测工具集。 MPwrldr在电量计调测工具项目中孵化,希望提供一个免安装的、跨平台的测试工具配套软件,免除用户搭建测试软件环境的烦恼。用户仅需将测试设备(硬件)与PC通过USB连接,用浏览器打开对应的链接,就能够通过网页UI交互的方式使用对应的测试设备。(它也可以编译成跨平台的桌面应用,让网络不可达的用户也可以使用相同的功能。) 在与用于电量计调测的MPwrldr硬件环境搭配使用时,它提供了灵活的电量计总线交互功能,可以周期的扫描刷新电量计内部的寄存器表,或通过总线下发任意指令,写入任意寄存器。此外,它还支持MPwrldr的仪表功能,能够配置仪表的工作模式(电源/负载)与参数(电压与电流),对电压电流等进行实时监测。 未来,希望基于它的架构,能够发展成为通用的仪表PC侧软件界面,简化各种专业仪表或自研设备的软件环境搭建,方便测试。 ## 规划 ### 功能 - [ ] SSCOM在线版 - [ ] 在线terminal - [ ] I2C芯片调测 - [ ] 自动化编排系统 ### 应用端 - [ ] Web - [ ] Chrome - [ ] 桌面 ## 技术栈 ## 架构 ### 跨页面通信 ``` .----------. .----------. .----------. | EmbTools | | EmbTools | | Auto eng | | ws client| ..... | ws client| | ws client| '----------' '----------' '----------' \ | / \socket.io |socket.io /socket.io \ .-------------. / '--------| Desktop APP |-------' | (ws server) | '-------------' ``` ### 跨控件通信 ### MBridge 框架 ``` .------------------------------------. | | React + Antd + tailwindcss | | |-----------------------------| | PC | MBridge Engine | | |-----------------------------| | | Web API | | |-----------------------------| | | Tauri | Chrome | |------|-----------------------------| | Comm | USB USART Wifi ... | |------|-----------------------------| | | MBridge Engine | | |-----------------------------| | MCU | FrameWork | | |-----------------------------| | | MCU HAL | | |-----------------------------| | | Driver | '------------------------------------' ``` ## 开发指南 ### 安装依赖 ``` npm install ``` In the project directory, you can run: ### `npm start` Runs the app in the development mode.\ Open [http://localhost:3000](http://localhost:3000) to view it in your browser. The page will reload when you make changes.\ You may also see any lint errors in the console. ### `npm test` Launches the test runner in the interactive watch mode.\ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. ### `npm run build` Builds the app for production to the `build` folder.\ It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.\ Your app is ready to be deployed! See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. ### `npm run eject` **Note: this is a one-way operation. Once you `eject`, you can't go back!** If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. ### tauri #### 调试 ``` cargo tauri dev ``` #### 编译调试版本 ``` cargo tauri build --debug ``` #### 编译发布版本 ``` cargo tauri build ``` ## Learn More You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). To learn React, check out the [React documentation](https://reactjs.org/). ### Code Splitting This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) ### Analyzing the Bundle Size This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) ### Making a Progressive Web App This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) ### Advanced Configuration This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) ### Deployment This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) ### `npm run build` fails to minify This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)