├── .gitignore ├── .prettierrc ├── CITATION.cff ├── CONTRIBUTING.md ├── LICENSE ├── Output.txt ├── README.md ├── Serial-Communication-GUI-Program.pyproject ├── Serial-Communication-GUI-Program.pyproject.user ├── gitignore ├── img ├── Screenshot_v2025_04.jpg ├── icon.ico └── icon.png ├── main.py ├── main.spec ├── requirements.txt ├── src ├── Conversion_script.txt ├── action_ui.py ├── help.py ├── icon.ico └── ui_main.py ├── test ├── serial.ino └── test_main.py └── ui ├── Convert.txt ├── Convert_All.bat ├── config.ui ├── help.py ├── help.ui ├── icon.ico ├── main_window.py ├── main_window.ui ├── resource └── play.svg ├── resources.qrc ├── settings.py ├── settings.ui └── ui_main_window.py /.gitignore: -------------------------------------------------------------------------------- 1 | # This file is used to ignore files which are generated 2 | # ---------------------------------------------------------------------------- 3 | 4 | *~ 5 | *.autosave 6 | *.a 7 | *.core 8 | *.moc 9 | *.o 10 | *.obj 11 | *.orig 12 | *.rej 13 | *.so 14 | *.so.* 15 | *_pch.h.cpp 16 | *_resource.rc 17 | *.qm 18 | .#* 19 | *.*# 20 | core 21 | !core/ 22 | tags 23 | .DS_Store 24 | .directory 25 | *.debug 26 | Makefile* 27 | *.prl 28 | *.app 29 | moc_*.cpp 30 | ui_*.h 31 | qrc_*.cpp 32 | Thumbs.db 33 | *.res 34 | *.rc 35 | /.qmake.cache 36 | /.qmake.stash 37 | 38 | # qtcreator generated files 39 | *.pro.user* 40 | CMakeLists.txt.user* 41 | 42 | # xemacs temporary files 43 | *.flc 44 | 45 | # Vim temporary files 46 | .*.swp 47 | 48 | # Visual Studio generated files 49 | *.ib_pdb_index 50 | *.idb 51 | *.ilk 52 | *.pdb 53 | *.sln 54 | *.suo 55 | *.vcproj 56 | *vcproj.*.*.user 57 | *.ncb 58 | *.sdf 59 | *.opensdf 60 | *.vcxproj 61 | *vcxproj.* 62 | 63 | # MinGW generated files 64 | *.Debug 65 | *.Release 66 | 67 | # Python byte code 68 | *.pyc 69 | 70 | # Binaries 71 | # -------- 72 | *.dll 73 | *.exe 74 | 75 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "tabWidth": 2, 3 | "useTabs": false 4 | } 5 | -------------------------------------------------------------------------------- /CITATION.cff: -------------------------------------------------------------------------------- 1 | cff-version: 1.2.0 2 | message: "If you use this research, please cite it as below." 3 | authors: 4 | - family-names: "Aksoy" 5 | given-names: "Mehmet Çağrı" 6 | orcid: " https://orcid.org/0000-0002-7886-7945 " 7 | title: "Serial-Communication-GUI-Program" 8 | version: 2024.04 9 | date-released: 2018 10 | url: "https://github.com/mcagriaksoy/Serial-Communication-GUI-Program" 11 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing to Serial Communication GUI Program 2 | Thank you for your interest in contributing to the Serial Communication GUI Program! Your contributions are valuable and help improve the project. 3 | 4 | ## How to Contribute 5 | Fork the Repository: Start by forking the Serial-Communication-GUI-Program repository to your own GitHub account. 6 | Clone the Repository: Clone your forked repository to your local machine using the following command: 7 | git clone https://github.com/your-username/Serial-Communication-GUI-Program.git 8 | 9 | ## Create a New Branch: 10 | 11 | Create a new branch for your feature or bug fix: 12 | git checkout -b my-feature 13 | 14 | ## Make Changes: 15 | 16 | Make your desired changes to the codebase. You can add new features, fix bugs, or improve existing functionality. 17 | Commit Your Changes: Commit your changes with a descriptive commit message: 18 | git commit -m "Add feature: XYZ" 19 | 20 | ## Push to Your Fork: 21 | Push your changes to your forked repository: 22 | 23 | git push origin my-feature 24 | 25 | ## Create a Pull Request: 26 | Go to the Serial-Communication-GUI-Program repository on GitHub and create a pull request from your branch to the master branch. 27 | 28 | ## Guidelines 29 | Follow the code of conduct. 30 | Ensure your code follows the project’s style and conventions. 31 | Write clear commit messages. 32 | Test your changes thoroughly. 33 | 34 | ## Questions or Feedback? 35 | If you have any questions or need assistance, feel free to reach out. We appreciate your contributions! 🚀 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /Output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcagriaksoy/Serial-Communication-GUI-Program/50bb42d973dfb7de504cb9035a6548d8fe9de46b/Output.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ``` 2 | 3 | .----------------. .----------------. .----------------. .----------------. .----------------. 4 | | .--------------. || .--------------. || .--------------. || .--------------. || .--------------. | 5 | | | __ | || | _________ | || | ______ | || | ____ | || | ____ ____ | | 6 | | | / \ | || | |_ ___ | | || | .' ___ | | || | .' `. | || ||_ \ / _|| | 7 | | | / /\ \ | || | | |_ \_| | || | / .' \_| | || | / .--. \ | || | | \/ | | | 8 | | | / ____ \ | || | | _| | || | | | | || | | | | | | || | | |\ /| | | | 9 | | | _/ / \ \_ | || | _| |_ | || | \ `.___.'\ | || | \ `--' / | || | _| |_\/_| |_ | | 10 | | ||____| |____|| || | |_____| | || | `._____.' | || | `.____.' | || ||_____||_____|| | 11 | | | | || | | || | | || | | || | | | 12 | | '--------------' || '--------------' || '--------------' || '--------------' || '--------------' | 13 | '----------------' '----------------' '----------------' '----------------' '----------------' 14 | ``` 15 | 16 | The AFCOM (aka Serial communication GUI program) tool is a software application that allows users to send and receive data via the serial port (COM port) of their computer. 17 | The tool can be used for various purposes, such as testing, debugging, or communicating with other devices that use the serial protocol. 18 | 19 | mcagriaksoy - Serial-Communication-GUI-Program 20 | GitHub tag 21 | License 22 | issues - Serial-Communication-GUI-Program 23 | 24 | [![Hosted with GH Pages](https://img.shields.io/badge/Hosted_with-GitHub_Pages-blue?logo=github&logoColor=white)](https://pages.github.com/ "Go to GitHub Pages homepage") 25 | 26 | ## Features 27 | 28 | The COM port tool has the following features: 29 | 30 | It supports multiple COM ports and can detect the available ports automatically. 31 | It allows users to configure the parameters of the serial communication, such as baud rate. 32 | It provides a user-friendly interface that shows the transmitted and received data in hexadecimal, decimal, ASCII, or binary formats. 33 | It allows users to save and load the data to and from files. 34 | 35 | ## Usage 36 | 37 | The COM port tool is compatible with: 38 | [![OS - Linux](https://img.shields.io/badge/OS-Linux-blue?logo=linux&logoColor=white)](https://www.linux.org/ "Go to Linux homepage") 39 | [![OS - Windows](https://img.shields.io/badge/OS-Windows-blue?logo=windows&logoColor=white)](https://www.microsoft.com/ "Go to Microsoft homepage") 40 | 41 | 1. Run the program. 42 | 2. Select a serial port and configure parameters. 43 | 3. Start communication using the **Start** button. 44 | 4. Send or receive data as needed. 45 | 5. Save received data or clear buffers using the respective buttons. 46 | 47 | ![Project SS](https://github.com/mcagriaksoy/Serial-Communication-GUI-Program/blob/master/img/Screenshot_v2025_04.jpg) 48 | 49 | If you encounter any problems while using the COM port tool, try these solutions: 50 | 51 | Make sure that the COM port is not used by another application or device. 52 | Make sure that the parameters of the serial communication match with those of the device you are communicating with. 53 | Make sure that you have sufficient permissions to access the COM port. 54 | If you have any questions or feedback, please contact me. 55 | 56 | ## Dependencies 57 | 58 | [![PySide - >= 6.0](https://img.shields.io/badge/PySide->_6.0-2ea44f)](https://wiki.python.org/moin/PySide) 59 | [![PySide_sip - >= 13.0](https://img.shields.io/badge/PySide_sip->_13.0-2ea44f)](https://pypi.org/project/PySide6-sip/) 60 | [![PySerial - >= 3.0](https://img.shields.io/badge/PySide->_3.0-2ea44f)](https://pypi.org/project/pyserial/) 61 | 62 |

Documentation

63 |
64 | view - Documentation 65 | 66 |
67 |

Executable Command

68 | The following command have been used to create AFCOM.exe 69 | 70 | ``` 71 | pyinstaller --noconfirm --onefile --windowed --icon "ui/icon.ico" "src/main.py" 72 | 73 | ``` 74 | 75 | ## Changes 76 | 77 | ### V1.4.0 - 2025 Update 78 | 79 | Feature: Added basic_view_enabled and advanced_view_enabled methods to toggle UI layouts visibility. 80 | Implemented start_loop and stop_loop for managing serial communication with threading. 81 | Added on_save_txt_button_clicked to save received data to a .txt file. 82 | 83 | Improvement: Enhanced error handling for serial communication and worker threads. 84 | Added visual feedback for serial port selection and connection status. 85 | 86 | Bug Fix: Fixed UI responsiveness during active serial communication. 87 | 88 | Refactor: Organized serial communication logic into reusable methods. 89 | 90 | 91 |

License

92 | Released under GNU General Public License v3.0 by @mcagriaksoy. 93 | 94 | ![AFCOM Icon](https://github.com/mcagriaksoy/Serial-Communication-GUI-Program/blob/master/img/icon.png) 95 | -------------------------------------------------------------------------------- /Serial-Communication-GUI-Program.pyproject: -------------------------------------------------------------------------------- 1 | { 2 | "files": [ 3 | "main.py", 4 | "src/ui_main.py", 5 | "ui/icon.ico", 6 | "ui/main_window.ui", 7 | "ui/resources.qrc", 8 | "ui/ui_main_window.py" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /Serial-Communication-GUI-Program.pyproject.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | EnvironmentId 7 | {4646d31b-0756-4b18-862a-a9b79f474b19} 8 | 9 | 10 | ProjectExplorer.Project.ActiveTarget 11 | 0 12 | 13 | 14 | ProjectExplorer.Project.EditorSettings 15 | 16 | true 17 | true 18 | true 19 | 20 | Cpp 21 | 22 | CppGlobal 23 | 24 | 25 | 26 | QmlJS 27 | 28 | QmlJSGlobal 29 | 30 | 31 | 2 32 | UTF-8 33 | false 34 | 4 35 | false 36 | 0 37 | 80 38 | true 39 | true 40 | 1 41 | 0 42 | false 43 | true 44 | false 45 | 2 46 | true 47 | true 48 | 0 49 | 8 50 | true 51 | false 52 | 1 53 | true 54 | true 55 | true 56 | *.md, *.MD, Makefile 57 | false 58 | true 59 | true 60 | 61 | 62 | 63 | ProjectExplorer.Project.PluginSettings 64 | 65 | 66 | true 67 | false 68 | true 69 | true 70 | true 71 | true 72 | 73 | false 74 | 75 | 76 | 0 77 | true 78 | 79 | true 80 | true 81 | Builtin.DefaultTidyAndClazy 82 | 10 83 | true 84 | 85 | 86 | 87 | true 88 | 89 | 90 | 91 | 92 | ProjectExplorer.Project.Target.0 93 | 94 | Desktop 95 | Python 3.11.9 96 | Python 3.11.9 97 | {a4f7dce4-e22f-4745-a577-0e4da9312feb} 98 | 0 99 | 0 100 | 3 101 | 102 | C:\Projects\Qt_playground\Serial-Communication-GUI-Program 103 | 104 | 105 | true 106 | Python.PysideBuildStep 107 | C:\Users\aksoym\AppData\Local\Programs\Python\Python311\Scripts\pyside6-project.exe 108 | C:\Users\aksoym\AppData\Local\Programs\Python\Python311\Scripts\pyside6-uic.exe 109 | 110 | 1 111 | Build 112 | Build 113 | ProjectExplorer.BuildSteps.Build 114 | 115 | 116 | 0 117 | Clean 118 | Clean 119 | ProjectExplorer.BuildSteps.Clean 120 | 121 | 2 122 | false 123 | 124 | false 125 | 126 | Python 3.11.9 127 | Python.PySideBuildConfiguration 128 | C:/Users/aksoym/AppData/Local/Programs/Python/Python311/python.exe 129 | 130 | 1 131 | 132 | 133 | 0 134 | Deploy 135 | Deploy 136 | ProjectExplorer.BuildSteps.Deploy 137 | 138 | 1 139 | 140 | false 141 | ProjectExplorer.DefaultDeployConfiguration 142 | 143 | 1 144 | 145 | true 146 | true 147 | 0 148 | true 149 | 150 | 2 151 | 152 | false 153 | -e cpu-cycles --call-graph "dwarf,4096" -F 250 154 | mainwindow.py 155 | PythonEditor.RunConfiguration. 156 | C:/Projects/Qt_playground/Serial-Communication-GUI-Program/mainwindow.py 157 | true 158 | true 159 | true 160 | 161 | 162 | true 163 | true 164 | 0 165 | true 166 | 167 | 2 168 | 169 | false 170 | -e cpu-cycles --call-graph "dwarf,4096" -F 250 171 | src\ui_config.py 172 | PythonEditor.RunConfiguration. 173 | C:/Projects/Qt_playground/Serial-Communication-GUI-Program/src/ui_config.py 174 | true 175 | true 176 | true 177 | 178 | 179 | true 180 | true 181 | 0 182 | true 183 | 184 | 2 185 | 186 | false 187 | -e cpu-cycles --call-graph "dwarf,4096" -F 250 188 | src\ui_main.py 189 | PythonEditor.RunConfiguration. 190 | C:/Projects/Qt_playground/Serial-Communication-GUI-Program/src/ui_main.py 191 | true 192 | true 193 | true 194 | 195 | 196 | true 197 | true 198 | 0 199 | true 200 | 201 | 2 202 | 203 | false 204 | -e cpu-cycles --call-graph "dwarf,4096" -F 250 205 | main.py 206 | PythonEditor.RunConfiguration. 207 | C:/Projects/Qt_playground/Serial-Communication-GUI-Program/main.py 208 | true 209 | true 210 | true 211 | 212 | 213 | true 214 | true 215 | 0 216 | true 217 | 218 | 2 219 | 220 | false 221 | -e cpu-cycles --call-graph "dwarf,4096" -F 250 222 | main.py2 223 | PythonEditor.RunConfiguration. 224 | C:/Users/aksoym/Desktop/Serial-Communication-GUI-Program/main.py 225 | true 226 | C:\Users\aksoym\Desktop\Serial-Communication-GUI-Program\main.py 227 | true 228 | true 229 | C:/Users/aksoym/Desktop/Serial-Communication-GUI-Program 230 | 231 | 5 232 | 233 | 234 | 235 | ProjectExplorer.Project.TargetCount 236 | 1 237 | 238 | 239 | ProjectExplorer.Project.Updater.FileVersion 240 | 22 241 | 242 | 243 | Version 244 | 22 245 | 246 | 247 | -------------------------------------------------------------------------------- /gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.spec -------------------------------------------------------------------------------- /img/Screenshot_v2025_04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcagriaksoy/Serial-Communication-GUI-Program/50bb42d973dfb7de504cb9035a6548d8fe9de46b/img/Screenshot_v2025_04.jpg -------------------------------------------------------------------------------- /img/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcagriaksoy/Serial-Communication-GUI-Program/50bb42d973dfb7de504cb9035a6548d8fe9de46b/img/icon.ico -------------------------------------------------------------------------------- /img/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcagriaksoy/Serial-Communication-GUI-Program/50bb42d973dfb7de504cb9035a6548d8fe9de46b/img/icon.png -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | # This Python file uses the following encoding: utf-8 2 | 3 | """ 4 | AFCOM - Serial Communication GUI Program 5 | """ 6 | __author__ = "Mehmet Cagri Aksoy - github.com/mcagriaksoy" 7 | __copyright__ = "Copyright 2023, The AFCOM Project" 8 | __credits__ = ["Mehmet Cagri Aksoy"] 9 | __license__ = "JGPLv3" 10 | __version__ = "2024.11" 11 | __maintainer__ = "Mehmet Cagri Aksoy" 12 | __status__ = "Production" 13 | 14 | from src.ui_main import start_ui_design 15 | 16 | if __name__ == "__main__": 17 | print("AFCOM - Serial Communication GUI Program") 18 | start_ui_design() 19 | -------------------------------------------------------------------------------- /main.spec: -------------------------------------------------------------------------------- 1 | # -*- mode: python ; coding: utf-8 -*- 2 | 3 | 4 | a = Analysis( 5 | ['main.py'], 6 | pathex=[], 7 | binaries=[], 8 | datas=[], 9 | hiddenimports=[], 10 | hookspath=[], 11 | hooksconfig={}, 12 | runtime_hooks=[], 13 | excludes=[], 14 | noarchive=False, 15 | optimize=0, 16 | ) 17 | pyz = PYZ(a.pure) 18 | 19 | exe = EXE( 20 | pyz, 21 | a.scripts, 22 | a.binaries, 23 | a.datas, 24 | [], 25 | name='main', 26 | debug=False, 27 | bootloader_ignore_signals=False, 28 | strip=False, 29 | upx=True, 30 | upx_exclude=[], 31 | runtime_tmpdir=None, 32 | console=False, 33 | disable_windowed_traceback=False, 34 | argv_emulation=False, 35 | target_arch=None, 36 | codesign_identity=None, 37 | entitlements_file=None, 38 | ) 39 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | PySide6 2 | PyQt6_sip 3 | pyserial 4 | 5 | # To update the requirements.txt file, run the following command: 6 | # pip install pipreqs 7 | # pipreqs path/to/your/project 8 | -------------------------------------------------------------------------------- /src/Conversion_script.txt: -------------------------------------------------------------------------------- 1 | python -m PyQt6.uic.pyuic -o .\ui_config.py -x .\main_window.ui -------------------------------------------------------------------------------- /src/action_ui.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | @file action_ui.py 4 | @brief Action UI for the application. 5 | @details This module provides the Action UI for the application, allowing users to interact with the system. 6 | """ 7 | # Runtime Type Checking 8 | PROGRAM_TYPE_DEBUG = True 9 | PROGRAM_TYPE_RELEASE = False 10 | try: 11 | from PySide6.QtUiTools import QUiLoader 12 | from PySide6.QtWidgets import QDialog, QFileDialog, QMessageBox 13 | from PySide6.QtCore import QFile 14 | from ui.settings import Ui_Dialog 15 | from ui.help import Ui_HelpDialog 16 | except ImportError: 17 | print("PySide6 is not installed. Please install it to use this module.") 18 | 19 | def action_save_as(ui): 20 | """ 21 | Save the current state of the application as a new file. 22 | """ 23 | # Open the file dialog to select the save location and file name 24 | file_name, _ = QFileDialog.getSaveFileName( 25 | None, 'Save File', '', 'Text Files (*.txt)') 26 | if file_name: 27 | with open(file_name, 'w') as file: 28 | text = ui.data_textEdit.toPlainText() # Access the textEdit element 29 | file.write(text) 30 | 31 | def action_save(ui): 32 | """ 33 | Save the current state of the application to the existing file. 34 | """ 35 | # Check if a file is already open 36 | if hasattr(ui, 'current_file'): 37 | # Save the current state to the existing file 38 | with open(ui.current_file, 'w') as file: 39 | file.write(ui.data_textEdit.toPlainText()) 40 | else: 41 | # If no file is open, call action_save_as to prompt for a file name 42 | action_save_as(ui) 43 | 44 | def basic_view_enabled(ui): 45 | """ Hide specific layouts in the UI for basic view """ 46 | # Hide all widgets in the verticalLayout_config 47 | for i in range(ui.verticalLayout_config.count()): 48 | widget = ui.verticalLayout_config.itemAt(i).widget() 49 | if widget: 50 | widget.setVisible(False) 51 | 52 | # Optionally, hide all widgets in the formLayout_config 53 | for i in range(ui.formLayout_config.count()): 54 | widget = ui.formLayout_config.itemAt(i).widget() 55 | if widget: 56 | widget.setVisible(False) 57 | 58 | def advanced_view_enabled(ui): 59 | """ Show specific layouts in the UI for advanced view """ 60 | # Show all widgets in the verticalLayout_config 61 | for i in range(ui.verticalLayout_config.count()): 62 | widget = ui.verticalLayout_config.itemAt(i).widget() 63 | if widget: 64 | widget.setVisible(True) 65 | 66 | # Optionally, show all widgets in the formLayout_config 67 | for i in range(ui.formLayout_config.count()): 68 | widget = ui.formLayout_config.itemAt(i).widget() 69 | if widget: 70 | widget.setVisible(True) 71 | 72 | def clear_buffer(ui): 73 | """ Clear the buffer """ 74 | ui.data_textEdit.clear() 75 | ui.send_data_text.clear() 76 | 77 | def show_about_dialog(ui): 78 | """ Show the about dialog """ 79 | # Crete a message box to display the about information 80 | msg_box = QMessageBox() 81 | msg_box.setWindowTitle("About") 82 | msg_box.setText("AFCOM Client v1.4.0.0 (C) 2020 - 2025 \r\n\r\nAuthor: Mehmet Cagri Aksoy \r\ngithub.com/mcagriaksoy") 83 | msg_box.setIcon(QMessageBox.Information) 84 | msg_box.setStandardButtons(QMessageBox.Ok) 85 | msg_box.setDefaultButton(QMessageBox.Ok) 86 | msg_box.setModal(True) 87 | msg_box.exec() # Show the message box modally 88 | 89 | 90 | def show_help_dialog(ui): 91 | """ Show the help dialog """ 92 | if PROGRAM_TYPE_DEBUG: 93 | file_path = "ui/help.ui" # Adjust the path if necessary 94 | ui_file = QFile(file_path) 95 | if not ui_file.exists(): 96 | QMessageBox.critical(None, "Error", f"Help UI file not found: {file_path}") 97 | return 98 | 99 | ui_file.open(QFile.ReadOnly) 100 | loader = QUiLoader() 101 | help_dialog = loader.load(ui_file) 102 | ui_file.close() 103 | if help_dialog: 104 | help_dialog.setWindowTitle("Help") 105 | help_dialog.setModal(True) 106 | help_dialog.exec() 107 | else: 108 | QMessageBox.critical(None, "Error", "Failed to load the help UI.") 109 | else: 110 | try: 111 | dialog = QDialog() # Create a QDialog instance 112 | help_dialog = Ui_HelpDialog() # Initialize the UI class 113 | help_dialog.setupUi(dialog) # Set up the UI on the dialog 114 | dialog.setWindowTitle("Help") # Set the dialog title 115 | dialog.exec() # Show the dialog modally 116 | except Exception as e: 117 | print(f"Error in show_help_dialog: {e}") 118 | 119 | def show_settings_dialog(ui): 120 | """ Show the settings dialog """ 121 | if PROGRAM_TYPE_DEBUG: 122 | file_path = "ui/settings.ui" # Adjust the path if necessary 123 | ui_file = QFile(file_path) 124 | if not ui_file.exists(): 125 | QMessageBox.critical(None, "Error", f"Settings UI file not found: {file_path}") 126 | return 127 | 128 | ui_file.open(QFile.ReadOnly) 129 | loader = QUiLoader() 130 | settings_dialog = loader.load(ui_file) 131 | ui_file.close() 132 | if settings_dialog: 133 | settings_dialog.setWindowTitle("Settings") 134 | settings_dialog.setModal(True) 135 | settings_dialog.exec() 136 | else: 137 | QMessageBox.critical(None, "Error", "Failed to load the settings UI.") 138 | else: 139 | try: 140 | dialog = QDialog() # Create a QDialog instance 141 | settings_dialog = Ui_Dialog() # Initialize the UI class 142 | settings_dialog.setupUi(dialog) # Set up the UI on the dialog 143 | dialog.setWindowTitle("Settings") # Set the dialog title 144 | dialog.exec() # Show the dialog modally 145 | except Exception as e: 146 | print(f"Error in show_settings_dialog: {e}") 147 | 148 | def check_for_updates(ui): 149 | """ Check for updates """ 150 | # Placeholder function for checking updates 151 | # You can implement the actual update check logic here 152 | QMessageBox.information(ui, "Check for Updates", "No updates available at this time.") 153 | 154 | 155 | 156 | -------------------------------------------------------------------------------- /src/help.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcagriaksoy/Serial-Communication-GUI-Program/50bb42d973dfb7de504cb9035a6548d8fe9de46b/src/help.py -------------------------------------------------------------------------------- /src/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcagriaksoy/Serial-Communication-GUI-Program/50bb42d973dfb7de504cb9035a6548d8fe9de46b/src/icon.ico -------------------------------------------------------------------------------- /src/ui_main.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | AFCOM - Serial Communication GUI Program 4 | Cannot be used directly, it is a part of main.py 5 | """ 6 | 7 | __author__ = 'Mehmet Cagri Aksoy - github.com/mcagriaksoy' 8 | __annotations__ = 'AFCOM - Serial Communication GUI Program' 9 | __version__ = '2025 - 1.4.0.0' 10 | __license__ = 'JGPLv3' 11 | __status__ = 'Development' 12 | 13 | # IMPORTS 14 | from os import path, system 15 | from sys import platform, exit, argv 16 | from glob import glob 17 | from src import action_ui 18 | # Runtime Type Checking 19 | PROGRAM_TYPE_DEBUG = True 20 | PROGRAM_TYPE_RELEASE = False 21 | 22 | try: 23 | import serial.tools.list_ports 24 | from serial import SerialException, Serial 25 | except ImportError as e: 26 | print("Import Error! I am installing the PySerial library.") 27 | #system("python -m pip install pyserial") 28 | 29 | try: 30 | from PySide6.QtCore import QObject, QThread, Signal, QFile, Qt, QEvent, QTimer 31 | from PySide6.QtWidgets import QApplication, QMainWindow, QMessageBox, QInputDialog 32 | from ui.main_window import Ui_main_window 33 | if (PROGRAM_TYPE_DEBUG): 34 | from PySide6.QtUiTools import QUiLoader 35 | 36 | except ImportError as e: 37 | print("Import Error! I am installing the required libraries: " + str(e)) 38 | #system("pip install {0}".format(str(e).split(" ")[-1])) 39 | 40 | # GLOBAL VARIABLES 41 | SERIAL_DEVICE = Serial() 42 | PORTS = [] 43 | is_serial_port_established = False 44 | 45 | from winreg import OpenKey, HKEY_CURRENT_USER, QueryValueEx, ConnectRegistry, KEY_READ, KEY_WOW64_64KEY 46 | 47 | def is_windows_dark_mode(self): 48 | try: 49 | registry = ConnectRegistry(None, HKEY_CURRENT_USER) 50 | registry_key = OpenKey(registry, r'Software\Microsoft\Windows\CurrentVersion\Themes\Personalize') 51 | value, _ = QueryValueEx(registry_key, 'AppsUseLightTheme') 52 | return value == 0 # 0 means dark mode is enabled 53 | except WindowsError: 54 | return False 55 | 56 | # simpleViewEnabled = False 57 | 58 | 59 | def get_serial_port(): 60 | """ Lists serial port names 61 | 62 | :raises EnvironmentError: 63 | On unsupported or unknown platforms 64 | :returns: 65 | A list of the serial ports available on the system 66 | """ 67 | if platform.startswith('win'): 68 | ports = ['COM%s' % (i + 1) for i in range(256)] 69 | elif platform.startswith('linux') or platform.startswith('cygwin'): 70 | ports = glob('/dev/tty[A-Za-z]*') 71 | elif platform.startswith('darwin'): 72 | ports = glob('/dev/tty.*') 73 | else: 74 | raise EnvironmentError('Unsupported platform') 75 | 76 | result = [] 77 | for port in ports: 78 | try: 79 | s = Serial(port) 80 | s.close() 81 | result.append(port) 82 | except (OSError, SerialException): 83 | pass 84 | return result 85 | 86 | # MULTI-THREADING 87 | class Worker(QObject): 88 | """ Worker Thread """ 89 | finished = Signal() 90 | serial_data = Signal(str) 91 | 92 | def __init__(self): 93 | super(Worker, self).__init__() 94 | self.working = True 95 | 96 | def work(self): 97 | """ Read data from serial port """ 98 | while self.working: 99 | try: 100 | char = SERIAL_DEVICE.read() 101 | h = char.decode('utf-8') 102 | self.serial_data.emit(h) 103 | except SerialException as e: 104 | print(e) 105 | # Emit last error message before die! 106 | self.serial_data.emit("ERROR_SERIAL_EXCEPTION") 107 | self.working = False 108 | self.finished.emit() 109 | 110 | class MainWindow(QMainWindow): 111 | """ Main Window """ 112 | 113 | def __init__(self): 114 | """ Initialize Main Window """ 115 | super(MainWindow, self).__init__() 116 | 117 | if PROGRAM_TYPE_DEBUG: 118 | 119 | file_path = path.join("ui/main_window.ui") 120 | if not path.exists(file_path): 121 | print("UI File Not Found!") 122 | exit(1) 123 | ui_file = QFile(file_path) 124 | ui_file.open(QFile.ReadOnly) 125 | loader = QUiLoader() 126 | self.ui = loader.load(ui_file) 127 | self.ui.show() 128 | else: # PROGRAM_TYPE_RELEASE 129 | print("UI File Found!") 130 | self.ui = Ui_main_window() 131 | self.ui.setupUi(self) 132 | 133 | if (is_windows_dark_mode(self)): 134 | print("Windows Dark Mode is enabled!") 135 | # todo add dark mode support for the UI 136 | 137 | PORTS = get_serial_port() 138 | 139 | self.thread = None 140 | self.worker = None 141 | 142 | self.ui.start_button.clicked.connect(self.on_start_button_clicked) 143 | self.ui.refresh_button.clicked.connect(self.refresh_port) 144 | ''' 145 | self.ui.command_edit_1.clicked.connect(self.command1) 146 | self.ui.command_edit_2.clicked.connect(self.command2) 147 | self.ui.command_edit_3.clicked.connect(self.command3) 148 | self.ui.command_edit_4.clicked.connect(self.command4) 149 | 150 | self.ui.saved_command_1.clicked.connect(self.move_command1_to_text) 151 | self.ui.saved_command_2.clicked.connect(self.move_command2_to_text) 152 | self.ui.saved_command_3.clicked.connect(self.move_command3_to_text) 153 | self.ui.saved_command_4.clicked.connect(self.move_command4_to_text) 154 | ''' 155 | 156 | self.ui.actionClear_Cache.triggered.connect(action_ui.clear_buffer) 157 | 158 | self.ui.actionBasic_View.triggered.connect(lambda: action_ui.basic_view_enabled(self.ui)) 159 | self.ui.actionAdvanced_View.triggered.connect(lambda: action_ui.advanced_view_enabled(self.ui)) 160 | 161 | self.ui.actionSave.triggered.connect(action_ui.action_save) 162 | self.ui.actionSave_As.triggered.connect(action_ui.action_save_as) 163 | 164 | self.ui.port_comboBox.addItems(PORTS) 165 | self.ui.send_button.clicked.connect(self.on_send_data_button_clicked) 166 | 167 | # when Enter is pressed in send_data_text 168 | self.ui.send_data_text.installEventFilter(self) 169 | 170 | self.ui.actionExit.triggered.connect(lambda: exit(0)) 171 | self.ui.actionAbout.triggered.connect(action_ui.show_about_dialog) 172 | self.ui.actionCheck_for_updates.triggered.connect(action_ui.check_for_updates) 173 | self.ui.actionHelp_2.triggered.connect(action_ui.show_help_dialog) 174 | self.ui.actionPreferences.triggered.connect(action_ui.show_settings_dialog) 175 | 176 | ''' 177 | def command1(self): 178 | """ Open the text input popup to save command for button 1 """ 179 | self.command_edit(1) 180 | 181 | def command2(self): 182 | """ Open the text input popup to save command for button 2 """ 183 | self.command_edit(2) 184 | 185 | def command3(self): 186 | """ Open the text input popup to save command for button 3 """ 187 | self.command_edit(3) 188 | 189 | def command4(self): 190 | """ Open the text input popup to save command for button 4 """ 191 | self.command_edit(4) 192 | 193 | def command_edit(self, button_number): 194 | """ Open the text input popup to save command """ 195 | # Create a text input popup 196 | text, ok = QInputDialog.getText( 197 | self, 'Set your command', 'Please enter the command that you want to save:') 198 | if ok: 199 | if button_number == 1: 200 | self.ui.saved_command_1.setText(str(text)) 201 | elif button_number == 2: 202 | self.ui.saved_command_2.setText(str(text)) 203 | elif button_number == 3: 204 | self.ui.saved_command_3.setText(str(text)) 205 | elif button_number == 4: 206 | self.ui.saved_command_4.setText(str(text)) 207 | 208 | def move_command1_to_text(self): 209 | """ Move the saved command to the text box """ 210 | self.ui.send_data_text.setText(self.ui.saved_command_1.text()) 211 | self.on_send_data_button_clicked() 212 | 213 | def move_command2_to_text(self): 214 | """ Move the saved command to the text box """ 215 | self.ui.send_data_text.setText(self.ui.saved_command_2.text()) 216 | self.on_send_data_button_clicked() 217 | 218 | def move_command3_to_text(self): 219 | """ Move the saved command to the text box """ 220 | self.ui.send_data_text.setText(self.ui.saved_command_3.text()) 221 | self.on_send_data_button_clicked() 222 | 223 | def move_command4_to_text(self): 224 | """ Move the saved command to the text box """ 225 | self.ui.send_data_text.setText(self.ui.saved_command_4.text()) 226 | self.on_send_data_button_clicked() 227 | ''' 228 | def eventFilter(self, obj, event): 229 | # Check if the event is for send_data_text and Enter is pressed 230 | if obj == self.ui.send_data_text and event.type() == QEvent.KeyPress: 231 | if event.key() in (Qt.Key_Return, Qt.Key_Enter): 232 | self.on_send_data_button_clicked() 233 | return True # Prevents QTextEdit from adding a new line 234 | return super().eventFilter(obj, event) 235 | 236 | def refresh_port(self): 237 | """ Refresh the serial port list """ 238 | PORTS = get_serial_port() 239 | self.ui.port_comboBox.clear() 240 | self.ui.port_comboBox.addItems(PORTS) 241 | 242 | def print_message_on_screen(self, text): 243 | """ Print the message on the screen """ 244 | msg = QMessageBox() 245 | msg.setWindowTitle("Warning!") 246 | msg.setIcon(QMessageBox.Icon.Warning) 247 | msg.setText(text) 248 | msg.exec() 249 | 250 | def establish_serial_communication(self): 251 | """ Establish serial communication """ 252 | port = self.ui.port_comboBox.currentText() 253 | baudrate = self.ui.baudrate_comboBox.currentText() 254 | timeout = self.ui.timeout_comboBox.currentText() 255 | length = self.ui.len_comboBox.currentText() 256 | parity = self.ui.parity_comboBox.currentText() 257 | stopbits = self.ui.bit_comboBox.currentText() 258 | flowControl = self.ui.flow_comboBox.currentText() 259 | 260 | if parity == "None": 261 | _parity = serial.PARITY_NONE 262 | elif parity == "Even": 263 | _parity = serial.PARITY_EVEN 264 | elif parity == "Odd": 265 | _parity = serial.PARITY_ODD 266 | elif parity == "Mark": 267 | _parity = serial.PARITY_MARK 268 | elif parity == "Space": 269 | _parity = serial.PARITY_SPACE 270 | else: 271 | self.print_message_on_screen("Parity Error!") 272 | 273 | if flowControl == "None": 274 | _xonxoff = False 275 | _rtscts = False 276 | _dsrdtr = False 277 | elif flowControl == "Xon/Xoff": 278 | _xonxoff = True 279 | _rtscts = False 280 | _dsrdtr = False 281 | elif flowControl == "RTS/CTS": 282 | _xonxoff = False 283 | _rtscts = True 284 | _dsrdtr = False 285 | elif flowControl == "DSR/DTR": 286 | _xonxoff = False 287 | _rtscts = False 288 | _dsrdtr = True 289 | else: 290 | self.print_message_on_screen("Flow Control Error!") 291 | 292 | global SERIAL_DEVICE 293 | SERIAL_DEVICE = serial.Serial(port=str(port), 294 | baudrate=int(baudrate, base=10), 295 | timeout=float(timeout), 296 | bytesize=int(length, base=10), 297 | parity=_parity, 298 | stopbits=float(stopbits), 299 | xonxoff = _xonxoff, 300 | rtscts = _rtscts, 301 | dsrdtr = _dsrdtr, 302 | ) 303 | if SERIAL_DEVICE.isOpen() == False: 304 | SERIAL_DEVICE.open() 305 | 306 | def on_start_button_clicked(self): 307 | """ Start the loop """ 308 | # Check if the port_comboBox style is red, if so, set it to system default 309 | if self.ui.port_comboBox.styleSheet() == 'background-color: red': 310 | self.ui.port_comboBox.setStyleSheet('') 311 | 312 | global is_serial_port_established 313 | 314 | if is_serial_port_established: 315 | is_serial_port_established = False 316 | self.ui.start_button.setText("START") 317 | self.ui.start_button.setStyleSheet('color: green;') 318 | self.on_stop_button_clicked() 319 | return 320 | 321 | # If the serial port is not selected, print a message 322 | if self.ui.port_comboBox.currentText() == "": 323 | self.print_message_on_screen("Please select a serial port first!") 324 | # Set port_comboBox background color to red 325 | self.ui.port_comboBox.setStyleSheet('background-color: red') 326 | return 327 | 328 | try: 329 | self.establish_serial_communication() 330 | except SerialException: 331 | self.print_message_on_screen( 332 | "Exception occured while trying establish serial communication!") 333 | return 334 | is_serial_port_established = True 335 | # change start_button to stop button 336 | self.ui.options_textEdit.setText('Disconnected!') 337 | self.ui.start_button.setText("STOP") 338 | self.ui.start_button.setStyleSheet('color: red;') 339 | 340 | try: 341 | self.worker = Worker() # a new worker to perform those tasks 342 | self.thread = QThread() # a new thread to run our background tasks in 343 | # move the worker into the thread, do this first before connecting the signals 344 | self.worker.moveToThread(self.thread) 345 | # begin our worker object's loop when the thread starts running 346 | self.thread.started.connect(self.worker.work) 347 | self.worker.serial_data.connect(self.read_data_from_thread) 348 | # tell the thread it's time to stop running 349 | self.worker.finished.connect(self.thread.quit) 350 | # have worker mark itself for deletion 351 | self.worker.finished.connect(self.worker.deleteLater) 352 | # have thread mark itself for deletion 353 | self.thread.finished.connect(self.thread.deleteLater) 354 | 355 | self.enable_configuration(False) 356 | self.ui.options_textEdit.setText('RX/TX Connected!') 357 | self.ui.status_label.setText("CONNECTED!") 358 | self.ui.status_label.setStyleSheet('color: green') 359 | # start the thread 360 | self.thread.start() 361 | except RuntimeError: 362 | self.print_message_on_screen("Exception in Worker Thread!") 363 | 364 | def on_stop_button_clicked(self): 365 | """ Stop the loop """ 366 | self.ui.options_textEdit.setText('Stopped!') 367 | self.ui.status_label.setText("DISCONNECTED!") 368 | self.ui.status_label.setStyleSheet('color: red') 369 | self.enable_configuration(True) 370 | 371 | # Safely stop the worker thread 372 | if hasattr(self, 'worker') and self.worker is not None: 373 | self.worker.working = False 374 | 375 | # Safely close the serial device 376 | global SERIAL_DEVICE 377 | try: 378 | if SERIAL_DEVICE.is_open: 379 | SERIAL_DEVICE.close() 380 | except Exception as e: 381 | print(f"Error closing serial port: {e}") 382 | 383 | def enable_configuration(self, state): 384 | """ enable/disable the configuration """ 385 | self.ui.timeout_comboBox.setEnabled(state) 386 | self.ui.baudrate_comboBox.setEnabled(state) 387 | self.ui.len_comboBox.setEnabled(state) 388 | self.ui.port_comboBox.setEnabled(state) 389 | self.ui.parity_comboBox.setEnabled(state) 390 | self.ui.bit_comboBox.setEnabled(state) 391 | self.ui.flow_comboBox.setEnabled(state) 392 | 393 | def read_data_from_thread(self, serial_data): 394 | """ Write the result to the text edit box""" 395 | # self.ui.data_textEdit.append("{}".format(i)) 396 | if "ERROR_SERIAL_EXCEPTION" in serial_data: 397 | self.print_message_on_screen( 398 | "Serial Port Exception! Please check the serial port" 399 | " Possibly it is not connected or the port is not available!") 400 | self.on_stop_button_clicked() 401 | else: 402 | serial_data = serial_data.replace('\n', '') 403 | self.ui.data_textEdit.insertPlainText("{}".format(serial_data)) 404 | self.ui.data_textEdit.verticalScrollBar().setValue( 405 | self.ui.data_textEdit.verticalScrollBar().maximum()) 406 | 407 | def on_send_data_button_clicked(self): 408 | """ Send data to serial port """ 409 | if is_serial_port_established: 410 | self.ui.indicate_button.setChecked(True) 411 | mytext = self.ui.send_data_text.toPlainText().encode('utf-8') 412 | SERIAL_DEVICE.flushOutput() # Flush output buffer 413 | SERIAL_DEVICE.write(mytext + b'\r\n') 414 | 415 | # Uncheck after 5 seconds without blocking the UI 416 | QTimer.singleShot(500, lambda: self.ui.indicate_button.setChecked(False)) 417 | else: 418 | self.print_message_on_screen( 419 | "Serial Port is not established yet! Please establish the serial port first!") 420 | 421 | 422 | def start_ui_design(): 423 | """ Start the UI Design """ 424 | app = QApplication(argv) # Create an instance 425 | window_object = MainWindow() # Create an instance of our class 426 | if PROGRAM_TYPE_RELEASE: 427 | window_object.show() 428 | exit(app.exec()) 429 | -------------------------------------------------------------------------------- /test/serial.ino: -------------------------------------------------------------------------------- 1 | // 'Mehmet Cagri Aksoy - github.com/mcagriaksoy' 2 | // VERSION V1.1 3 | 4 | void setup() { 5 | Serial.begin(9600); // set the baud rate 6 | Serial.println("Ready"); // print "Ready" once 7 | } 8 | 9 | void loop() { 10 | char inByte = ' '; 11 | 12 | for(int x=0; x<10; x++){ 13 | Serial.println(x); 14 | delay(300); 15 | } 16 | 17 | if(Serial.available()){ 18 | String(inByte) = Serial.readString(); 19 | Serial.println(inByte); // send the data back in a new line so that it is not all one long line 20 | } 21 | 22 | delay(1); // delay for 1/10 of a second 23 | } 24 | -------------------------------------------------------------------------------- /test/test_main.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import os 3 | import pytest 4 | from PyQt6.QtWidgets import QApplication 5 | sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'src')) 6 | from ui_main import MainWindow, get_serial_port 7 | 8 | # Mock functions to avoid actual serial communication during testing 9 | @pytest.fixture 10 | def mock_serial_communication(mocker): 11 | mocker.patch('your_app_module.serial.Serial') 12 | return mocker.patch.object(MainWindow, 'establish_serial_communication') 13 | 14 | def test_alp(): 15 | alp = True 16 | assert alp 17 | 18 | # def app_and_window(): 19 | # """Fixture to create a QApplication and MainWindow instance""" 20 | # app = QApplication([]) # Create a temporary application instance 21 | # window = MainWindow() 22 | # yield app, window 23 | # app.quit() # Close the application after tests 24 | 25 | # def test_get_serial_ports_windows(mocker, app_and_window): 26 | # """Test get_serial_port function on Windows platform""" 27 | # mocker.patch('platform.system', return_value='Windows') 28 | # expected_ports = ['COM1', 'COM2'] # Example ports 29 | # ports = get_serial_port() 30 | # assert ports == expected_ports 31 | 32 | # def test_get_serial_ports_linux(mocker, app_and_window): 33 | # """Test get_serial_port function on Linux platform""" 34 | # mocker.patch('platform.system', return_value='linux') 35 | # expected_ports = ['/dev/ttyUSB0', '/dev/ttyS0'] # Example ports 36 | # ports = get_serial_port() 37 | # assert ports == expected_ports 38 | 39 | # def test_get_serial_ports_unsupported_platform(mocker, app_and_window): 40 | # """Test get_serial_port function on unsupported platform""" 41 | # mocker.patch('platform.system', return_value='unsupported_os') 42 | # with pytest.raises(EnvironmentError): 43 | # get_serial_port() 44 | 45 | # def test_refresh_port(qtbot, app_and_window): 46 | # """Test refresh_port button functionality""" 47 | # app, window = app_and_window 48 | # # Mock get_serial_port to return a list of ports 49 | # window.ports = ["COM1", "COM2"] 50 | # qtbot.click(window.refresh_button) 51 | # assert window.port_comboBox.count() == 2 # Check if ports are added 52 | 53 | # def test_start_loop_no_port_selected(qtbot, app_and_window, mock_serial_communication): 54 | # """Test start_loop button with no port selected""" 55 | # app, window = app_and_window 56 | # # Mock serial communication to avoid errors 57 | # mock_serial_communication.return_value = None 58 | # qtbot.click(window.start_button) 59 | # assert window.port_comboBox.styleSheet() == 'background-color: red' 60 | # # Check if error message is displayed (implementation specific) 61 | 62 | # def test_start_loop_success(qtbot, app_and_window, mock_serial_communication): 63 | # """Test start_loop button with successful connection""" 64 | # app, window = app_and_window 65 | # # Mock get_serial_port to return a list of ports 66 | # mock_serial_communication.patch.object(serial.Serial, 'open').return_value = None 67 | # window.port_comboBox.setCurrentIndex(0) # Select the first port 68 | # qtbot.click(window.start_button) 69 | # assert window.status_label.text() == "CONNECTED!" 70 | # assert window.status_label.styleSheet() == 'color: green' 71 | # # Simulate receiving data (implementation specific) 72 | 73 | # def test_stop_loop(qtbot, app_and_window): 74 | # """Test stop_loop button functionality""" 75 | # app, window = app_and_window 76 | # # Simulate starting the loop (implementation specific) 77 | # qtbot.click(window.end_button) 78 | # assert window.options_textEdit.toPlainText() == '' 79 | # assert window.status_label.text() == "DISCONNECTED!" 80 | # assert window.status_label.styleSheet() == 'color: red' 81 | -------------------------------------------------------------------------------- /ui/Convert.txt: -------------------------------------------------------------------------------- 1 | Please use: 2 | 3 | pyside6-uic main_window.ui -o main_window.py -------------------------------------------------------------------------------- /ui/Convert_All.bat: -------------------------------------------------------------------------------- 1 | 2 | call cmd.exe /c "pyside6-uic help.ui -o help.py" 3 | call cmd.exe /c "pyside6-uic settings.ui -o settings.py" 4 | call cmd.exe /c "pyside6-uic main_window.ui -o main_window.py" 5 | call cmd.exe /c "pyside6-rcc resources.qrc -o resources_rc.py" 6 | REM SUCCESS 7 | pause -------------------------------------------------------------------------------- /ui/config.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Form 4 | 5 | 6 | 7 | 0 8 | 0 9 | 206 10 | 280 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 18 20 | 12 21 | 151 22 | 16 23 | 24 | 25 | 26 | Settings: Refresh: 27 | 28 | 29 | 30 | 31 | 32 | 168 33 | 2 34 | 31 35 | 28 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 10 46 | 40 47 | 191 48 | 231 49 | 50 | 51 | 52 | 53 | 54 | 55 | Selected Port: 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | Baud Rate: 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 9600 74 | 75 | 76 | 77 | 78 | 57600 79 | 80 | 81 | 82 | 83 | 115200 84 | 85 | 86 | 87 | 88 | 110 89 | 90 | 91 | 92 | 93 | 300 94 | 95 | 96 | 97 | 98 | 1200 99 | 100 | 101 | 102 | 103 | 2400 104 | 105 | 106 | 107 | 108 | 4800 109 | 110 | 111 | 112 | 113 | 19200 114 | 115 | 116 | 117 | 118 | 38400 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | Length (B): 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 8 135 | 136 | 137 | 138 | 139 | 7 140 | 141 | 142 | 143 | 144 | 6 145 | 146 | 147 | 148 | 149 | 5 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | Timeout: 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 2 166 | 167 | 168 | 169 | 170 | 3 171 | 172 | 173 | 174 | 175 | 4 176 | 177 | 178 | 179 | 180 | 5 181 | 182 | 183 | 184 | 185 | 10 186 | 187 | 188 | 189 | 190 | 30 191 | 192 | 193 | 194 | 195 | 50 196 | 197 | 198 | 199 | 200 | 100 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | Parity: 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | None 217 | 218 | 219 | 220 | 221 | Even 222 | 223 | 224 | 225 | 226 | Odd 227 | 228 | 229 | 230 | 231 | Mark 232 | 233 | 234 | 235 | 236 | Space 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | StopBits: 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 1 253 | 254 | 255 | 256 | 257 | 1.5 258 | 259 | 260 | 261 | 262 | 2 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | Flow Control: 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | None 279 | 280 | 281 | 282 | 283 | Xon/Xoff 284 | 285 | 286 | 287 | 288 | RTS/CTS 289 | 290 | 291 | 292 | 293 | DSR/DTR 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | Save All 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | -------------------------------------------------------------------------------- /ui/help.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | ################################################################################ 4 | ## Form generated from reading UI file 'help.ui' 5 | ## 6 | ## Created by: Qt User Interface Compiler version 6.9.0 7 | ## 8 | ## WARNING! All changes made in this file will be lost when recompiling UI file! 9 | ################################################################################ 10 | 11 | from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, 12 | QMetaObject, QObject, QPoint, QRect, 13 | QSize, QTime, QUrl, Qt) 14 | from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, 15 | QFont, QFontDatabase, QGradient, QIcon, 16 | QImage, QKeySequence, QLinearGradient, QPainter, 17 | QPalette, QPixmap, QRadialGradient, QTransform) 18 | from PySide6.QtWidgets import (QApplication, QDialog, QLabel, QSizePolicy, 19 | QTextEdit, QWidget) 20 | 21 | class Ui_HelpDialog(object): 22 | def setupUi(self, HelpDialog): 23 | if not HelpDialog.objectName(): 24 | HelpDialog.setObjectName(u"HelpDialog") 25 | HelpDialog.resize(765, 397) 26 | self.textEdit_3 = QTextEdit(HelpDialog) 27 | self.textEdit_3.setObjectName(u"textEdit_3") 28 | self.textEdit_3.setGeometry(QRect(10, 10, 751, 341)) 29 | self.textEdit_3.setUndoRedoEnabled(False) 30 | self.textEdit_3.setReadOnly(True) 31 | self.textEdit_3.setAcceptRichText(False) 32 | self.label = QLabel(HelpDialog) 33 | self.label.setObjectName(u"label") 34 | self.label.setGeometry(QRect(150, 360, 491, 16)) 35 | 36 | self.retranslateUi(HelpDialog) 37 | 38 | QMetaObject.connectSlotsByName(HelpDialog) 39 | # setupUi 40 | 41 | def retranslateUi(self, HelpDialog): 42 | HelpDialog.setWindowTitle(QCoreApplication.translate("HelpDialog", u"Dialog", None)) 43 | self.textEdit_3.setHtml(QCoreApplication.translate("HelpDialog", u"\n" 44 | "\n" 50 | "

Information

\n" 51 | "

The AFCOM (also known as Serial communication GUI program) tool is a software application that allows users to send and receive data via the serial port (C" 52 | "OM port) of their computer. The tool can be used for various purposes, such as testing, debugging, or communicating with other devices that use the serial protocol.

\n" 53 | "

Features

\n" 54 | "

The COM port tool has the following features: It supports multiple COM ports and can detect the available ports automatically. It allows users to configure the parameters of the serial communication, such as baud rate. It provides a user-friendly interface that shows the transmitted and received data in hexadecimal, decimal, ASCII, or binary formats. It allows users to save and load the data to and from files.

\n" 56 | "

Legal Information

\n" 57 | "

This application incorporates Qt for Python (PySide), which is licensed under the GNU Lesser General Public License version 3 (LGPLv3). By using this software, you agree to comply with the terms of the LGPLv3 license. For more information about Qt for Python, visit https://www.qt.io/qt-for-python. A copy of the LGPLv3 license is included with this application.

\n" 58 | "


", None)) 59 | self.label.setText(QCoreApplication.translate("HelpDialog", u"AFCOM Client v1.4.0.0 (C) 2020 - 2025 Author: Mehmet Cagri Aksoy github.com/mcagriaksoy", None)) 60 | # retranslateUi 61 | 62 | -------------------------------------------------------------------------------- /ui/help.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | HelpDialog 4 | 5 | 6 | 7 | 0 8 | 0 9 | 765 10 | 397 11 | 12 | 13 | 14 | Dialog 15 | 16 | 17 | 18 | 19 | 10 20 | 10 21 | 751 22 | 341 23 | 24 | 25 | 26 | false 27 | 28 | 29 | true 30 | 31 | 32 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> 33 | <html><head><meta name="qrichtext" content="1" /><meta charset="utf-8" /><style type="text/css"> 34 | p, li { white-space: pre-wrap; } 35 | hr { height: 1px; border-width: 0; } 36 | li.unchecked::marker { content: "\2610"; } 37 | li.checked::marker { content: "\2612"; } 38 | </style></head><body style=" font-family:'Segoe UI'; font-size:9pt; font-weight:400; font-style:normal;"> 39 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:696;">Information</span></p> 40 | <p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt;">The AFCOM (also known as Serial communication GUI program) tool is a software application that allows users to send and receive data via the serial port (COM port) of their computer. The tool can be used for various purposes, such as testing, debugging, or communicating with other devices that use the serial protocol. </span></p> 41 | <p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:696;">Features</span><span style=" font-size:12pt;"> </span></p> 42 | <p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt;">The COM port tool has the following features: It supports multiple COM ports and can detect the available ports automatically. It allows users to configure the parameters of the serial communication, such as baud rate. It provides a user-friendly interface that shows the transmitted and received data in hexadecimal, decimal, ASCII, or binary formats. It allows users to save and load the data to and from files.</span></p> 43 | <p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:696;">Legal Information</span></p> 44 | <p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt;">This application incorporates Qt for Python (PySide), which is licensed under the GNU Lesser General Public License version 3 (LGPLv3). By using this software, you agree to comply with the terms of the LGPLv3 license. For more information about Qt for Python, visit https://www.qt.io/qt-for-python. A copy of the LGPLv3 license is included with this application.</span></p> 45 | <p align="justify" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html> 46 | 47 | 48 | false 49 | 50 | 51 | 52 | 53 | 54 | 150 55 | 360 56 | 491 57 | 16 58 | 59 | 60 | 61 | AFCOM Client v1.4.0.0 (C) 2020 - 2025 Author: Mehmet Cagri Aksoy github.com/mcagriaksoy 62 | 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /ui/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mcagriaksoy/Serial-Communication-GUI-Program/50bb42d973dfb7de504cb9035a6548d8fe9de46b/ui/icon.ico -------------------------------------------------------------------------------- /ui/main_window.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | ################################################################################ 4 | ## Form generated from reading UI file 'main_window.ui' 5 | ## 6 | ## Created by: Qt User Interface Compiler version 6.9.0 7 | ## 8 | ## WARNING! All changes made in this file will be lost when recompiling UI file! 9 | ################################################################################ 10 | 11 | from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, 12 | QMetaObject, QObject, QPoint, QRect, 13 | QSize, QTime, QUrl, Qt) 14 | from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient, 15 | QCursor, QFont, QFontDatabase, QGradient, 16 | QIcon, QImage, QKeySequence, QLinearGradient, 17 | QPainter, QPalette, QPixmap, QRadialGradient, 18 | QTransform) 19 | from PySide6.QtWidgets import (QApplication, QComboBox, QFormLayout, QFrame, 20 | QGridLayout, QHBoxLayout, QLabel, QLayout, 21 | QMainWindow, QMenu, QMenuBar, QPushButton, 22 | QSizePolicy, QTextEdit, QVBoxLayout, QWidget) 23 | 24 | class Ui_main_window(object): 25 | def setupUi(self, main_window): 26 | if not main_window.objectName(): 27 | main_window.setObjectName(u"main_window") 28 | main_window.resize(1127, 633) 29 | sizePolicy = QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed) 30 | sizePolicy.setHorizontalStretch(0) 31 | sizePolicy.setVerticalStretch(0) 32 | sizePolicy.setHeightForWidth(main_window.sizePolicy().hasHeightForWidth()) 33 | main_window.setSizePolicy(sizePolicy) 34 | main_window.setMinimumSize(QSize(0, 0)) 35 | main_window.setMaximumSize(QSize(9290, 4095)) 36 | main_window.setCursor(QCursor(Qt.CursorShape.ArrowCursor)) 37 | icon = QIcon(QIcon.fromTheme(u"applications-development")) 38 | main_window.setWindowIcon(icon) 39 | main_window.setWindowOpacity(1.000000000000000) 40 | self.actionAna_Ekran = QAction(main_window) 41 | self.actionAna_Ekran.setObjectName(u"actionAna_Ekran") 42 | self.actionHelp = QAction(main_window) 43 | self.actionHelp.setObjectName(u"actionHelp") 44 | self.actionAbout = QAction(main_window) 45 | self.actionAbout.setObjectName(u"actionAbout") 46 | self.actionCheck_for_updates = QAction(main_window) 47 | self.actionCheck_for_updates.setObjectName(u"actionCheck_for_updates") 48 | self.actionReset_terminal = QAction(main_window) 49 | self.actionReset_terminal.setObjectName(u"actionReset_terminal") 50 | self.actionClear_Cache = QAction(main_window) 51 | self.actionClear_Cache.setObjectName(u"actionClear_Cache") 52 | self.actionExit = QAction(main_window) 53 | self.actionExit.setObjectName(u"actionExit") 54 | self.actionNew = QAction(main_window) 55 | self.actionNew.setObjectName(u"actionNew") 56 | self.actionBasic_View = QAction(main_window) 57 | self.actionBasic_View.setObjectName(u"actionBasic_View") 58 | self.actionAdvanced_View = QAction(main_window) 59 | self.actionAdvanced_View.setObjectName(u"actionAdvanced_View") 60 | self.actionPreferences = QAction(main_window) 61 | self.actionPreferences.setObjectName(u"actionPreferences") 62 | self.actionMinimize = QAction(main_window) 63 | self.actionMinimize.setObjectName(u"actionMinimize") 64 | self.actionFull_Screen = QAction(main_window) 65 | self.actionFull_Screen.setObjectName(u"actionFull_Screen") 66 | self.actionHelp_2 = QAction(main_window) 67 | self.actionHelp_2.setObjectName(u"actionHelp_2") 68 | self.actionSave_As = QAction(main_window) 69 | self.actionSave_As.setObjectName(u"actionSave_As") 70 | self.actionSave = QAction(main_window) 71 | self.actionSave.setObjectName(u"actionSave") 72 | self.centralwidget = QWidget(main_window) 73 | self.centralwidget.setObjectName(u"centralwidget") 74 | self.gridLayout = QGridLayout(self.centralwidget) 75 | self.gridLayout.setObjectName(u"gridLayout") 76 | self.gridLayout_2 = QGridLayout() 77 | self.gridLayout_2.setObjectName(u"gridLayout_2") 78 | self.horizontalLayout_4 = QHBoxLayout() 79 | self.horizontalLayout_4.setSpacing(1) 80 | self.horizontalLayout_4.setObjectName(u"horizontalLayout_4") 81 | self.horizontalLayout_4.setSizeConstraint(QLayout.SizeConstraint.SetDefaultConstraint) 82 | self.send_button = QPushButton(self.centralwidget) 83 | self.send_button.setObjectName(u"send_button") 84 | self.send_button.setMaximumSize(QSize(250, 16777215)) 85 | 86 | self.horizontalLayout_4.addWidget(self.send_button) 87 | 88 | 89 | self.gridLayout_2.addLayout(self.horizontalLayout_4, 2, 1, 1, 1) 90 | 91 | self.verticalLayout_config = QVBoxLayout() 92 | self.verticalLayout_config.setSpacing(6) 93 | self.verticalLayout_config.setObjectName(u"verticalLayout_config") 94 | self.verticalLayout_config.setSizeConstraint(QLayout.SizeConstraint.SetDefaultConstraint) 95 | self.formLayout_config = QFormLayout() 96 | self.formLayout_config.setObjectName(u"formLayout_config") 97 | self.formLayout_config.setLabelAlignment(Qt.AlignmentFlag.AlignLeading|Qt.AlignmentFlag.AlignLeft|Qt.AlignmentFlag.AlignVCenter) 98 | self.formLayout_config.setFormAlignment(Qt.AlignmentFlag.AlignJustify|Qt.AlignmentFlag.AlignVCenter) 99 | self.formLayout_config.setHorizontalSpacing(4) 100 | self.formLayout_config.setVerticalSpacing(2) 101 | self.label_46 = QLabel(self.centralwidget) 102 | self.label_46.setObjectName(u"label_46") 103 | 104 | self.formLayout_config.setWidget(0, QFormLayout.ItemRole.LabelRole, self.label_46) 105 | 106 | self.refresh_button = QPushButton(self.centralwidget) 107 | self.refresh_button.setObjectName(u"refresh_button") 108 | self.refresh_button.setMaximumSize(QSize(120, 16777215)) 109 | 110 | self.formLayout_config.setWidget(0, QFormLayout.ItemRole.FieldRole, self.refresh_button) 111 | 112 | self.label_22 = QLabel(self.centralwidget) 113 | self.label_22.setObjectName(u"label_22") 114 | 115 | self.formLayout_config.setWidget(1, QFormLayout.ItemRole.LabelRole, self.label_22) 116 | 117 | self.port_comboBox = QComboBox(self.centralwidget) 118 | self.port_comboBox.setObjectName(u"port_comboBox") 119 | self.port_comboBox.setMaximumSize(QSize(120, 16777215)) 120 | 121 | self.formLayout_config.setWidget(1, QFormLayout.ItemRole.FieldRole, self.port_comboBox) 122 | 123 | self.label_25 = QLabel(self.centralwidget) 124 | self.label_25.setObjectName(u"label_25") 125 | 126 | self.formLayout_config.setWidget(2, QFormLayout.ItemRole.LabelRole, self.label_25) 127 | 128 | self.baudrate_comboBox = QComboBox(self.centralwidget) 129 | self.baudrate_comboBox.addItem("") 130 | self.baudrate_comboBox.addItem("") 131 | self.baudrate_comboBox.addItem("") 132 | self.baudrate_comboBox.addItem("") 133 | self.baudrate_comboBox.addItem("") 134 | self.baudrate_comboBox.addItem("") 135 | self.baudrate_comboBox.addItem("") 136 | self.baudrate_comboBox.addItem("") 137 | self.baudrate_comboBox.addItem("") 138 | self.baudrate_comboBox.addItem("") 139 | self.baudrate_comboBox.setObjectName(u"baudrate_comboBox") 140 | self.baudrate_comboBox.setMaximumSize(QSize(120, 16777215)) 141 | 142 | self.formLayout_config.setWidget(2, QFormLayout.ItemRole.FieldRole, self.baudrate_comboBox) 143 | 144 | self.label_26 = QLabel(self.centralwidget) 145 | self.label_26.setObjectName(u"label_26") 146 | 147 | self.formLayout_config.setWidget(3, QFormLayout.ItemRole.LabelRole, self.label_26) 148 | 149 | self.len_comboBox = QComboBox(self.centralwidget) 150 | self.len_comboBox.addItem("") 151 | self.len_comboBox.addItem("") 152 | self.len_comboBox.addItem("") 153 | self.len_comboBox.addItem("") 154 | self.len_comboBox.setObjectName(u"len_comboBox") 155 | self.len_comboBox.setMaximumSize(QSize(120, 16777215)) 156 | 157 | self.formLayout_config.setWidget(3, QFormLayout.ItemRole.FieldRole, self.len_comboBox) 158 | 159 | self.label_27 = QLabel(self.centralwidget) 160 | self.label_27.setObjectName(u"label_27") 161 | 162 | self.formLayout_config.setWidget(4, QFormLayout.ItemRole.LabelRole, self.label_27) 163 | 164 | self.timeout_comboBox = QComboBox(self.centralwidget) 165 | self.timeout_comboBox.addItem("") 166 | self.timeout_comboBox.addItem("") 167 | self.timeout_comboBox.addItem("") 168 | self.timeout_comboBox.addItem("") 169 | self.timeout_comboBox.addItem("") 170 | self.timeout_comboBox.addItem("") 171 | self.timeout_comboBox.addItem("") 172 | self.timeout_comboBox.addItem("") 173 | self.timeout_comboBox.setObjectName(u"timeout_comboBox") 174 | self.timeout_comboBox.setMaximumSize(QSize(120, 16777215)) 175 | 176 | self.formLayout_config.setWidget(4, QFormLayout.ItemRole.FieldRole, self.timeout_comboBox) 177 | 178 | self.label_28 = QLabel(self.centralwidget) 179 | self.label_28.setObjectName(u"label_28") 180 | 181 | self.formLayout_config.setWidget(5, QFormLayout.ItemRole.LabelRole, self.label_28) 182 | 183 | self.parity_comboBox = QComboBox(self.centralwidget) 184 | self.parity_comboBox.addItem("") 185 | self.parity_comboBox.addItem("") 186 | self.parity_comboBox.addItem("") 187 | self.parity_comboBox.addItem("") 188 | self.parity_comboBox.addItem("") 189 | self.parity_comboBox.setObjectName(u"parity_comboBox") 190 | self.parity_comboBox.setMaximumSize(QSize(120, 16777215)) 191 | 192 | self.formLayout_config.setWidget(5, QFormLayout.ItemRole.FieldRole, self.parity_comboBox) 193 | 194 | self.label_29 = QLabel(self.centralwidget) 195 | self.label_29.setObjectName(u"label_29") 196 | 197 | self.formLayout_config.setWidget(6, QFormLayout.ItemRole.LabelRole, self.label_29) 198 | 199 | self.bit_comboBox = QComboBox(self.centralwidget) 200 | self.bit_comboBox.addItem("") 201 | self.bit_comboBox.addItem("") 202 | self.bit_comboBox.addItem("") 203 | self.bit_comboBox.setObjectName(u"bit_comboBox") 204 | self.bit_comboBox.setMaximumSize(QSize(120, 16777215)) 205 | 206 | self.formLayout_config.setWidget(6, QFormLayout.ItemRole.FieldRole, self.bit_comboBox) 207 | 208 | self.label_30 = QLabel(self.centralwidget) 209 | self.label_30.setObjectName(u"label_30") 210 | 211 | self.formLayout_config.setWidget(7, QFormLayout.ItemRole.LabelRole, self.label_30) 212 | 213 | self.flow_comboBox = QComboBox(self.centralwidget) 214 | self.flow_comboBox.addItem("") 215 | self.flow_comboBox.addItem("") 216 | self.flow_comboBox.addItem("") 217 | self.flow_comboBox.addItem("") 218 | self.flow_comboBox.setObjectName(u"flow_comboBox") 219 | self.flow_comboBox.setMaximumSize(QSize(120, 16777215)) 220 | 221 | self.formLayout_config.setWidget(7, QFormLayout.ItemRole.FieldRole, self.flow_comboBox) 222 | 223 | 224 | self.verticalLayout_config.addLayout(self.formLayout_config) 225 | 226 | self.label_12 = QLabel(self.centralwidget) 227 | self.label_12.setObjectName(u"label_12") 228 | 229 | self.verticalLayout_config.addWidget(self.label_12) 230 | 231 | self.options_textEdit = QTextEdit(self.centralwidget) 232 | self.options_textEdit.setObjectName(u"options_textEdit") 233 | self.options_textEdit.setMaximumSize(QSize(205, 16777215)) 234 | self.options_textEdit.setFrameShape(QFrame.Shape.NoFrame) 235 | 236 | self.verticalLayout_config.addWidget(self.options_textEdit) 237 | 238 | self.formLayout_6 = QFormLayout() 239 | self.formLayout_6.setObjectName(u"formLayout_6") 240 | self.label_9 = QLabel(self.centralwidget) 241 | self.label_9.setObjectName(u"label_9") 242 | font = QFont() 243 | font.setFamilies([u"Arial"]) 244 | font.setPointSize(9) 245 | font.setBold(False) 246 | self.label_9.setFont(font) 247 | 248 | self.formLayout_6.setWidget(0, QFormLayout.ItemRole.LabelRole, self.label_9) 249 | 250 | self.status_label = QLabel(self.centralwidget) 251 | self.status_label.setObjectName(u"status_label") 252 | self.status_label.setFont(font) 253 | self.status_label.setStyleSheet(u"") 254 | 255 | self.formLayout_6.setWidget(0, QFormLayout.ItemRole.FieldRole, self.status_label) 256 | 257 | 258 | self.verticalLayout_config.addLayout(self.formLayout_6) 259 | 260 | self.horizontalLayout_5 = QHBoxLayout() 261 | self.horizontalLayout_5.setSpacing(4) 262 | self.horizontalLayout_5.setObjectName(u"horizontalLayout_5") 263 | self.start_button = QPushButton(self.centralwidget) 264 | self.start_button.setObjectName(u"start_button") 265 | self.start_button.setMaximumSize(QSize(250, 16777215)) 266 | font1 = QFont() 267 | font1.setPointSize(9) 268 | font1.setBold(True) 269 | self.start_button.setFont(font1) 270 | self.start_button.setAutoFillBackground(False) 271 | self.start_button.setStyleSheet(u"") 272 | 273 | self.horizontalLayout_5.addWidget(self.start_button) 274 | 275 | 276 | self.verticalLayout_config.addLayout(self.horizontalLayout_5) 277 | 278 | self.verticalLayout_config.setStretch(0, 2) 279 | 280 | self.gridLayout_2.addLayout(self.verticalLayout_config, 0, 1, 1, 1) 281 | 282 | self.data_textEdit = QTextEdit(self.centralwidget) 283 | self.data_textEdit.setObjectName(u"data_textEdit") 284 | self.data_textEdit.setAutoFillBackground(False) 285 | self.data_textEdit.setFrameShape(QFrame.Shape.Box) 286 | self.data_textEdit.setFrameShadow(QFrame.Shadow.Sunken) 287 | self.data_textEdit.setAutoFormatting(QTextEdit.AutoFormattingFlag.AutoNone) 288 | self.data_textEdit.setReadOnly(True) 289 | 290 | self.gridLayout_2.addWidget(self.data_textEdit, 0, 0, 1, 1) 291 | 292 | self.send_data_text = QTextEdit(self.centralwidget) 293 | self.send_data_text.setObjectName(u"send_data_text") 294 | sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Minimum) 295 | sizePolicy1.setHorizontalStretch(5) 296 | sizePolicy1.setVerticalStretch(5) 297 | sizePolicy1.setHeightForWidth(self.send_data_text.sizePolicy().hasHeightForWidth()) 298 | self.send_data_text.setSizePolicy(sizePolicy1) 299 | self.send_data_text.setMaximumSize(QSize(5000, 28)) 300 | self.send_data_text.setInputMethodHints(Qt.InputMethodHint.ImhNone) 301 | self.send_data_text.setFrameShape(QFrame.Shape.Box) 302 | self.send_data_text.setFrameShadow(QFrame.Shadow.Sunken) 303 | self.send_data_text.setAcceptRichText(False) 304 | 305 | self.gridLayout_2.addWidget(self.send_data_text, 2, 0, 1, 1) 306 | 307 | 308 | self.gridLayout.addLayout(self.gridLayout_2, 0, 0, 1, 1) 309 | 310 | main_window.setCentralWidget(self.centralwidget) 311 | self.menuBar = QMenuBar(main_window) 312 | self.menuBar.setObjectName(u"menuBar") 313 | self.menuBar.setGeometry(QRect(0, 0, 1127, 33)) 314 | self.menuFile = QMenu(self.menuBar) 315 | self.menuFile.setObjectName(u"menuFile") 316 | self.menuEdit = QMenu(self.menuBar) 317 | self.menuEdit.setObjectName(u"menuEdit") 318 | self.menuSetup = QMenu(self.menuBar) 319 | self.menuSetup.setObjectName(u"menuSetup") 320 | self.menuControl = QMenu(self.menuBar) 321 | self.menuControl.setObjectName(u"menuControl") 322 | self.menuHelp = QMenu(self.menuBar) 323 | self.menuHelp.setObjectName(u"menuHelp") 324 | self.menuWindow = QMenu(self.menuBar) 325 | self.menuWindow.setObjectName(u"menuWindow") 326 | main_window.setMenuBar(self.menuBar) 327 | 328 | self.menuBar.addAction(self.menuFile.menuAction()) 329 | self.menuBar.addAction(self.menuEdit.menuAction()) 330 | self.menuBar.addAction(self.menuSetup.menuAction()) 331 | self.menuBar.addAction(self.menuControl.menuAction()) 332 | self.menuBar.addAction(self.menuWindow.menuAction()) 333 | self.menuBar.addAction(self.menuHelp.menuAction()) 334 | self.menuFile.addSeparator() 335 | self.menuFile.addAction(self.actionNew) 336 | self.menuFile.addAction(self.actionSave) 337 | self.menuFile.addAction(self.actionSave_As) 338 | self.menuFile.addSeparator() 339 | self.menuFile.addAction(self.actionExit) 340 | self.menuSetup.addAction(self.actionPreferences) 341 | self.menuControl.addAction(self.actionReset_terminal) 342 | self.menuControl.addAction(self.actionClear_Cache) 343 | self.menuHelp.addAction(self.actionHelp_2) 344 | self.menuHelp.addSeparator() 345 | self.menuHelp.addAction(self.actionAbout) 346 | self.menuHelp.addAction(self.actionCheck_for_updates) 347 | self.menuWindow.addAction(self.actionBasic_View) 348 | self.menuWindow.addAction(self.actionAdvanced_View) 349 | self.menuWindow.addSeparator() 350 | 351 | self.retranslateUi(main_window) 352 | 353 | QMetaObject.connectSlotsByName(main_window) 354 | # setupUi 355 | 356 | def retranslateUi(self, main_window): 357 | main_window.setWindowTitle(QCoreApplication.translate("main_window", u"AFCOM Client (A free COM port data transfer client)", None)) 358 | #if QT_CONFIG(statustip) 359 | main_window.setStatusTip(QCoreApplication.translate("main_window", u"Mehmet Cagri Aksoy", None)) 360 | #endif // QT_CONFIG(statustip) 361 | #if QT_CONFIG(whatsthis) 362 | main_window.setWhatsThis(QCoreApplication.translate("main_window", u"Serial Communication Program Mehmet Cagri Aksoy", None)) 363 | #endif // QT_CONFIG(whatsthis) 364 | self.actionAna_Ekran.setText(QCoreApplication.translate("main_window", u"Ana Ekran", None)) 365 | self.actionHelp.setText(QCoreApplication.translate("main_window", u"Help", None)) 366 | self.actionAbout.setText(QCoreApplication.translate("main_window", u"About", None)) 367 | self.actionCheck_for_updates.setText(QCoreApplication.translate("main_window", u"Check for Updates", None)) 368 | self.actionReset_terminal.setText(QCoreApplication.translate("main_window", u"Reset terminal", None)) 369 | self.actionClear_Cache.setText(QCoreApplication.translate("main_window", u"Clear Cache", None)) 370 | self.actionExit.setText(QCoreApplication.translate("main_window", u"Exit", None)) 371 | self.actionNew.setText(QCoreApplication.translate("main_window", u"New..", None)) 372 | self.actionBasic_View.setText(QCoreApplication.translate("main_window", u"Basic View", None)) 373 | self.actionAdvanced_View.setText(QCoreApplication.translate("main_window", u"Advanced View", None)) 374 | self.actionPreferences.setText(QCoreApplication.translate("main_window", u"Preferences..", None)) 375 | self.actionMinimize.setText(QCoreApplication.translate("main_window", u"Minimize", None)) 376 | self.actionFull_Screen.setText(QCoreApplication.translate("main_window", u"Full Screen", None)) 377 | self.actionHelp_2.setText(QCoreApplication.translate("main_window", u"Help", None)) 378 | self.actionSave_As.setText(QCoreApplication.translate("main_window", u"Save As..", None)) 379 | self.actionSave.setText(QCoreApplication.translate("main_window", u"Save", None)) 380 | self.send_button.setText(QCoreApplication.translate("main_window", u"Push Data", None)) 381 | self.label_46.setText(QCoreApplication.translate("main_window", u"Refresh Port(s):", None)) 382 | self.refresh_button.setText(QCoreApplication.translate("main_window", u"\u21bb", None)) 383 | self.label_22.setText(QCoreApplication.translate("main_window", u"Selected Port:", None)) 384 | self.label_25.setText(QCoreApplication.translate("main_window", u"Baud Rate:", None)) 385 | self.baudrate_comboBox.setItemText(0, QCoreApplication.translate("main_window", u"9600", None)) 386 | self.baudrate_comboBox.setItemText(1, QCoreApplication.translate("main_window", u"57600", None)) 387 | self.baudrate_comboBox.setItemText(2, QCoreApplication.translate("main_window", u"115200", None)) 388 | self.baudrate_comboBox.setItemText(3, QCoreApplication.translate("main_window", u"110", None)) 389 | self.baudrate_comboBox.setItemText(4, QCoreApplication.translate("main_window", u"300", None)) 390 | self.baudrate_comboBox.setItemText(5, QCoreApplication.translate("main_window", u"1200", None)) 391 | self.baudrate_comboBox.setItemText(6, QCoreApplication.translate("main_window", u"2400", None)) 392 | self.baudrate_comboBox.setItemText(7, QCoreApplication.translate("main_window", u"4800", None)) 393 | self.baudrate_comboBox.setItemText(8, QCoreApplication.translate("main_window", u"19200", None)) 394 | self.baudrate_comboBox.setItemText(9, QCoreApplication.translate("main_window", u"38400", None)) 395 | 396 | self.label_26.setText(QCoreApplication.translate("main_window", u"Length (B):", None)) 397 | self.len_comboBox.setItemText(0, QCoreApplication.translate("main_window", u"8", None)) 398 | self.len_comboBox.setItemText(1, QCoreApplication.translate("main_window", u"7", None)) 399 | self.len_comboBox.setItemText(2, QCoreApplication.translate("main_window", u"6", None)) 400 | self.len_comboBox.setItemText(3, QCoreApplication.translate("main_window", u"5", None)) 401 | 402 | self.label_27.setText(QCoreApplication.translate("main_window", u"Timeout:", None)) 403 | self.timeout_comboBox.setItemText(0, QCoreApplication.translate("main_window", u"2", None)) 404 | self.timeout_comboBox.setItemText(1, QCoreApplication.translate("main_window", u"3", None)) 405 | self.timeout_comboBox.setItemText(2, QCoreApplication.translate("main_window", u"4", None)) 406 | self.timeout_comboBox.setItemText(3, QCoreApplication.translate("main_window", u"5", None)) 407 | self.timeout_comboBox.setItemText(4, QCoreApplication.translate("main_window", u"10", None)) 408 | self.timeout_comboBox.setItemText(5, QCoreApplication.translate("main_window", u"30", None)) 409 | self.timeout_comboBox.setItemText(6, QCoreApplication.translate("main_window", u"50", None)) 410 | self.timeout_comboBox.setItemText(7, QCoreApplication.translate("main_window", u"100", None)) 411 | 412 | self.label_28.setText(QCoreApplication.translate("main_window", u"Parity:", None)) 413 | self.parity_comboBox.setItemText(0, QCoreApplication.translate("main_window", u"None", None)) 414 | self.parity_comboBox.setItemText(1, QCoreApplication.translate("main_window", u"Even", None)) 415 | self.parity_comboBox.setItemText(2, QCoreApplication.translate("main_window", u"Odd", None)) 416 | self.parity_comboBox.setItemText(3, QCoreApplication.translate("main_window", u"Mark", None)) 417 | self.parity_comboBox.setItemText(4, QCoreApplication.translate("main_window", u"Space", None)) 418 | 419 | self.label_29.setText(QCoreApplication.translate("main_window", u"StopBits:", None)) 420 | self.bit_comboBox.setItemText(0, QCoreApplication.translate("main_window", u"1", None)) 421 | self.bit_comboBox.setItemText(1, QCoreApplication.translate("main_window", u"1.5", None)) 422 | self.bit_comboBox.setItemText(2, QCoreApplication.translate("main_window", u"2", None)) 423 | 424 | self.label_30.setText(QCoreApplication.translate("main_window", u"Flow Control:", None)) 425 | self.flow_comboBox.setItemText(0, QCoreApplication.translate("main_window", u"None", None)) 426 | self.flow_comboBox.setItemText(1, QCoreApplication.translate("main_window", u"Xon/Xoff", None)) 427 | self.flow_comboBox.setItemText(2, QCoreApplication.translate("main_window", u"RTS/CTS", None)) 428 | self.flow_comboBox.setItemText(3, QCoreApplication.translate("main_window", u"DSR/DTR", None)) 429 | 430 | self.label_12.setText(QCoreApplication.translate("main_window", u"Connection Options:", None)) 431 | self.label_9.setText(QCoreApplication.translate("main_window", u"Status :", None)) 432 | self.status_label.setText(QCoreApplication.translate("main_window", u"Not Connected", None)) 433 | self.start_button.setText(QCoreApplication.translate("main_window", u"CONNECT", None)) 434 | self.send_data_text.setPlaceholderText(QCoreApplication.translate("main_window", u"Please enter the data want to sent...", None)) 435 | self.menuFile.setTitle(QCoreApplication.translate("main_window", u"File", None)) 436 | self.menuEdit.setTitle(QCoreApplication.translate("main_window", u"Edit", None)) 437 | self.menuSetup.setTitle(QCoreApplication.translate("main_window", u"Settings", None)) 438 | self.menuControl.setTitle(QCoreApplication.translate("main_window", u"Control", None)) 439 | self.menuHelp.setTitle(QCoreApplication.translate("main_window", u"Help", None)) 440 | self.menuWindow.setTitle(QCoreApplication.translate("main_window", u"Window", None)) 441 | # retranslateUi 442 | 443 | -------------------------------------------------------------------------------- /ui/main_window.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | main_window 4 | 5 | 6 | 7 | 0 8 | 0 9 | 1127 10 | 633 11 | 12 | 13 | 14 | 15 | 0 16 | 0 17 | 18 | 19 | 20 | 21 | 0 22 | 0 23 | 24 | 25 | 26 | 27 | 9290 28 | 4095 29 | 30 | 31 | 32 | ArrowCursor 33 | 34 | 35 | AFCOM Client (A free COM port data transfer client) 36 | 37 | 38 | 39 | 40 | 41 | 1.000000000000000 42 | 43 | 44 | Mehmet Cagri Aksoy 45 | 46 | 47 | Serial Communication Program Mehmet Cagri Aksoy 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 1 57 | 58 | 59 | QLayout::SizeConstraint::SetDefaultConstraint 60 | 61 | 62 | 63 | 64 | true 65 | 66 | 67 | 68 | 10 69 | 10 70 | 71 | 72 | 73 | 74 | 20 75 | 20 76 | 77 | 78 | 79 | 80 | 81 | 82 | true 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 250 91 | 16777215 92 | 93 | 94 | 95 | Push Data 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 6 108 | 109 | 110 | QLayout::SizeConstraint::SetDefaultConstraint 111 | 112 | 113 | 114 | 115 | Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignVCenter 116 | 117 | 118 | Qt::AlignmentFlag::AlignJustify|Qt::AlignmentFlag::AlignVCenter 119 | 120 | 121 | 4 122 | 123 | 124 | 2 125 | 126 | 127 | 128 | 129 | Refresh Port(s): 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 120 138 | 16777215 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | Selected Port: 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 120 161 | 16777215 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | Baud Rate: 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 120 178 | 16777215 179 | 180 | 181 | 182 | 183 | 9600 184 | 185 | 186 | 187 | 188 | 57600 189 | 190 | 191 | 192 | 193 | 115200 194 | 195 | 196 | 197 | 198 | 110 199 | 200 | 201 | 202 | 203 | 300 204 | 205 | 206 | 207 | 208 | 1200 209 | 210 | 211 | 212 | 213 | 2400 214 | 215 | 216 | 217 | 218 | 4800 219 | 220 | 221 | 222 | 223 | 19200 224 | 225 | 226 | 227 | 228 | 38400 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | Length (B): 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 120 245 | 16777215 246 | 247 | 248 | 249 | 250 | 8 251 | 252 | 253 | 254 | 255 | 7 256 | 257 | 258 | 259 | 260 | 6 261 | 262 | 263 | 264 | 265 | 5 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | Timeout: 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 120 282 | 16777215 283 | 284 | 285 | 286 | 287 | 2 288 | 289 | 290 | 291 | 292 | 3 293 | 294 | 295 | 296 | 297 | 4 298 | 299 | 300 | 301 | 302 | 5 303 | 304 | 305 | 306 | 307 | 10 308 | 309 | 310 | 311 | 312 | 30 313 | 314 | 315 | 316 | 317 | 50 318 | 319 | 320 | 321 | 322 | 100 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | Parity: 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 120 339 | 16777215 340 | 341 | 342 | 343 | 344 | None 345 | 346 | 347 | 348 | 349 | Even 350 | 351 | 352 | 353 | 354 | Odd 355 | 356 | 357 | 358 | 359 | Mark 360 | 361 | 362 | 363 | 364 | Space 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | StopBits: 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 120 381 | 16777215 382 | 383 | 384 | 385 | 386 | 1 387 | 388 | 389 | 390 | 391 | 1.5 392 | 393 | 394 | 395 | 396 | 2 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | Flow Control: 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 120 413 | 16777215 414 | 415 | 416 | 417 | 418 | None 419 | 420 | 421 | 422 | 423 | Xon/Xoff 424 | 425 | 426 | 427 | 428 | RTS/CTS 429 | 430 | 431 | 432 | 433 | DSR/DTR 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | Connection Options: 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 205 452 | 16777215 453 | 454 | 455 | 456 | QFrame::Shape::NoFrame 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | Arial 467 | 9 468 | false 469 | 470 | 471 | 472 | Status : 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | Arial 481 | 9 482 | false 483 | 484 | 485 | 486 | 487 | 488 | 489 | Not Connected 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 4 499 | 500 | 501 | 502 | 503 | 504 | 250 505 | 16777215 506 | 507 | 508 | 509 | 510 | 9 511 | true 512 | 513 | 514 | 515 | false 516 | 517 | 518 | 519 | 520 | 521 | CONNECT 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | false 533 | 534 | 535 | QFrame::Shape::Box 536 | 537 | 538 | QFrame::Shadow::Sunken 539 | 540 | 541 | QTextEdit::AutoFormattingFlag::AutoNone 542 | 543 | 544 | true 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 5 553 | 5 554 | 555 | 556 | 557 | 558 | 5000 559 | 28 560 | 561 | 562 | 563 | Qt::InputMethodHint::ImhNone 564 | 565 | 566 | QFrame::Shape::Box 567 | 568 | 569 | QFrame::Shadow::Sunken 570 | 571 | 572 | false 573 | 574 | 575 | Please enter the data want to sent... 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 0 587 | 0 588 | 1127 589 | 33 590 | 591 | 592 | 593 | 594 | File 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | Edit 606 | 607 | 608 | 609 | 610 | Settings 611 | 612 | 613 | 614 | 615 | 616 | Control 617 | 618 | 619 | 620 | 621 | 622 | 623 | Help 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | Window 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | Ana Ekran 648 | 649 | 650 | 651 | 652 | Help 653 | 654 | 655 | 656 | 657 | About 658 | 659 | 660 | 661 | 662 | Check for Updates 663 | 664 | 665 | 666 | 667 | Reset terminal 668 | 669 | 670 | 671 | 672 | Clear Cache 673 | 674 | 675 | 676 | 677 | Exit 678 | 679 | 680 | 681 | 682 | New.. 683 | 684 | 685 | 686 | 687 | Basic View 688 | 689 | 690 | 691 | 692 | Advanced View 693 | 694 | 695 | 696 | 697 | Preferences.. 698 | 699 | 700 | 701 | 702 | Minimize 703 | 704 | 705 | 706 | 707 | Full Screen 708 | 709 | 710 | 711 | 712 | Help 713 | 714 | 715 | 716 | 717 | Save As.. 718 | 719 | 720 | 721 | 722 | Save 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | -------------------------------------------------------------------------------- /ui/resource/play.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ui/resources.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | icon.ico 4 | 5 | 6 | -------------------------------------------------------------------------------- /ui/settings.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | ################################################################################ 4 | ## Form generated from reading UI file 'settings.ui' 5 | ## 6 | ## Created by: Qt User Interface Compiler version 6.9.0 7 | ## 8 | ## WARNING! All changes made in this file will be lost when recompiling UI file! 9 | ################################################################################ 10 | 11 | from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, 12 | QMetaObject, QObject, QPoint, QRect, 13 | QSize, QTime, QUrl, Qt) 14 | from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, 15 | QFont, QFontDatabase, QGradient, QIcon, 16 | QImage, QKeySequence, QLinearGradient, QPainter, 17 | QPalette, QPixmap, QRadialGradient, QTransform) 18 | from PySide6.QtWidgets import (QAbstractButton, QApplication, QComboBox, QDialog, 19 | QDialogButtonBox, QFontComboBox, QFormLayout, QGridLayout, 20 | QGroupBox, QLabel, QPushButton, QSizePolicy, 21 | QSpacerItem, QWidget) 22 | 23 | class Ui_Dialog(object): 24 | def setupUi(self, Dialog): 25 | if not Dialog.objectName(): 26 | Dialog.setObjectName(u"Dialog") 27 | Dialog.resize(251, 386) 28 | self.gridLayout = QGridLayout(Dialog) 29 | self.gridLayout.setObjectName(u"gridLayout") 30 | self.buttonBox = QDialogButtonBox(Dialog) 31 | self.buttonBox.setObjectName(u"buttonBox") 32 | self.buttonBox.setOrientation(Qt.Horizontal) 33 | self.buttonBox.setStandardButtons(QDialogButtonBox.Close|QDialogButtonBox.SaveAll) 34 | 35 | self.gridLayout.addWidget(self.buttonBox, 1, 0, 1, 1) 36 | 37 | self.groupBox = QGroupBox(Dialog) 38 | self.groupBox.setObjectName(u"groupBox") 39 | self.layoutWidget = QWidget(self.groupBox) 40 | self.layoutWidget.setObjectName(u"layoutWidget") 41 | self.layoutWidget.setGeometry(QRect(10, 20, 221, 311)) 42 | self.formLayout_config = QFormLayout(self.layoutWidget) 43 | self.formLayout_config.setObjectName(u"formLayout_config") 44 | self.formLayout_config.setLabelAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignVCenter) 45 | self.formLayout_config.setFormAlignment(Qt.AlignJustify|Qt.AlignVCenter) 46 | self.formLayout_config.setHorizontalSpacing(4) 47 | self.formLayout_config.setVerticalSpacing(2) 48 | self.formLayout_config.setContentsMargins(0, 0, 0, 0) 49 | self.label_46 = QLabel(self.layoutWidget) 50 | self.label_46.setObjectName(u"label_46") 51 | 52 | self.formLayout_config.setWidget(4, QFormLayout.ItemRole.LabelRole, self.label_46) 53 | 54 | self.refresh_button = QPushButton(self.layoutWidget) 55 | self.refresh_button.setObjectName(u"refresh_button") 56 | self.refresh_button.setMaximumSize(QSize(120, 16777215)) 57 | 58 | self.formLayout_config.setWidget(4, QFormLayout.ItemRole.FieldRole, self.refresh_button) 59 | 60 | self.label_22 = QLabel(self.layoutWidget) 61 | self.label_22.setObjectName(u"label_22") 62 | 63 | self.formLayout_config.setWidget(5, QFormLayout.ItemRole.LabelRole, self.label_22) 64 | 65 | self.port_comboBox = QComboBox(self.layoutWidget) 66 | self.port_comboBox.setObjectName(u"port_comboBox") 67 | self.port_comboBox.setMaximumSize(QSize(120, 16777215)) 68 | 69 | self.formLayout_config.setWidget(5, QFormLayout.ItemRole.FieldRole, self.port_comboBox) 70 | 71 | self.label_25 = QLabel(self.layoutWidget) 72 | self.label_25.setObjectName(u"label_25") 73 | 74 | self.formLayout_config.setWidget(6, QFormLayout.ItemRole.LabelRole, self.label_25) 75 | 76 | self.baudrate_comboBox = QComboBox(self.layoutWidget) 77 | self.baudrate_comboBox.addItem("") 78 | self.baudrate_comboBox.addItem("") 79 | self.baudrate_comboBox.addItem("") 80 | self.baudrate_comboBox.addItem("") 81 | self.baudrate_comboBox.addItem("") 82 | self.baudrate_comboBox.addItem("") 83 | self.baudrate_comboBox.addItem("") 84 | self.baudrate_comboBox.addItem("") 85 | self.baudrate_comboBox.addItem("") 86 | self.baudrate_comboBox.addItem("") 87 | self.baudrate_comboBox.setObjectName(u"baudrate_comboBox") 88 | self.baudrate_comboBox.setMaximumSize(QSize(120, 16777215)) 89 | 90 | self.formLayout_config.setWidget(6, QFormLayout.ItemRole.FieldRole, self.baudrate_comboBox) 91 | 92 | self.label_26 = QLabel(self.layoutWidget) 93 | self.label_26.setObjectName(u"label_26") 94 | 95 | self.formLayout_config.setWidget(7, QFormLayout.ItemRole.LabelRole, self.label_26) 96 | 97 | self.len_comboBox = QComboBox(self.layoutWidget) 98 | self.len_comboBox.addItem("") 99 | self.len_comboBox.addItem("") 100 | self.len_comboBox.addItem("") 101 | self.len_comboBox.addItem("") 102 | self.len_comboBox.setObjectName(u"len_comboBox") 103 | self.len_comboBox.setMaximumSize(QSize(120, 16777215)) 104 | 105 | self.formLayout_config.setWidget(7, QFormLayout.ItemRole.FieldRole, self.len_comboBox) 106 | 107 | self.label_27 = QLabel(self.layoutWidget) 108 | self.label_27.setObjectName(u"label_27") 109 | 110 | self.formLayout_config.setWidget(8, QFormLayout.ItemRole.LabelRole, self.label_27) 111 | 112 | self.timeout_comboBox = QComboBox(self.layoutWidget) 113 | self.timeout_comboBox.addItem("") 114 | self.timeout_comboBox.addItem("") 115 | self.timeout_comboBox.addItem("") 116 | self.timeout_comboBox.addItem("") 117 | self.timeout_comboBox.addItem("") 118 | self.timeout_comboBox.addItem("") 119 | self.timeout_comboBox.addItem("") 120 | self.timeout_comboBox.addItem("") 121 | self.timeout_comboBox.setObjectName(u"timeout_comboBox") 122 | self.timeout_comboBox.setMaximumSize(QSize(120, 16777215)) 123 | 124 | self.formLayout_config.setWidget(8, QFormLayout.ItemRole.FieldRole, self.timeout_comboBox) 125 | 126 | self.label_28 = QLabel(self.layoutWidget) 127 | self.label_28.setObjectName(u"label_28") 128 | 129 | self.formLayout_config.setWidget(9, QFormLayout.ItemRole.LabelRole, self.label_28) 130 | 131 | self.parity_comboBox = QComboBox(self.layoutWidget) 132 | self.parity_comboBox.addItem("") 133 | self.parity_comboBox.addItem("") 134 | self.parity_comboBox.addItem("") 135 | self.parity_comboBox.addItem("") 136 | self.parity_comboBox.addItem("") 137 | self.parity_comboBox.setObjectName(u"parity_comboBox") 138 | self.parity_comboBox.setMaximumSize(QSize(120, 16777215)) 139 | 140 | self.formLayout_config.setWidget(9, QFormLayout.ItemRole.FieldRole, self.parity_comboBox) 141 | 142 | self.label_29 = QLabel(self.layoutWidget) 143 | self.label_29.setObjectName(u"label_29") 144 | 145 | self.formLayout_config.setWidget(10, QFormLayout.ItemRole.LabelRole, self.label_29) 146 | 147 | self.bit_comboBox = QComboBox(self.layoutWidget) 148 | self.bit_comboBox.addItem("") 149 | self.bit_comboBox.addItem("") 150 | self.bit_comboBox.addItem("") 151 | self.bit_comboBox.setObjectName(u"bit_comboBox") 152 | self.bit_comboBox.setMaximumSize(QSize(120, 16777215)) 153 | 154 | self.formLayout_config.setWidget(10, QFormLayout.ItemRole.FieldRole, self.bit_comboBox) 155 | 156 | self.label_30 = QLabel(self.layoutWidget) 157 | self.label_30.setObjectName(u"label_30") 158 | 159 | self.formLayout_config.setWidget(11, QFormLayout.ItemRole.LabelRole, self.label_30) 160 | 161 | self.flow_comboBox = QComboBox(self.layoutWidget) 162 | self.flow_comboBox.addItem("") 163 | self.flow_comboBox.addItem("") 164 | self.flow_comboBox.addItem("") 165 | self.flow_comboBox.addItem("") 166 | self.flow_comboBox.setObjectName(u"flow_comboBox") 167 | self.flow_comboBox.setMaximumSize(QSize(120, 16777215)) 168 | 169 | self.formLayout_config.setWidget(11, QFormLayout.ItemRole.FieldRole, self.flow_comboBox) 170 | 171 | self.label = QLabel(self.layoutWidget) 172 | self.label.setObjectName(u"label") 173 | 174 | self.formLayout_config.setWidget(0, QFormLayout.ItemRole.LabelRole, self.label) 175 | 176 | self.comboBox_2 = QComboBox(self.layoutWidget) 177 | self.comboBox_2.addItem("") 178 | self.comboBox_2.addItem("") 179 | self.comboBox_2.setObjectName(u"comboBox_2") 180 | self.comboBox_2.setMaximumSize(QSize(120, 16777215)) 181 | 182 | self.formLayout_config.setWidget(0, QFormLayout.ItemRole.FieldRole, self.comboBox_2) 183 | 184 | self.fontComboBox = QFontComboBox(self.layoutWidget) 185 | self.fontComboBox.setObjectName(u"fontComboBox") 186 | self.fontComboBox.setMaximumSize(QSize(120, 16777215)) 187 | 188 | self.formLayout_config.setWidget(1, QFormLayout.ItemRole.FieldRole, self.fontComboBox) 189 | 190 | self.label_2 = QLabel(self.layoutWidget) 191 | self.label_2.setObjectName(u"label_2") 192 | 193 | self.formLayout_config.setWidget(1, QFormLayout.ItemRole.LabelRole, self.label_2) 194 | 195 | self.verticalSpacer = QSpacerItem(10, 20, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed) 196 | 197 | self.formLayout_config.setItem(3, QFormLayout.ItemRole.SpanningRole, self.verticalSpacer) 198 | 199 | self.comboBox = QComboBox(self.layoutWidget) 200 | self.comboBox.addItem("") 201 | self.comboBox.addItem("") 202 | self.comboBox.addItem("") 203 | self.comboBox.setObjectName(u"comboBox") 204 | self.comboBox.setMaximumSize(QSize(120, 16777215)) 205 | 206 | self.formLayout_config.setWidget(2, QFormLayout.ItemRole.FieldRole, self.comboBox) 207 | 208 | self.label_3 = QLabel(self.layoutWidget) 209 | self.label_3.setObjectName(u"label_3") 210 | 211 | self.formLayout_config.setWidget(2, QFormLayout.ItemRole.LabelRole, self.label_3) 212 | 213 | 214 | self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1) 215 | 216 | 217 | self.retranslateUi(Dialog) 218 | self.buttonBox.accepted.connect(Dialog.accept) 219 | self.buttonBox.rejected.connect(Dialog.reject) 220 | 221 | QMetaObject.connectSlotsByName(Dialog) 222 | # setupUi 223 | 224 | def retranslateUi(self, Dialog): 225 | Dialog.setWindowTitle(QCoreApplication.translate("Dialog", u"Dialog", None)) 226 | self.groupBox.setTitle(QCoreApplication.translate("Dialog", u"Settings", None)) 227 | self.label_46.setText(QCoreApplication.translate("Dialog", u"Refresh Port(s):", None)) 228 | self.refresh_button.setText(QCoreApplication.translate("Dialog", u"\u21bb", None)) 229 | self.label_22.setText(QCoreApplication.translate("Dialog", u"Selected Port:", None)) 230 | self.label_25.setText(QCoreApplication.translate("Dialog", u"Baud Rate:", None)) 231 | self.baudrate_comboBox.setItemText(0, QCoreApplication.translate("Dialog", u"9600", None)) 232 | self.baudrate_comboBox.setItemText(1, QCoreApplication.translate("Dialog", u"57600", None)) 233 | self.baudrate_comboBox.setItemText(2, QCoreApplication.translate("Dialog", u"115200", None)) 234 | self.baudrate_comboBox.setItemText(3, QCoreApplication.translate("Dialog", u"110", None)) 235 | self.baudrate_comboBox.setItemText(4, QCoreApplication.translate("Dialog", u"300", None)) 236 | self.baudrate_comboBox.setItemText(5, QCoreApplication.translate("Dialog", u"1200", None)) 237 | self.baudrate_comboBox.setItemText(6, QCoreApplication.translate("Dialog", u"2400", None)) 238 | self.baudrate_comboBox.setItemText(7, QCoreApplication.translate("Dialog", u"4800", None)) 239 | self.baudrate_comboBox.setItemText(8, QCoreApplication.translate("Dialog", u"19200", None)) 240 | self.baudrate_comboBox.setItemText(9, QCoreApplication.translate("Dialog", u"38400", None)) 241 | 242 | self.label_26.setText(QCoreApplication.translate("Dialog", u"Length (B):", None)) 243 | self.len_comboBox.setItemText(0, QCoreApplication.translate("Dialog", u"8", None)) 244 | self.len_comboBox.setItemText(1, QCoreApplication.translate("Dialog", u"7", None)) 245 | self.len_comboBox.setItemText(2, QCoreApplication.translate("Dialog", u"6", None)) 246 | self.len_comboBox.setItemText(3, QCoreApplication.translate("Dialog", u"5", None)) 247 | 248 | self.label_27.setText(QCoreApplication.translate("Dialog", u"Timeout:", None)) 249 | self.timeout_comboBox.setItemText(0, QCoreApplication.translate("Dialog", u"2", None)) 250 | self.timeout_comboBox.setItemText(1, QCoreApplication.translate("Dialog", u"3", None)) 251 | self.timeout_comboBox.setItemText(2, QCoreApplication.translate("Dialog", u"4", None)) 252 | self.timeout_comboBox.setItemText(3, QCoreApplication.translate("Dialog", u"5", None)) 253 | self.timeout_comboBox.setItemText(4, QCoreApplication.translate("Dialog", u"10", None)) 254 | self.timeout_comboBox.setItemText(5, QCoreApplication.translate("Dialog", u"30", None)) 255 | self.timeout_comboBox.setItemText(6, QCoreApplication.translate("Dialog", u"50", None)) 256 | self.timeout_comboBox.setItemText(7, QCoreApplication.translate("Dialog", u"100", None)) 257 | 258 | self.label_28.setText(QCoreApplication.translate("Dialog", u"Parity:", None)) 259 | self.parity_comboBox.setItemText(0, QCoreApplication.translate("Dialog", u"None", None)) 260 | self.parity_comboBox.setItemText(1, QCoreApplication.translate("Dialog", u"Even", None)) 261 | self.parity_comboBox.setItemText(2, QCoreApplication.translate("Dialog", u"Odd", None)) 262 | self.parity_comboBox.setItemText(3, QCoreApplication.translate("Dialog", u"Mark", None)) 263 | self.parity_comboBox.setItemText(4, QCoreApplication.translate("Dialog", u"Space", None)) 264 | 265 | self.label_29.setText(QCoreApplication.translate("Dialog", u"StopBits:", None)) 266 | self.bit_comboBox.setItemText(0, QCoreApplication.translate("Dialog", u"1", None)) 267 | self.bit_comboBox.setItemText(1, QCoreApplication.translate("Dialog", u"1.5", None)) 268 | self.bit_comboBox.setItemText(2, QCoreApplication.translate("Dialog", u"2", None)) 269 | 270 | self.label_30.setText(QCoreApplication.translate("Dialog", u"Flow Control:", None)) 271 | self.flow_comboBox.setItemText(0, QCoreApplication.translate("Dialog", u"None", None)) 272 | self.flow_comboBox.setItemText(1, QCoreApplication.translate("Dialog", u"Xon/Xoff", None)) 273 | self.flow_comboBox.setItemText(2, QCoreApplication.translate("Dialog", u"RTS/CTS", None)) 274 | self.flow_comboBox.setItemText(3, QCoreApplication.translate("Dialog", u"DSR/DTR", None)) 275 | 276 | self.label.setText(QCoreApplication.translate("Dialog", u"UI Language:", None)) 277 | self.comboBox_2.setItemText(0, QCoreApplication.translate("Dialog", u"English", None)) 278 | self.comboBox_2.setItemText(1, QCoreApplication.translate("Dialog", u"T\u00fcrk\u00e7e", None)) 279 | 280 | self.label_2.setText(QCoreApplication.translate("Dialog", u"Terminal Font:", None)) 281 | self.comboBox.setItemText(0, QCoreApplication.translate("Dialog", u"Defult (System)", None)) 282 | self.comboBox.setItemText(1, QCoreApplication.translate("Dialog", u"Dark", None)) 283 | self.comboBox.setItemText(2, QCoreApplication.translate("Dialog", u"Light", None)) 284 | 285 | self.label_3.setText(QCoreApplication.translate("Dialog", u"Theme:", None)) 286 | # retranslateUi 287 | 288 | -------------------------------------------------------------------------------- /ui/settings.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Dialog 4 | 5 | 6 | 7 | 0 8 | 0 9 | 251 10 | 386 11 | 12 | 13 | 14 | Dialog 15 | 16 | 17 | 18 | 19 | 20 | Qt::Horizontal 21 | 22 | 23 | QDialogButtonBox::Close|QDialogButtonBox::SaveAll 24 | 25 | 26 | 27 | 28 | 29 | 30 | Settings 31 | 32 | 33 | 34 | 35 | 10 36 | 20 37 | 221 38 | 311 39 | 40 | 41 | 42 | 43 | Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter 44 | 45 | 46 | Qt::AlignJustify|Qt::AlignVCenter 47 | 48 | 49 | 4 50 | 51 | 52 | 2 53 | 54 | 55 | 56 | 57 | Refresh Port(s): 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 120 66 | 16777215 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | Selected Port: 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 120 86 | 16777215 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | Baud Rate: 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 120 103 | 16777215 104 | 105 | 106 | 107 | 108 | 9600 109 | 110 | 111 | 112 | 113 | 57600 114 | 115 | 116 | 117 | 118 | 115200 119 | 120 | 121 | 122 | 123 | 110 124 | 125 | 126 | 127 | 128 | 300 129 | 130 | 131 | 132 | 133 | 1200 134 | 135 | 136 | 137 | 138 | 2400 139 | 140 | 141 | 142 | 143 | 4800 144 | 145 | 146 | 147 | 148 | 19200 149 | 150 | 151 | 152 | 153 | 38400 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | Length (B): 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 120 170 | 16777215 171 | 172 | 173 | 174 | 175 | 8 176 | 177 | 178 | 179 | 180 | 7 181 | 182 | 183 | 184 | 185 | 6 186 | 187 | 188 | 189 | 190 | 5 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | Timeout: 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 120 207 | 16777215 208 | 209 | 210 | 211 | 212 | 2 213 | 214 | 215 | 216 | 217 | 3 218 | 219 | 220 | 221 | 222 | 4 223 | 224 | 225 | 226 | 227 | 5 228 | 229 | 230 | 231 | 232 | 10 233 | 234 | 235 | 236 | 237 | 30 238 | 239 | 240 | 241 | 242 | 50 243 | 244 | 245 | 246 | 247 | 100 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | Parity: 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 120 264 | 16777215 265 | 266 | 267 | 268 | 269 | None 270 | 271 | 272 | 273 | 274 | Even 275 | 276 | 277 | 278 | 279 | Odd 280 | 281 | 282 | 283 | 284 | Mark 285 | 286 | 287 | 288 | 289 | Space 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | StopBits: 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 120 306 | 16777215 307 | 308 | 309 | 310 | 311 | 1 312 | 313 | 314 | 315 | 316 | 1.5 317 | 318 | 319 | 320 | 321 | 2 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | Flow Control: 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 120 338 | 16777215 339 | 340 | 341 | 342 | 343 | None 344 | 345 | 346 | 347 | 348 | Xon/Xoff 349 | 350 | 351 | 352 | 353 | RTS/CTS 354 | 355 | 356 | 357 | 358 | DSR/DTR 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | UI Language: 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 120 375 | 16777215 376 | 377 | 378 | 379 | 380 | English 381 | 382 | 383 | 384 | 385 | Türkçe 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 120 395 | 16777215 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | Terminal Font: 404 | 405 | 406 | 407 | 408 | 409 | 410 | Qt::Vertical 411 | 412 | 413 | QSizePolicy::Fixed 414 | 415 | 416 | 417 | 10 418 | 20 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 120 428 | 16777215 429 | 430 | 431 | 432 | 433 | Defult (System) 434 | 435 | 436 | 437 | 438 | Dark 439 | 440 | 441 | 442 | 443 | Light 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | Theme: 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | buttonBox 465 | accepted() 466 | Dialog 467 | accept() 468 | 469 | 470 | 248 471 | 254 472 | 473 | 474 | 157 475 | 274 476 | 477 | 478 | 479 | 480 | buttonBox 481 | rejected() 482 | Dialog 483 | reject() 484 | 485 | 486 | 316 487 | 260 488 | 489 | 490 | 286 491 | 274 492 | 493 | 494 | 495 | 496 | 497 | -------------------------------------------------------------------------------- /ui/ui_main_window.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | ################################################################################ 4 | ## Form generated from reading UI file 'main_window.ui' 5 | ## 6 | ## Created by: Qt User Interface Compiler version 6.7.2 7 | ## 8 | ## WARNING! All changes made in this file will be lost when recompiling UI file! 9 | ################################################################################ 10 | 11 | from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, 12 | QMetaObject, QObject, QPoint, QRect, 13 | QSize, QTime, QUrl, Qt) 14 | from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient, 15 | QCursor, QFont, QFontDatabase, QGradient, 16 | QIcon, QImage, QKeySequence, QLinearGradient, 17 | QPainter, QPalette, QPixmap, QRadialGradient, 18 | QTransform) 19 | from PySide6.QtWidgets import (QApplication, QComboBox, QFormLayout, QFrame, 20 | QGridLayout, QHBoxLayout, QLabel, QLayout, 21 | QMainWindow, QPushButton, QSizePolicy, QTabWidget, 22 | QTextEdit, QVBoxLayout, QWidget) 23 | 24 | class Ui_main_window(object): 25 | def setupUi(self, main_window): 26 | if not main_window.objectName(): 27 | main_window.setObjectName(u"main_window") 28 | main_window.resize(929, 579) 29 | sizePolicy = QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed) 30 | sizePolicy.setHorizontalStretch(0) 31 | sizePolicy.setVerticalStretch(0) 32 | sizePolicy.setHeightForWidth(main_window.sizePolicy().hasHeightForWidth()) 33 | main_window.setSizePolicy(sizePolicy) 34 | main_window.setMinimumSize(QSize(600, 579)) 35 | main_window.setMaximumSize(QSize(929, 579)) 36 | main_window.setCursor(QCursor(Qt.CursorShape.ArrowCursor)) 37 | icon = QIcon() 38 | icon.addFile(u"icon.ico", QSize(), QIcon.Mode.Normal, QIcon.State.Off) 39 | main_window.setWindowIcon(icon) 40 | main_window.setWindowOpacity(1.000000000000000) 41 | self.actionAna_Ekran = QAction(main_window) 42 | self.actionAna_Ekran.setObjectName(u"actionAna_Ekran") 43 | self.actionHelp = QAction(main_window) 44 | self.actionHelp.setObjectName(u"actionHelp") 45 | self.centralwidget = QWidget(main_window) 46 | self.centralwidget.setObjectName(u"centralwidget") 47 | self.tabWidget = QTabWidget(self.centralwidget) 48 | self.tabWidget.setObjectName(u"tabWidget") 49 | self.tabWidget.setGeometry(QRect(0, 0, 931, 581)) 50 | self.tabWidget.setTabPosition(QTabWidget.TabPosition.North) 51 | self.tab = QWidget() 52 | self.tab.setObjectName(u"tab") 53 | self.gridLayoutWidget_2 = QWidget(self.tab) 54 | self.gridLayoutWidget_2.setObjectName(u"gridLayoutWidget_2") 55 | self.gridLayoutWidget_2.setGeometry(QRect(0, 0, 721, 511)) 56 | self.gridLayout_2 = QGridLayout(self.gridLayoutWidget_2) 57 | self.gridLayout_2.setObjectName(u"gridLayout_2") 58 | self.gridLayout_2.setContentsMargins(0, 0, 0, 0) 59 | self.label_23 = QLabel(self.gridLayoutWidget_2) 60 | self.label_23.setObjectName(u"label_23") 61 | 62 | self.gridLayout_2.addWidget(self.label_23, 1, 0, 1, 1) 63 | 64 | self.data_textEdit = QTextEdit(self.gridLayoutWidget_2) 65 | self.data_textEdit.setObjectName(u"data_textEdit") 66 | self.data_textEdit.setAutoFillBackground(False) 67 | self.data_textEdit.setFrameShape(QFrame.Shape.Box) 68 | self.data_textEdit.setFrameShadow(QFrame.Shadow.Raised) 69 | self.data_textEdit.setAutoFormatting(QTextEdit.AutoFormattingFlag.AutoAll) 70 | self.data_textEdit.setReadOnly(True) 71 | 72 | self.gridLayout_2.addWidget(self.data_textEdit, 2, 0, 1, 1) 73 | 74 | self.verticalLayoutWidget_5 = QWidget(self.tab) 75 | self.verticalLayoutWidget_5.setObjectName(u"verticalLayoutWidget_5") 76 | self.verticalLayoutWidget_5.setGeometry(QRect(900, 390, 21, 132)) 77 | self.verticalLayout_5 = QVBoxLayout(self.verticalLayoutWidget_5) 78 | self.verticalLayout_5.setObjectName(u"verticalLayout_5") 79 | self.verticalLayout_5.setSizeConstraint(QLayout.SizeConstraint.SetMaximumSize) 80 | self.verticalLayout_5.setContentsMargins(0, 0, 0, 0) 81 | self.command_edit_1 = QPushButton(self.verticalLayoutWidget_5) 82 | self.command_edit_1.setObjectName(u"command_edit_1") 83 | self.command_edit_1.setMinimumSize(QSize(19, 28)) 84 | font = QFont() 85 | font.setPointSize(8) 86 | self.command_edit_1.setFont(font) 87 | 88 | self.verticalLayout_5.addWidget(self.command_edit_1) 89 | 90 | self.command_edit_2 = QPushButton(self.verticalLayoutWidget_5) 91 | self.command_edit_2.setObjectName(u"command_edit_2") 92 | self.command_edit_2.setMinimumSize(QSize(19, 28)) 93 | self.command_edit_2.setFont(font) 94 | 95 | self.verticalLayout_5.addWidget(self.command_edit_2) 96 | 97 | self.command_edit_3 = QPushButton(self.verticalLayoutWidget_5) 98 | self.command_edit_3.setObjectName(u"command_edit_3") 99 | self.command_edit_3.setMinimumSize(QSize(19, 28)) 100 | self.command_edit_3.setFont(font) 101 | 102 | self.verticalLayout_5.addWidget(self.command_edit_3) 103 | 104 | self.command_edit_4 = QPushButton(self.verticalLayoutWidget_5) 105 | self.command_edit_4.setObjectName(u"command_edit_4") 106 | self.command_edit_4.setMinimumSize(QSize(19, 28)) 107 | self.command_edit_4.setFont(font) 108 | 109 | self.verticalLayout_5.addWidget(self.command_edit_4) 110 | 111 | self.verticalLayoutWidget_6 = QWidget(self.tab) 112 | self.verticalLayoutWidget_6.setObjectName(u"verticalLayoutWidget_6") 113 | self.verticalLayoutWidget_6.setGeometry(QRect(730, 390, 171, 121)) 114 | self.verticalLayout_6 = QVBoxLayout(self.verticalLayoutWidget_6) 115 | self.verticalLayout_6.setObjectName(u"verticalLayout_6") 116 | self.verticalLayout_6.setContentsMargins(0, 0, 0, 0) 117 | self.saved_command_1 = QPushButton(self.verticalLayoutWidget_6) 118 | self.saved_command_1.setObjectName(u"saved_command_1") 119 | 120 | self.verticalLayout_6.addWidget(self.saved_command_1) 121 | 122 | self.saved_command_2 = QPushButton(self.verticalLayoutWidget_6) 123 | self.saved_command_2.setObjectName(u"saved_command_2") 124 | 125 | self.verticalLayout_6.addWidget(self.saved_command_2) 126 | 127 | self.saved_command_3 = QPushButton(self.verticalLayoutWidget_6) 128 | self.saved_command_3.setObjectName(u"saved_command_3") 129 | 130 | self.verticalLayout_6.addWidget(self.saved_command_3) 131 | 132 | self.saved_command_4 = QPushButton(self.verticalLayoutWidget_6) 133 | self.saved_command_4.setObjectName(u"saved_command_4") 134 | 135 | self.verticalLayout_6.addWidget(self.saved_command_4) 136 | 137 | self.verticalLayoutWidget_4 = QWidget(self.tab) 138 | self.verticalLayoutWidget_4.setObjectName(u"verticalLayoutWidget_4") 139 | self.verticalLayoutWidget_4.setGeometry(QRect(730, 260, 191, 131)) 140 | self.verticalLayout_4 = QVBoxLayout(self.verticalLayoutWidget_4) 141 | self.verticalLayout_4.setObjectName(u"verticalLayout_4") 142 | self.verticalLayout_4.setContentsMargins(0, 0, 0, 0) 143 | self.label_11 = QLabel(self.verticalLayoutWidget_4) 144 | self.label_11.setObjectName(u"label_11") 145 | 146 | self.verticalLayout_4.addWidget(self.label_11) 147 | 148 | self.options_textEdit = QTextEdit(self.verticalLayoutWidget_4) 149 | self.options_textEdit.setObjectName(u"options_textEdit") 150 | self.options_textEdit.setFrameShape(QFrame.Shape.Box) 151 | 152 | self.verticalLayout_4.addWidget(self.options_textEdit) 153 | 154 | self.horizontalLayout_3 = QHBoxLayout() 155 | self.horizontalLayout_3.setObjectName(u"horizontalLayout_3") 156 | self.end_button = QPushButton(self.verticalLayoutWidget_4) 157 | self.end_button.setObjectName(u"end_button") 158 | font1 = QFont() 159 | font1.setPointSize(9) 160 | font1.setBold(True) 161 | self.end_button.setFont(font1) 162 | self.end_button.setAutoFillBackground(False) 163 | self.end_button.setStyleSheet(u"") 164 | self.end_button.setLocale(QLocale(QLocale.English, QLocale.UnitedStates)) 165 | 166 | self.horizontalLayout_3.addWidget(self.end_button) 167 | 168 | self.start_button = QPushButton(self.verticalLayoutWidget_4) 169 | self.start_button.setObjectName(u"start_button") 170 | self.start_button.setFont(font1) 171 | self.start_button.setAutoFillBackground(False) 172 | self.start_button.setStyleSheet(u"") 173 | 174 | self.horizontalLayout_3.addWidget(self.start_button) 175 | 176 | 177 | self.verticalLayout_4.addLayout(self.horizontalLayout_3) 178 | 179 | self.formLayoutWidget_3 = QWidget(self.tab) 180 | self.formLayoutWidget_3.setObjectName(u"formLayoutWidget_3") 181 | self.formLayoutWidget_3.setGeometry(QRect(730, 230, 191, 21)) 182 | self.formLayout_3 = QFormLayout(self.formLayoutWidget_3) 183 | self.formLayout_3.setObjectName(u"formLayout_3") 184 | self.formLayout_3.setContentsMargins(0, 0, 0, 0) 185 | self.label_8 = QLabel(self.formLayoutWidget_3) 186 | self.label_8.setObjectName(u"label_8") 187 | font2 = QFont() 188 | font2.setFamilies([u"Arial"]) 189 | font2.setPointSize(9) 190 | font2.setBold(False) 191 | self.label_8.setFont(font2) 192 | 193 | self.formLayout_3.setWidget(0, QFormLayout.LabelRole, self.label_8) 194 | 195 | self.status_label = QLabel(self.formLayoutWidget_3) 196 | self.status_label.setObjectName(u"status_label") 197 | self.status_label.setFont(font2) 198 | self.status_label.setStyleSheet(u"") 199 | 200 | self.formLayout_3.setWidget(0, QFormLayout.FieldRole, self.status_label) 201 | 202 | self.formLayoutWidget_4 = QWidget(self.tab) 203 | self.formLayoutWidget_4.setObjectName(u"formLayoutWidget_4") 204 | self.formLayoutWidget_4.setGeometry(QRect(732, 28, 191, 231)) 205 | self.formLayout_4 = QFormLayout(self.formLayoutWidget_4) 206 | self.formLayout_4.setObjectName(u"formLayout_4") 207 | self.formLayout_4.setContentsMargins(0, 0, 0, 0) 208 | self.label_16 = QLabel(self.formLayoutWidget_4) 209 | self.label_16.setObjectName(u"label_16") 210 | 211 | self.formLayout_4.setWidget(0, QFormLayout.LabelRole, self.label_16) 212 | 213 | self.port_comboBox = QComboBox(self.formLayoutWidget_4) 214 | self.port_comboBox.setObjectName(u"port_comboBox") 215 | 216 | self.formLayout_4.setWidget(0, QFormLayout.FieldRole, self.port_comboBox) 217 | 218 | self.label_17 = QLabel(self.formLayoutWidget_4) 219 | self.label_17.setObjectName(u"label_17") 220 | 221 | self.formLayout_4.setWidget(1, QFormLayout.LabelRole, self.label_17) 222 | 223 | self.baudrate_comboBox = QComboBox(self.formLayoutWidget_4) 224 | self.baudrate_comboBox.addItem("") 225 | self.baudrate_comboBox.addItem("") 226 | self.baudrate_comboBox.addItem("") 227 | self.baudrate_comboBox.addItem("") 228 | self.baudrate_comboBox.addItem("") 229 | self.baudrate_comboBox.addItem("") 230 | self.baudrate_comboBox.addItem("") 231 | self.baudrate_comboBox.addItem("") 232 | self.baudrate_comboBox.addItem("") 233 | self.baudrate_comboBox.addItem("") 234 | self.baudrate_comboBox.setObjectName(u"baudrate_comboBox") 235 | 236 | self.formLayout_4.setWidget(1, QFormLayout.FieldRole, self.baudrate_comboBox) 237 | 238 | self.label_18 = QLabel(self.formLayoutWidget_4) 239 | self.label_18.setObjectName(u"label_18") 240 | 241 | self.formLayout_4.setWidget(2, QFormLayout.LabelRole, self.label_18) 242 | 243 | self.len_comboBox = QComboBox(self.formLayoutWidget_4) 244 | self.len_comboBox.addItem("") 245 | self.len_comboBox.addItem("") 246 | self.len_comboBox.addItem("") 247 | self.len_comboBox.addItem("") 248 | self.len_comboBox.setObjectName(u"len_comboBox") 249 | 250 | self.formLayout_4.setWidget(2, QFormLayout.FieldRole, self.len_comboBox) 251 | 252 | self.label_19 = QLabel(self.formLayoutWidget_4) 253 | self.label_19.setObjectName(u"label_19") 254 | 255 | self.formLayout_4.setWidget(3, QFormLayout.LabelRole, self.label_19) 256 | 257 | self.timeout_comboBox = QComboBox(self.formLayoutWidget_4) 258 | self.timeout_comboBox.addItem("") 259 | self.timeout_comboBox.addItem("") 260 | self.timeout_comboBox.addItem("") 261 | self.timeout_comboBox.addItem("") 262 | self.timeout_comboBox.addItem("") 263 | self.timeout_comboBox.addItem("") 264 | self.timeout_comboBox.addItem("") 265 | self.timeout_comboBox.addItem("") 266 | self.timeout_comboBox.setObjectName(u"timeout_comboBox") 267 | 268 | self.formLayout_4.setWidget(3, QFormLayout.FieldRole, self.timeout_comboBox) 269 | 270 | self.label_20 = QLabel(self.formLayoutWidget_4) 271 | self.label_20.setObjectName(u"label_20") 272 | 273 | self.formLayout_4.setWidget(4, QFormLayout.LabelRole, self.label_20) 274 | 275 | self.parity_comboBox = QComboBox(self.formLayoutWidget_4) 276 | self.parity_comboBox.addItem("") 277 | self.parity_comboBox.addItem("") 278 | self.parity_comboBox.addItem("") 279 | self.parity_comboBox.addItem("") 280 | self.parity_comboBox.addItem("") 281 | self.parity_comboBox.setObjectName(u"parity_comboBox") 282 | 283 | self.formLayout_4.setWidget(4, QFormLayout.FieldRole, self.parity_comboBox) 284 | 285 | self.label_21 = QLabel(self.formLayoutWidget_4) 286 | self.label_21.setObjectName(u"label_21") 287 | 288 | self.formLayout_4.setWidget(5, QFormLayout.LabelRole, self.label_21) 289 | 290 | self.bit_comboBox = QComboBox(self.formLayoutWidget_4) 291 | self.bit_comboBox.addItem("") 292 | self.bit_comboBox.addItem("") 293 | self.bit_comboBox.addItem("") 294 | self.bit_comboBox.setObjectName(u"bit_comboBox") 295 | 296 | self.formLayout_4.setWidget(5, QFormLayout.FieldRole, self.bit_comboBox) 297 | 298 | self.label_24 = QLabel(self.formLayoutWidget_4) 299 | self.label_24.setObjectName(u"label_24") 300 | 301 | self.formLayout_4.setWidget(6, QFormLayout.LabelRole, self.label_24) 302 | 303 | self.flow_comboBox = QComboBox(self.formLayoutWidget_4) 304 | self.flow_comboBox.addItem("") 305 | self.flow_comboBox.addItem("") 306 | self.flow_comboBox.addItem("") 307 | self.flow_comboBox.addItem("") 308 | self.flow_comboBox.setObjectName(u"flow_comboBox") 309 | 310 | self.formLayout_4.setWidget(6, QFormLayout.FieldRole, self.flow_comboBox) 311 | 312 | self.label_46 = QLabel(self.tab) 313 | self.label_46.setObjectName(u"label_46") 314 | self.label_46.setGeometry(QRect(740, 10, 151, 16)) 315 | self.refresh_button = QPushButton(self.tab) 316 | self.refresh_button.setObjectName(u"refresh_button") 317 | self.refresh_button.setGeometry(QRect(890, 0, 31, 28)) 318 | self.horizontalLayoutWidget = QWidget(self.tab) 319 | self.horizontalLayoutWidget.setObjectName(u"horizontalLayoutWidget") 320 | self.horizontalLayoutWidget.setGeometry(QRect(0, 520, 901, 31)) 321 | self.horizontalLayout = QHBoxLayout(self.horizontalLayoutWidget) 322 | self.horizontalLayout.setSpacing(1) 323 | self.horizontalLayout.setObjectName(u"horizontalLayout") 324 | self.horizontalLayout.setSizeConstraint(QLayout.SizeConstraint.SetNoConstraint) 325 | self.horizontalLayout.setContentsMargins(0, 0, 0, 0) 326 | self.send_data_text = QTextEdit(self.horizontalLayoutWidget) 327 | self.send_data_text.setObjectName(u"send_data_text") 328 | sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Minimum) 329 | sizePolicy1.setHorizontalStretch(5) 330 | sizePolicy1.setVerticalStretch(5) 331 | sizePolicy1.setHeightForWidth(self.send_data_text.sizePolicy().hasHeightForWidth()) 332 | self.send_data_text.setSizePolicy(sizePolicy1) 333 | self.send_data_text.setMaximumSize(QSize(465, 28)) 334 | self.send_data_text.setFrameShape(QFrame.Shape.Box) 335 | self.send_data_text.setFrameShadow(QFrame.Shadow.Plain) 336 | self.send_data_text.setAcceptRichText(False) 337 | 338 | self.horizontalLayout.addWidget(self.send_data_text) 339 | 340 | self.send_button = QPushButton(self.horizontalLayoutWidget) 341 | self.send_button.setObjectName(u"send_button") 342 | 343 | self.horizontalLayout.addWidget(self.send_button) 344 | 345 | self.save_txt_button = QPushButton(self.horizontalLayoutWidget) 346 | self.save_txt_button.setObjectName(u"save_txt_button") 347 | 348 | self.horizontalLayout.addWidget(self.save_txt_button) 349 | 350 | self.view_change = QPushButton(self.horizontalLayoutWidget) 351 | self.view_change.setObjectName(u"view_change") 352 | self.view_change.setFont(font1) 353 | 354 | self.horizontalLayout.addWidget(self.view_change) 355 | 356 | self.night_mode = QPushButton(self.horizontalLayoutWidget) 357 | self.night_mode.setObjectName(u"night_mode") 358 | 359 | self.horizontalLayout.addWidget(self.night_mode) 360 | 361 | self.clear_buffer_button = QPushButton(self.horizontalLayoutWidget) 362 | self.clear_buffer_button.setObjectName(u"clear_buffer_button") 363 | 364 | self.horizontalLayout.addWidget(self.clear_buffer_button) 365 | 366 | self.tabWidget.addTab(self.tab, "") 367 | self.tab_2 = QWidget() 368 | self.tab_2.setObjectName(u"tab_2") 369 | self.textEdit_3 = QTextEdit(self.tab_2) 370 | self.textEdit_3.setObjectName(u"textEdit_3") 371 | self.textEdit_3.setGeometry(QRect(10, 10, 911, 491)) 372 | self.textEdit_3.setUndoRedoEnabled(False) 373 | self.textEdit_3.setReadOnly(True) 374 | self.textEdit_3.setAcceptRichText(False) 375 | self.label_3 = QLabel(self.tab_2) 376 | self.label_3.setObjectName(u"label_3") 377 | self.label_3.setGeometry(QRect(590, 530, 101, 16)) 378 | self.label_2 = QLabel(self.tab_2) 379 | self.label_2.setObjectName(u"label_2") 380 | self.label_2.setGeometry(QRect(150, 530, 331, 16)) 381 | self.label_2.setOpenExternalLinks(True) 382 | self.tabWidget.addTab(self.tab_2, "") 383 | main_window.setCentralWidget(self.centralwidget) 384 | 385 | self.retranslateUi(main_window) 386 | 387 | self.tabWidget.setCurrentIndex(0) 388 | 389 | 390 | QMetaObject.connectSlotsByName(main_window) 391 | # setupUi 392 | 393 | def retranslateUi(self, main_window): 394 | main_window.setWindowTitle(QCoreApplication.translate("main_window", u"AFCOM Client (A free COM port data transfer client)", None)) 395 | #if QT_CONFIG(statustip) 396 | main_window.setStatusTip(QCoreApplication.translate("main_window", u"Mehmet Cagri Aksoy", None)) 397 | #endif // QT_CONFIG(statustip) 398 | #if QT_CONFIG(whatsthis) 399 | main_window.setWhatsThis(QCoreApplication.translate("main_window", u"Serial Communication Program Mehmet Cagri Aksoy", None)) 400 | #endif // QT_CONFIG(whatsthis) 401 | self.actionAna_Ekran.setText(QCoreApplication.translate("main_window", u"Ana Ekran", None)) 402 | self.actionHelp.setText(QCoreApplication.translate("main_window", u"Help", None)) 403 | self.label_23.setText(QCoreApplication.translate("main_window", u"Gathering Data (Rx)", None)) 404 | self.command_edit_1.setText(QCoreApplication.translate("main_window", u"...", None)) 405 | self.command_edit_2.setText(QCoreApplication.translate("main_window", u"...", None)) 406 | self.command_edit_3.setText(QCoreApplication.translate("main_window", u"...", None)) 407 | self.command_edit_4.setText(QCoreApplication.translate("main_window", u"...", None)) 408 | self.saved_command_1.setText(QCoreApplication.translate("main_window", u"Command 1", None)) 409 | self.saved_command_2.setText(QCoreApplication.translate("main_window", u"Command 2", None)) 410 | self.saved_command_3.setText(QCoreApplication.translate("main_window", u"Command 3", None)) 411 | self.saved_command_4.setText(QCoreApplication.translate("main_window", u"Command 4", None)) 412 | self.label_11.setText(QCoreApplication.translate("main_window", u"Connection Options:", None)) 413 | self.end_button.setText(QCoreApplication.translate("main_window", u"STOP", None)) 414 | self.start_button.setText(QCoreApplication.translate("main_window", u"START", None)) 415 | self.label_8.setText(QCoreApplication.translate("main_window", u"Port Status :", None)) 416 | self.status_label.setText(QCoreApplication.translate("main_window", u"Not Connected", None)) 417 | self.label_16.setText(QCoreApplication.translate("main_window", u"Selected Port:", None)) 418 | self.label_17.setText(QCoreApplication.translate("main_window", u"Baud Rate:", None)) 419 | self.baudrate_comboBox.setItemText(0, QCoreApplication.translate("main_window", u"9600", None)) 420 | self.baudrate_comboBox.setItemText(1, QCoreApplication.translate("main_window", u"57600", None)) 421 | self.baudrate_comboBox.setItemText(2, QCoreApplication.translate("main_window", u"115200", None)) 422 | self.baudrate_comboBox.setItemText(3, QCoreApplication.translate("main_window", u"110", None)) 423 | self.baudrate_comboBox.setItemText(4, QCoreApplication.translate("main_window", u"300", None)) 424 | self.baudrate_comboBox.setItemText(5, QCoreApplication.translate("main_window", u"1200", None)) 425 | self.baudrate_comboBox.setItemText(6, QCoreApplication.translate("main_window", u"2400", None)) 426 | self.baudrate_comboBox.setItemText(7, QCoreApplication.translate("main_window", u"4800", None)) 427 | self.baudrate_comboBox.setItemText(8, QCoreApplication.translate("main_window", u"19200", None)) 428 | self.baudrate_comboBox.setItemText(9, QCoreApplication.translate("main_window", u"38400", None)) 429 | 430 | self.label_18.setText(QCoreApplication.translate("main_window", u"Length (B):", None)) 431 | self.len_comboBox.setItemText(0, QCoreApplication.translate("main_window", u"8", None)) 432 | self.len_comboBox.setItemText(1, QCoreApplication.translate("main_window", u"7", None)) 433 | self.len_comboBox.setItemText(2, QCoreApplication.translate("main_window", u"6", None)) 434 | self.len_comboBox.setItemText(3, QCoreApplication.translate("main_window", u"5", None)) 435 | 436 | self.label_19.setText(QCoreApplication.translate("main_window", u"Timeout:", None)) 437 | self.timeout_comboBox.setItemText(0, QCoreApplication.translate("main_window", u"2", None)) 438 | self.timeout_comboBox.setItemText(1, QCoreApplication.translate("main_window", u"3", None)) 439 | self.timeout_comboBox.setItemText(2, QCoreApplication.translate("main_window", u"4", None)) 440 | self.timeout_comboBox.setItemText(3, QCoreApplication.translate("main_window", u"5", None)) 441 | self.timeout_comboBox.setItemText(4, QCoreApplication.translate("main_window", u"10", None)) 442 | self.timeout_comboBox.setItemText(5, QCoreApplication.translate("main_window", u"30", None)) 443 | self.timeout_comboBox.setItemText(6, QCoreApplication.translate("main_window", u"50", None)) 444 | self.timeout_comboBox.setItemText(7, QCoreApplication.translate("main_window", u"100", None)) 445 | 446 | self.label_20.setText(QCoreApplication.translate("main_window", u"Parity:", None)) 447 | self.parity_comboBox.setItemText(0, QCoreApplication.translate("main_window", u"None", None)) 448 | self.parity_comboBox.setItemText(1, QCoreApplication.translate("main_window", u"Even", None)) 449 | self.parity_comboBox.setItemText(2, QCoreApplication.translate("main_window", u"Odd", None)) 450 | self.parity_comboBox.setItemText(3, QCoreApplication.translate("main_window", u"Mark", None)) 451 | self.parity_comboBox.setItemText(4, QCoreApplication.translate("main_window", u"Space", None)) 452 | 453 | self.label_21.setText(QCoreApplication.translate("main_window", u"StopBits:", None)) 454 | self.bit_comboBox.setItemText(0, QCoreApplication.translate("main_window", u"1", None)) 455 | self.bit_comboBox.setItemText(1, QCoreApplication.translate("main_window", u"1.5", None)) 456 | self.bit_comboBox.setItemText(2, QCoreApplication.translate("main_window", u"2", None)) 457 | 458 | self.label_24.setText(QCoreApplication.translate("main_window", u"Flow Control:", None)) 459 | self.flow_comboBox.setItemText(0, QCoreApplication.translate("main_window", u"None", None)) 460 | self.flow_comboBox.setItemText(1, QCoreApplication.translate("main_window", u"Xon/Xoff", None)) 461 | self.flow_comboBox.setItemText(2, QCoreApplication.translate("main_window", u"RTS/CTS", None)) 462 | self.flow_comboBox.setItemText(3, QCoreApplication.translate("main_window", u"DSR/DTR", None)) 463 | 464 | self.label_46.setText(QCoreApplication.translate("main_window", u"Settings: Refresh:", None)) 465 | self.refresh_button.setText(QCoreApplication.translate("main_window", u"\u21bb", None)) 466 | self.send_data_text.setPlaceholderText(QCoreApplication.translate("main_window", u"Please enter the data want to sent...", None)) 467 | self.send_button.setText(QCoreApplication.translate("main_window", u"SEND", None)) 468 | #if QT_CONFIG(tooltip) 469 | self.save_txt_button.setToolTip(QCoreApplication.translate("main_window", u"Save the output", None)) 470 | #endif // QT_CONFIG(tooltip) 471 | #if QT_CONFIG(statustip) 472 | self.save_txt_button.setStatusTip(QCoreApplication.translate("main_window", u"Save the output", None)) 473 | #endif // QT_CONFIG(statustip) 474 | #if QT_CONFIG(whatsthis) 475 | self.save_txt_button.setWhatsThis(QCoreApplication.translate("main_window", u"Save the output", None)) 476 | #endif // QT_CONFIG(whatsthis) 477 | self.save_txt_button.setText(QCoreApplication.translate("main_window", u"Save as .txt", None)) 478 | #if QT_CONFIG(tooltip) 479 | self.view_change.setToolTip(QCoreApplication.translate("main_window", u"Click Here to go to the Simple View", None)) 480 | #endif // QT_CONFIG(tooltip) 481 | #if QT_CONFIG(statustip) 482 | self.view_change.setStatusTip(QCoreApplication.translate("main_window", u"Click Here to go to the Simple View", None)) 483 | #endif // QT_CONFIG(statustip) 484 | #if QT_CONFIG(whatsthis) 485 | self.view_change.setWhatsThis(QCoreApplication.translate("main_window", u"Click Here to go to the Simple View", None)) 486 | #endif // QT_CONFIG(whatsthis) 487 | self.view_change.setText(QCoreApplication.translate("main_window", u"<<", None)) 488 | self.night_mode.setText(QCoreApplication.translate("main_window", u"\ud83c\udf18 Night Mode", None)) 489 | self.clear_buffer_button.setText(QCoreApplication.translate("main_window", u"Clear Buffer", None)) 490 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QCoreApplication.translate("main_window", u"Main Page", None)) 491 | self.textEdit_3.setHtml(QCoreApplication.translate("main_window", u"\n" 492 | "\n" 498 | "

Information

\n" 499 | "


\n" 500 | "

The AFCOM (aka Serial communication GUI program) tool is a software application that allows users to send and receive data via the serial port (COM port) of their computer. The tool can be used for various purposes, such as testing, debugging, or communicating with other devices that use the serial protocol.

\n" 502 | "


\n" 503 | "

Features

\n" 504 | "


\n" 505 | "

The COM port tool has the following features: It supports multiple COM ports and can detect the available ports automatically. It allows users to configure the parameters of the serial communication, such as baud rate. It provides a user-friendly interface that shows the transmitted and received data in hexadecimal, decimal, ASCII, or binary formats. It allows users to save and load the data to and from files.

\n" 507 | "


\n" 508 | "


\n" 509 | "


\n" 511 | "


\n" 512 | "

Legal Information

\n" 513 | "

This application incorporates Qt for Python (PySide), which is licensed under the GNU Lesser General Public License version 3 (LGPLv3). By using this software, you agree to comply with the terms of the LGPLv3 license. For more information about Qt for Python, visit https://www.qt.io/qt-for-python. A copy of the LGPLv3 license is included with this application.

\n" 514 | "


\n" 516 | "


", None)) 517 | self.label_3.setText(QCoreApplication.translate("main_window", u"Version 2024.12", None)) 518 | #if QT_CONFIG(tooltip) 519 | self.label_2.setToolTip(QCoreApplication.translate("main_window", u"

Github

", None)) 520 | #endif // QT_CONFIG(tooltip) 521 | self.label_2.setText(QCoreApplication.translate("main_window", u"

Feel free to ask any questions or bug report on Github

", None)) 522 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QCoreApplication.translate("main_window", u"About", None)) 523 | # retranslateUi 524 | 525 | --------------------------------------------------------------------------------