pax_global_header00006660000000000000000000000064135536606460014530gustar00rootroot0000000000000052 comment=1cac0583b8594fd8d657fc149070aeb20f90b4a8 serialDV-1.1.4/000077500000000000000000000000001355366064600132445ustar00rootroot00000000000000serialDV-1.1.4/.gitignore000066400000000000000000000000411355366064600152270ustar00rootroot00000000000000.cproject .project .vscode build serialDV-1.1.4/CMakeLists.txt000066400000000000000000000045171355366064600160130ustar00rootroot00000000000000cmake_minimum_required(VERSION 3.1.0) project(serialdv) set(MAJOR_VERSION 1) set(MINOR_VERSION 1) set(PATCH_VERSION 4) set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}) set(VERSION ${VERSION_STRING}) include(GNUInstallDirs) set(LIB_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}") # "lib" or "lib64" option(BUILD_TOOL "Build dvtest tool" ON) # use, i.e. don't skip the full RPATH for the build tree set(CMAKE_SKIP_BUILD_RPATH FALSE) # use c++11 set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) # when building, don't use the install RPATH already # (but later on when installing) set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") # add the automatically determined parts of the RPATH # which point to directories outside the build tree to the install RPATH set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) #list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules) # Compiler flags. if(WIN32) add_definitions(-D__WINDOWS__) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall ${EXTRA_FLAGS}") else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -O2 -ffast-math -ftree-vectorize ${EXTRA_FLAGS}") endif() set(serialdv_SOURCES datacontroller.cpp dummydatacontroller.cpp dvcontroller.cpp ) set(serialdv_HEADERS serialdv_export.h datacontroller.h dummydatacontroller.h dvcontroller.h ) if (NOT APPLE) set(serialdv_SOURCES ${serialdv_SOURCES} serialdatacontroller.cpp udpdatacontroller.cpp ) set(serialdv_HEADERS ${serialdv_HEADERS} serialdatacontroller.h udpdatacontroller.h ) endif() include_directories( ${PROJECT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) add_library(serialdv SHARED ${serialdv_SOURCES} ) if(BUILD_TOOL AND NOT WIN32) add_executable(dvtest dvtest.cpp ) target_include_directories(dvtest PUBLIC ${PROJECT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) set_target_properties(serialdv PROPERTIES VERSION ${VERSION} SOVERSION ${MAJOR_VERSION}) target_link_libraries(dvtest serialdv) install(TARGETS dvtest DESTINATION bin) endif(BUILD_TOOL AND NOT WIN32) install(TARGETS serialdv LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(FILES ${serialdv_HEADERS} DESTINATION include/${PROJECT_NAME}) serialDV-1.1.4/LICENSE000066400000000000000000001045151355366064600142570ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . serialDV-1.1.4/Readme.md000066400000000000000000000073451355366064600147740ustar00rootroot00000000000000SerialDV ======== **Warning** Since kernel 4.4.52 the default for FTDI devices (that is in the ftdi_sio kernel module) is not to set it as low latency. This results in the ThumbDV dongle not working anymore because its response is too slow to sustain the normal AMBE packets flow. The solution is to force low latency by changing the variable for your device (ex: /dev/ttyUSB0) as follows: `echo 1 | sudo tee /sys/bus/usb-serial/devices/ttyUSB0/latency_timer` You can also install the `setserial` package an do the following: `sudo setserial /dev/ttyUSB0 low_latency` A device that cannot be opened with low latency will be rejected. This way the non DVSI device candidates are filtered out. **SerialDV** is inspired from the [OpenDV project](https://github.com/dl5di/OpenDV.git) but retains only the minimal interface to encode and decode audio with AMBE3000 based devices in packet mode over a serial link. For details on the packet interface of AMBE3000 chip download the documentation on [DVSI website](http://www.dvsinc.com/products/a3000.htm)

Introduction

**SerialDV** is designed with the following assumptions - One object controls one device in one thread. It is up to you to control the device in a separate thread or create a pool of threads for a pool of devices with load balancing. No fancy stuff here because fancy stuff depends too much on the environment. - The library manages the atomic operations of decoding one AMBE frame or encoding one audio frame in query/reply pairs or transactions. Each query is returned a complete reply or an error. There is no queuing mechanism whatsoever. - AMBE3000 chip has many modes and features the scope of this library is to provide an easy to use interface for the most popular digital voice modes i.e. D-Star and the DMR likes (DMR, YSF, P25, ...). Some more may be added in the future if the need arises. - It will work for both encoding and decoding

Hardware

This library can control the serial interface to the AMBE3000 chip in packet mode. There are several devices or hardware blocks that implement it. A popular and easy to use one because it works with the well known serial oved UDP using a FTDI chip is the [ThumbDV dongle](http://nwdigitalradio.com/thumbdv-and-dv3000-resource-page/). It can be purchased in the US or from several UK resellers. In Linux systems the FTDI driver will create a TTY device like `/dev/ttyUSB0` that you will use as the serial device name.

Build and install

As with all cmake based projects you have to create a build directory in your cloned copy of this repository and cd into it. Then to install in your own path say `/opt/install/serialdv`use the following cmake comamnd: `cmake -Wno-dev -DCMAKE_INSTALL_PREFIX=/opt/install/serialdv ..` Then to `make` and `make install` That's it!

Usage

Test program

A test program `dvtest` is created in the `bin` subdirectory of the install directory. This program takes a raw audio samples file as input (S16LE 8 kS/s) encodes it then decodes it and writes the result to an output file with the same format (S16LE 8 kS/s). Standard input and/or standard output can be used for piped commands with the `-` special filename. Ex: `dvtest -D /dev/ttyUSB0 -f 1 -i ../samples/hts1a.raw -o test.raw` Then you can play back the file with sox package installed: `play -r 8k -e signed-integer -b 16 test.raw` The full list of parameters can be accessed with the on-line help: `dvtest -h` In the `samples` subdirectory of the source tree some sample audio files taken from the Codec2 project are provided: - `forig.raw`: female voice - `morig.raw`: male voice - `hts1a.raw`: another male voice - `vk5qi.raw`: amateur radio call test (VK5QI). This is a slightly longer sample with a male voice. serialDV-1.1.4/datacontroller.cpp000066400000000000000000000026021355366064600167650ustar00rootroot00000000000000/////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2019 Edouard Griffiths, F4EXB. // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation as version 3 of the License, or // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License V3 for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// #include "datacontroller.h" namespace SerialDV { DataController::DataController() {} DataController::~DataController() {} } // namespace SerialDVserialDV-1.1.4/datacontroller.h000066400000000000000000000047121355366064600164360ustar00rootroot00000000000000/////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2019 Edouard Griffiths, F4EXB. // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation as version 3 of the License, or // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License V3 for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// #ifndef DATACONTROLLER_H_ #define DATACONTROLLER_H_ #include #include "serialdv_export.h" namespace SerialDV { const unsigned int MBE_AUDIO_BLOCK_SIZE_INTERNAL = 160U; const unsigned int MBE_AUDIO_BLOCK_BYTES_INTERNAL = MBE_AUDIO_BLOCK_SIZE_INTERNAL * 2U; const unsigned int MBE_FRAME_MAX_LENGTH_BYTES_INTERNAL = 18U; enum SERIAL_SPEED { SERIAL_NONE = 0, SERIAL_1200 = 1200, SERIAL_2400 = 2400, SERIAL_4800 = 4800, SERIAL_9600 = 9600, SERIAL_19200 = 19200, SERIAL_38400 = 38400, SERIAL_76800 = 76800, SERIAL_115200 = 115200, SERIAL_230400 = 230400, SERIAL_460800 = 460800 }; class SERIALDV_API DataController { public: DataController(); virtual ~DataController(); virtual bool open(const std::string& device, SERIAL_SPEED speed) = 0; virtual bool initResponse() = 0; virtual int read(unsigned char* buffer, unsigned int lengthInBytes) = 0; virtual int write(const unsigned char* buffer, unsigned int lengthInBytes) = 0; virtual void closeIt() = 0; #ifdef __WINDOWS__ static const unsigned int BUFFER_LENGTH = 1000U; #else static const unsigned int BUFFER_LENGTH = 400U; #endif }; } // namespace SerialDV #endif // DATACONTROLLER_H_ serialDV-1.1.4/dummydatacontroller.cpp000066400000000000000000000037231355366064600200460ustar00rootroot00000000000000/////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2019 Edouard Griffiths, F4EXB. // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation as version 3 of the License, or // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License V3 for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// #include "dummydatacontroller.h" namespace SerialDV { DummyDataController::DummyDataController() { } DummyDataController::~DummyDataController() { } bool DummyDataController::open(const std::string& device, SERIAL_SPEED speed) { (void) device; (void) speed; return false; } int DummyDataController::read(unsigned char* buffer, unsigned int lengthInBytes) { (void) buffer; (void) lengthInBytes; return 0; } int DummyDataController::write(const unsigned char* buffer, unsigned int lengthInBytes) { (void) buffer; (void) lengthInBytes; return 0; } void DummyDataController::closeIt() { } bool DummyDataController::initResponse() { return true; // Do nothing for dummmy } } // namespace SerialDV serialDV-1.1.4/dummydatacontroller.h000066400000000000000000000035111355366064600175060ustar00rootroot00000000000000/////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2019 Edouard Griffiths, F4EXB. // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation as version 3 of the License, or // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License V3 for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// #ifndef DUMMYDATACONTROLLER_H_ #define DUMMYDATACONTROLLER_H_ #include "datacontroller.h" namespace SerialDV { class SERIALDV_API DummyDataController : public DataController { public: DummyDataController(); virtual ~DummyDataController(); virtual bool open(const std::string& device, SERIAL_SPEED speed); virtual bool initResponse(); virtual int read(unsigned char* buffer, unsigned int lengthInBytes); virtual int write(const unsigned char* buffer, unsigned int lengthInBytes); virtual void closeIt(); }; } // namespace SerialDV #endif /* DUMMYDATACONTROLLER_H_ */ serialDV-1.1.4/dvcontroller.cpp000066400000000000000000000336301355366064600164720ustar00rootroot00000000000000/////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2016 Edouard Griffiths, F4EXB. // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation as version 3 of the License, or // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License V3 for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// #include #include #include #include #include #include #ifdef __APPLE__ #include "dummydatacontroller.h" #else #include "udpdatacontroller.h" #include "serialdatacontroller.h" #endif #include "dvcontroller.h" namespace SerialDV { DVController::DVController() : m_serial(nullptr), m_open(false), m_currentRate(DVRateNone), m_currentGainIn(0), m_currentGainOut(0), m_currentNbMbeBits(72), m_currentNbMbeBytes(9) { m_littleEndian = isLittleEndian(); } DVController::~DVController() { if (m_serial) { delete m_serial; } } bool DVController::open(const std::string& device, bool halfSpeed) { m_open = false; #ifdef __APPLE__ m_serial = new DummyDataController(); #else if (device.find(':') != std::string::npos) { m_serial = new UDPDataController(); } else { m_serial = new SerialDataController(); } #endif bool res = m_serial->open(device, halfSpeed ? SERIAL_230400 : SERIAL_460800); if (!res) { return false; } m_serial->write(DV3000_REQ_PRODID, DV3000_REQ_PRODID_LEN); unsigned char buffer[DataController::BUFFER_LENGTH]; RESP_TYPE type = getResponse(buffer, DataController::BUFFER_LENGTH); if (type == RESP_ERROR) { fprintf(stderr, "DVController::open: serial device error\n"); m_serial->closeIt(); return false; } else if (type == RESP_NAME) { std::string name((char *) &buffer[5]); fprintf(stderr, "DVController::open: DV3000 chip identified as: %s\n", name.c_str()); m_open = true; return true; } else { fprintf(stderr, "DVController::open: response mismatch\n"); m_serial->closeIt(); return false; } } void DVController::close() { m_serial->closeIt(); m_open = false; } bool DVController::encode(const short *audioFrame, unsigned char *mbeFrame, DVRate rate, int gain) { if (!m_open) { return false; } if (rate != m_currentRate) { setRate(rate); m_currentRate = rate; } if (gain != m_currentGainIn) { setGain(gain, m_currentGainOut); m_currentGainIn = gain; } encodeIn(audioFrame, MBE_AUDIO_BLOCK_SIZE_INTERNAL); return encodeOut(mbeFrame, m_currentNbMbeBytes); } bool DVController::decode(short *audioFrame, const unsigned char *mbeFrame, DVRate rate, int gain) { if (!m_open) { return false; } if (rate != m_currentRate) { setRate(rate); m_currentRate = rate; } if (gain != m_currentGainOut) { setGain(m_currentGainIn, gain); m_currentGainOut = gain; } decodeIn(mbeFrame, m_currentNbMbeBits, m_currentNbMbeBytes); return decodeOut(audioFrame, MBE_AUDIO_BLOCK_SIZE_INTERNAL); } unsigned short DVController::getNbMbeBytes(DVRate mbeRate) { switch (mbeRate) { case DVRateNone: return 0; case DVRate3600x2400: return 9; break; case DVRate3600x2450: return 9; break; case DVRate7200x4400: return 18; break; case DVRate2450: return 7; break; case DVRate4400: return 11; break; default: return 0; } } unsigned char DVController::getNbMbeBits(DVRate mbeRate) { switch (mbeRate) { case DVRateNone: return 0; case DVRate3600x2400: return 72; break; case DVRate3600x2450: return 72; break; case DVRate7200x4400: return 144; break; case DVRate2450: return 49; break; case DVRate4400: return 88; break; default: return 0; } } bool DVController::setGain(signed char dBGainIn, signed char dBGainOut) { if (!m_open) { return false; } if (dBGainIn < -90) { dBGainIn = -90; } else if (dBGainIn > 90) { dBGainIn = 90; } if (dBGainOut < -90) { dBGainOut = -90; } else if (dBGainOut > 90) { dBGainOut = 90; } unsigned char buffer[DV3000_REQ_GAIN_LEN + 2]; ::memcpy(buffer, DV3000_REQ_GAIN, DV3000_REQ_GAIN_LEN); buffer[DV3000_REQ_GAIN_LEN] = dBGainIn; buffer[DV3000_REQ_GAIN_LEN+1] = dBGainOut; m_serial->write(buffer, DV3000_REQ_GAIN_LEN + 2); RESP_TYPE type = getResponse(buffer, DataController::BUFFER_LENGTH); if (type == RESP_ERROR) { fprintf(stderr, "DVController::setGain: serial device error\n"); return false; } else if (type == RESP_GAIN) { fprintf(stderr, "DVController::setGain: in: %d dB out: %d dB: OK\n", (int) dBGainIn, (int) dBGainOut); return true; } else { fprintf(stderr, "DVController::setGain: response mismatch\n"); return false; } } void DVController::encodeIn(const short* audio, unsigned int length) { (void) length; assert(audio != 0); assert(length == MBE_AUDIO_BLOCK_SIZE_INTERNAL); // TODO: optimization with fixed initialization of the audio header unsigned char buffer[DV3000_AUDIO_HEADER_LEN + MBE_AUDIO_BLOCK_BYTES_INTERNAL]; ::memcpy(buffer, DV3000_AUDIO_HEADER, DV3000_AUDIO_HEADER_LEN); uint8_t* q = (uint8_t*) (buffer + DV3000_AUDIO_HEADER_LEN); for (unsigned int i = 0; i < MBE_AUDIO_BLOCK_SIZE_INTERNAL; i++, q += 2U) { q[0U] = (audio[i] & 0xFF00) >> 8; q[1U] = (audio[i] & 0x00FF) >> 0; } m_serial->write(buffer, DV3000_AUDIO_HEADER_LEN + MBE_AUDIO_BLOCK_BYTES_INTERNAL); } bool DVController::encodeOut(unsigned char* ambe, unsigned int length) { assert(ambe != 0); assert(length == m_currentNbMbeBytes); unsigned char buffer[DataController::BUFFER_LENGTH]; RESP_TYPE type = getResponse(buffer, DataController::BUFFER_LENGTH); if (type != RESP_AMBE) { fprintf(stderr, "DVController::encodeOut: error\n"); return false; } ::memcpy(ambe, buffer + DV3000_AMBE_HEADER_LEN, length); return true; } void DVController::decodeIn(const unsigned char* ambe, unsigned char nbBits, unsigned short nbBytes) { assert(ambe != 0); assert(nbBytes == m_currentNbMbeBytes); unsigned short length = nbBytes + 2; unsigned char *lengthPtr = (unsigned char *) &length; unsigned char buffer[DV3000_AMBE_HEADER_LEN + MBE_FRAME_MAX_LENGTH_BYTES_INTERNAL]; ::memcpy(buffer, DV3000_AMBE_HEADER, DV3000_AMBE_HEADER_LEN); ::memcpy(buffer + DV3000_AMBE_HEADER_LEN, ambe, nbBytes); if (m_littleEndian) { ::memcpy(&buffer[1], &lengthPtr[1], 1); // set header length field with little endian byte order ::memcpy(&buffer[2], &lengthPtr[0], 1); // set header length field with little endian byte order } else { ::memcpy(&buffer[1], &lengthPtr[0], 1); // set header length field with big endian byte order ::memcpy(&buffer[2], &lengthPtr[1], 1); // set header length field with big endian byte order } ::memcpy(&buffer[5], &nbBits, 1); // set CHAND number of bits m_serial->write(buffer, DV3000_AMBE_HEADER_LEN + nbBytes); } bool DVController::decodeOut(short* audio, unsigned int length) { (void) length; assert(audio != 0); assert(length == MBE_AUDIO_BLOCK_SIZE_INTERNAL); unsigned char buffer[DataController::BUFFER_LENGTH]; RESP_TYPE type = getResponse(buffer, DataController::BUFFER_LENGTH); if (type != RESP_AUDIO) { fprintf(stderr, "DVController::decodeOut: error\n"); return false; } uint8_t* q = (uint8_t*) (buffer + DV3000_AUDIO_HEADER_LEN); for (unsigned int i = 0U; i < MBE_AUDIO_BLOCK_SIZE_INTERNAL; i++, q += 2U) { short word = (q[0] << 8) | (q[1U] << 0); audio[i] = word; } return true; } bool DVController::setRate(DVRate rate) { if (!m_open) { return false; } if (rate == DVRateNone) { return true; } const unsigned char *ratepStr; switch(rate) { case DVRateNone: return true; case DVRate3600x2400: ratepStr = DV3000_REQ_3600X2400_RATEP; m_currentNbMbeBits = 72; m_currentNbMbeBytes = 9; break; case DVRate3600x2450: ratepStr = DV3000_REQ_3600X2450_RATEP; m_currentNbMbeBits = 72; m_currentNbMbeBytes = 9; break; case DVRate7200x4400: ratepStr = DV3000_REQ_7200X4400_3_RATEP; // AMBE 3000 version m_currentNbMbeBits = 144; m_currentNbMbeBytes = 18; break; case DVRate2450: ratepStr = DV3000_REQ_2450_RATEP; m_currentNbMbeBits = 49; m_currentNbMbeBytes = 7; break; case DVRate4400: ratepStr = DV3000_REQ_4400_RATEP; m_currentNbMbeBits = 88; m_currentNbMbeBytes = 11; break; default: return true; } m_serial->write(ratepStr, DV3000_REQ_RATEP_LEN); unsigned char buffer[DataController::BUFFER_LENGTH]; RESP_TYPE type = getResponse(buffer, DataController::BUFFER_LENGTH); if (type == RESP_ERROR) { fprintf(stderr, "DVController::setRate: serial device error\n"); return false; } else if (type == RESP_RATEP) { fprintf(stderr, "DVController::setRate (%d): OK\n", (int) rate); return true; } else { fprintf(stderr, "DVController::setRate: response mismatch\n"); return false; } } DVController::RESP_TYPE DVController::getResponse(unsigned char* buffer, unsigned int length) { (void) length; assert(buffer != 0); assert(length >= DataController::BUFFER_LENGTH); if (!m_serial->initResponse()) { fprintf(stderr, "DVController::getResponse: cannot get response\n"); return RESP_ERROR; } bool found = false; int packetLength, offset; unsigned char packetType; for (int i = 0; i < 2000; i++) { int len1 = m_serial->read(buffer, 1U); if (len1 < 0) { fprintf(stderr, "DVController::getResponse: Error (start byte)\n"); return RESP_ERROR; } else if ((len1 == 1) && (buffer[0U] == DV3000_START_BYTE)) { found = true; break; } std::this_thread::sleep_for(std::chrono::microseconds(100)); } if (!found) { fprintf(stderr, "DVController::getResponse: Timeout (start byte)\n"); return RESP_ERROR; } packetLength = 3; offset = 0; found = false; for (int i = 0; i < 2000; i++) { int len1 = m_serial->read(&buffer[1 + offset], packetLength - offset); if (len1 < 0) { fprintf(stderr, "DVController::getResponse: Error (packet header at %d)\n", offset); return RESP_ERROR; } else if (offset + len1 == packetLength) { found = true; break; } else { offset += len1; } std::this_thread::sleep_for(std::chrono::microseconds(100)); } if (!found) { fprintf(stderr, "DVController::getResponse: Timeout (packet header)\n"); return RESP_ERROR; } packetLength = buffer[1] * 256 + buffer[2]; packetType = buffer[3]; offset = 0; found = false; for (int i = 0; i < 2000; i++) { int len1 = m_serial->read(&buffer[4 + offset], packetLength - offset); if (len1 < 0) { fprintf(stderr, "DVController::getResponse: Error (packet payload at %d)\n", offset); return RESP_ERROR; } else if (offset + len1 == packetLength) { found = true; break; } else { offset += len1; } std::this_thread::sleep_for(std::chrono::microseconds(100)); } if (!found) { fprintf(stderr, "DVController::getResponse: Timeout (packet payload)\n"); return RESP_ERROR; } //fprintf(stderr, "DVController::getResponse: packet type %02x\n", packetType); if (packetType == DV3000_TYPE_AUDIO) { return RESP_AUDIO; } else if (packetType == DV3000_TYPE_AMBE) { return RESP_AMBE; } else if (packetType == DV3000_TYPE_CONTROL) // check the field type buffer[4] { //fprintf(stderr, "DVController::getResponse: field type %02x\n", buffer[4]); if (buffer[4] == DV3000_CONTROL_PRODID) { return RESP_NAME; } else if (buffer[4] == DV3000_CONTROL_RATEP) { return RESP_RATEP; } else if (buffer[4] == DV3000_CONTROL_GAIN) { return RESP_GAIN; } else if (buffer[4] == DV3000_CONTROL_READY) { return RESP_UNKNOWN; } else { return RESP_UNKNOWN; } } else { return RESP_UNKNOWN; } } } // namespace SerialDV serialDV-1.1.4/dvcontroller.h000066400000000000000000000171751355366064600161450ustar00rootroot00000000000000/////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2016 Edouard Griffiths, F4EXB. // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation as version 3 of the License, or // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License V3 for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// #ifndef DVCONTROLLER_H_ #define DVCONTROLLER_H_ #include #include "serialdv_export.h" namespace SerialDV { class DataController; const unsigned int MBE_AUDIO_BLOCK_SIZE = 160U; const unsigned int MBE_AUDIO_BLOCK_BYTES = MBE_AUDIO_BLOCK_SIZE * 2U; const unsigned int MBE_FRAME_MAX_LENGTH_BYTES = 18U; const unsigned char DV3000_START_BYTE = 0x61U; const unsigned char DV3000_TYPE_CONTROL = 0x00U; const unsigned char DV3000_TYPE_AMBE = 0x01U; const unsigned char DV3000_TYPE_AUDIO = 0x02U; const unsigned char DV3000_CONTROL_RATEP = 0x0AU; const unsigned char DV3000_CONTROL_GAIN = 0x4BU; const unsigned char DV3000_CONTROL_PRODID = 0x30U; const unsigned char DV3000_CONTROL_READY = 0x39U; const unsigned char DV3000_REQ_PRODID[] = {DV3000_START_BYTE, 0x00U, 0x01U, DV3000_TYPE_CONTROL, DV3000_CONTROL_PRODID}; const unsigned int DV3000_REQ_PRODID_LEN = 5U; const unsigned char DV3000_REQ_3600X2400_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x01U, 0x30U, 0x07U, 0x63U, 0x40U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x48U}; const unsigned char DV3000_REQ_3600X2450_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x04U, 0x31U, 0x07U, 0x54U, 0x24U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x6FU, 0x48U}; const unsigned char DV3000_REQ_7200X4400_1_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x00U, 0x58U, 0x08U, 0x87U, 0x30U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x44U, 0x90U}; const unsigned char DV3000_REQ_7200X4400_2_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x02U, 0x58U, 0x07U, 0x65U, 0x00U, 0x09U, 0x1EU, 0x0CU, 0x41U, 0x27U, 0x73U, 0x90U}; const unsigned char DV3000_REQ_7200X4400_3_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x04U, 0x58U, 0x09U, 0x86U, 0x80U, 0x20U, 0x00U, 0x00U, 0x00U, 0x00U, 0x73U, 0x90U}; const unsigned char DV3000_REQ_2450_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x04U, 0x31U, 0x07U, 0x54U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x70U, 0x31U}; const unsigned char DV3000_REQ_4400_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x04U, 0x58U, 0x09U, 0x86U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x44U, 0x58U}; const unsigned int DV3000_REQ_RATEP_LEN = 17U; const unsigned char DV3000_REQ_GAIN[] = {DV3000_START_BYTE, 0x00U, 0x03U, DV3000_TYPE_CONTROL, DV3000_CONTROL_GAIN}; // followed by 1 byte input gain and 1 byte output gain const unsigned int DV3000_REQ_GAIN_LEN = 5U; const unsigned char DV3000_AUDIO_HEADER[] = {DV3000_START_BYTE, 0x01U, 0x42U, DV3000_TYPE_AUDIO, 0x00U, 0xA0U}; const unsigned char DV3000_AUDIO_HEADER_LEN = 6U; const unsigned char DV3000_AMBE_HEADER[] = {DV3000_START_BYTE, 0x00U, 0x0BU, DV3000_TYPE_AMBE, 0x01U, 0x48U}; const unsigned char DV3000_AMBE_HEADER_LEN = 6U; const unsigned int DV3000_HEADER_LEN = 4U; typedef enum { DVRateNone, DVRate3600x2400, //!< D-Star DVRate3600x2450, //!< DMR, dPMR, YSF V/D type 1 DVRate7200x4400, DVRate7100x4400, DVRate2400, DVRate2450, //!< YSF V/D type 2 (does not use FEC in AMBE codec) DVRate4400 } DVRate; class SERIALDV_API DVController { public: DVController(); ~DVController(); bool open(const std::string& device, bool halfSpeed=false); void close(); bool isOpen() const { return m_open; } /** Encoding process of one audio frame to one AMBE frame * Buffers are supposed to be allocated with the correct size. That is * - 320 bytes (160 short samples) for the audio frame. * - SerialDV::MBE_AUDIO_BLOCK_BYTES constant is the number of bytes (320) * - SerialDV::MBE_AUDIO_BLOCK_SIZE constant is the number of short samples (160) * - 9 or 18 bytes (72 or 144 bits) for the AMBE frame. * - SerialDV::VOICE_FRAME_MAX_LENGTH_BYTES constant is the maximum number of bytes (18) */ bool encode(const short *audioFrame, unsigned char *mbeFrame, DVRate rate, int gain = 0); /** Encoding process of one AMBE frame to one audio frame * Buffers are supposed to be allocated with the correct size. That is * - 320 bytes (160 short samples) for the audio frame. * - SerialDV::MBE_AUDIO_BLOCK_BYTES constant is the number of bytes (320) * - SerialDV::MBE_AUDIO_BLOCK_SIZE constant is the number of short samples (160) * - 9 or 18 bytes (72 or 144 bits) for the AMBE frame. * - SerialDV::VOICE_FRAME_MAX_LENGTH_BYTES constant is the maximum number of bytes (18) */ bool decode(short *audioFrame, const unsigned char *mbeFrame, DVRate rate, int gain = 0); /** Returns the number of bytes in a MBE frame given the MBE rate */ static unsigned short getNbMbeBytes(DVRate mbeRate); /** Returns the number of bits in a MBE frame given the MBE rate */ static unsigned char getNbMbeBits(DVRate mbeRate); private: enum RESP_TYPE { RESP_NONE, RESP_ERROR, RESP_RATEP, RESP_NAME, RESP_AMBE, RESP_AUDIO, RESP_GAIN, RESP_UNKNOWN }; DataController *m_serial; bool m_open; //!< True if the serial DV device has been correctly opened DVRate m_currentRate; int m_currentGainIn; int m_currentGainOut; unsigned char m_currentNbMbeBits; unsigned short m_currentNbMbeBytes; bool m_littleEndian; bool isLittleEndian() { short int number = 0x1; char *numPtr = (char*)&number; return (numPtr[0] == 1); } void encodeIn(const short* audio, unsigned int length); bool encodeOut(unsigned char* ambe, unsigned int length); void decodeIn(const unsigned char* ambe, unsigned char nbBits, unsigned short nbBytes); bool decodeOut(short* audio, unsigned int length); bool setRate(DVRate rate); /** Set input and output gain in dB (-90 to +90 dB) * If the input gain is < 0 dB then the input speech samples are attenuated prior to encoding. * If the input gain is > 0 dB then the input speech samples are amplified prior to encoding. * If the output gain is < 0 dB then the output speech samples are attenuated after decoding. * If the output gain is > 0 dB then the output speech samples are amplified after decoding. */ bool setGain(signed char dBGainIn, signed char dBGainOut); RESP_TYPE getResponse(unsigned char* buffer, unsigned int length); }; } // namespace SerialDV #endif /* DVCONTROLLER_H_ */ serialDV-1.1.4/dvtest.cpp000066400000000000000000000200041355366064600152550ustar00rootroot00000000000000/////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2016 Edouard Griffiths, F4EXB. // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation as version 3 of the License, or // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License V3 for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// #include #include #include #include #include #include #include #include #include #include #include #include #include "dvcontroller.h" int exitflag; static void usage (); static void sigfun (int sig); void usage() { fprintf(stderr, "\n"); fprintf(stderr, "Usage:\n"); fprintf(stderr, " dvtest [options] Encode/decode test loop\n"); fprintf(stderr, " dvtest -h Show help\n"); fprintf(stderr, "\n"); fprintf(stderr, "Input/Output options:\n"); fprintf(stderr, " -i Audio input device or file with 8 kS/s S16LE audio samples (default is /dev/audio, - for piped stdin)\n"); fprintf(stderr, " -o Audio output device or file with 8 kS/s S16LE audio samples (default is /dev/audio, - for stdout)\n"); fprintf(stderr, " -D Use DVSI AMBE3000 based device for AMBE decoding (e.g. ThumbDV)\n"); fprintf(stderr, " Device name is the corresponding TTY USB device e.g /dev/ttyUSB0\n"); fprintf(stderr, " Or AMBE server IP and port e.g 172.18.0.2:2345\n"); fprintf(stderr, "Decoder options:\n"); fprintf(stderr, " -f Format index\n"); fprintf(stderr, " 0: None (does nothing - default)\n"); fprintf(stderr, " 1: 3600x2400 (e.g. D-Star)\n"); fprintf(stderr, " 2: 3600x2450 (e.g. DMR)\n"); fprintf(stderr, " 3: 7200x4400\n"); fprintf(stderr, " 4: 7100x4400\n"); fprintf(stderr, " 5: 2400 no FEC\n"); fprintf(stderr, " 6: 2450 no FEC\n"); fprintf(stderr, " 7: 4400 no FEC\n"); fprintf(stderr, " -g linear gain applied to output (decoder - default 1.0)\n"); fprintf(stderr, "\n"); } void sigfun(int sig __attribute__((unused))) { exitflag = 1; signal(SIGINT, SIG_DFL); } int main(int argc, char **argv) { int c; extern char *optarg; extern int optind __attribute__((unused)); extern int opterr __attribute__((unused)); extern int optopt __attribute__((unused)); char in_file[1024]; int in_file_fd = -1; char out_file[1024]; int out_file_fd = -1; std::string dvSerialDevice; SerialDV::DVRate dvRate = SerialDV::DVRateNone; float gainLin = 1.0f; // Catch Ctrl-C and SIGTERM struct sigaction sigact; sigact.sa_handler = sigfun; sigemptyset(&sigact.sa_mask); sigact.sa_flags = SA_RESETHAND; while ((c = getopt(argc, argv, "hi:o:f:D:g:")) != -1) { opterr = 0; switch (c) { case 'h': usage(); exit(0); case 'i': strncpy(in_file, (const char *) optarg, 1023); in_file[1023] = '\0'; break; case 'o': strncpy(out_file, (const char *) optarg, 1023); out_file[1023] = '\0'; break; case 'D': dvSerialDevice = std::string(optarg); break; case 'f': int formatNum; sscanf(optarg, "%d", &formatNum); if ((formatNum >= 0) && (formatNum <= 7)) { dvRate = (SerialDV::DVRate) formatNum; } break; case 'g': sscanf(optarg, "%f", &gainLin); if (gainLin < 0) { gainLin = 0.0f; } break; default: usage(); exit(0); } } if (strncmp(in_file, (const char *) "-", 1) == 0) { in_file_fd = STDIN_FILENO; } else { in_file_fd = open(in_file, O_RDONLY); } if (in_file_fd > -1) { fprintf(stderr, "Opened %s for input.\n", in_file); } else { fprintf(stderr, "Cannot open %s for input. Aborting\n", in_file); return 0; } if (strncmp(out_file, (const char *) "-", 1) == 0) { out_file_fd = STDOUT_FILENO; } else { out_file_fd = open(out_file, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); } if (out_file_fd > -1) { fprintf(stderr, "Opened %s for output.\n", out_file); } else { fprintf(stderr, "Cannot open %s for output %s. Aborting\n", out_file, strerror(errno)); return 0; } SerialDV::DVController dvController; short dvAudioSamples[SerialDV::MBE_AUDIO_BLOCK_SIZE]; unsigned char dvMbeSamples[SerialDV::MBE_FRAME_MAX_LENGTH_BYTES]; if (!dvSerialDevice.empty()) { if (dvController.open(dvSerialDevice)) { fprintf(stderr, "Opened DV serial device at %s\n", dvSerialDevice.c_str()); } else { fprintf(stderr, "Failed to open DV serial device at %s. Aborting\n", dvSerialDevice.c_str()); return 0; } } else { fprintf(stderr, "No DV serial device specified. Aborting\n"); return 0; } int gain = (int) (log10f(gainLin)*10.0f); fprintf(stderr, "Start of process\n"); struct timeval tvstart, tvend; gettimeofday(&tvstart, 0); while (exitflag == 0) { int result = read(in_file_fd, (void *) dvAudioSamples, SerialDV::MBE_AUDIO_BLOCK_BYTES); if (result == 0) { fprintf(stderr, "No more input. Terminating\n"); break; } else if (result != SerialDV::MBE_AUDIO_BLOCK_BYTES) { fprintf(stderr, "Incomplete audio frame. Terminating\n"); break; } if (!dvController.encode(dvAudioSamples, dvMbeSamples, dvRate)) { fprintf(stderr, "Encoding failure. Terminating\n"); break; } if (!dvController.decode(dvAudioSamples, dvMbeSamples, dvRate, gain)) { fprintf(stderr, "Decoding failure. Terminating\n"); break; } result = write(out_file_fd, (const void *) dvAudioSamples, SerialDV::MBE_AUDIO_BLOCK_BYTES); if (result == -1) { fprintf(stderr, "Error writing to output\n"); } else if (result != SerialDV::MBE_AUDIO_BLOCK_BYTES) { fprintf(stderr, "Written %d out of %d audio samples\n", result/2, SerialDV::MBE_AUDIO_BLOCK_SIZE); } } gettimeofday(&tvend, 0); fprintf(stderr, "End of process\n"); struct timeval tvdiff; timersub(&tvend, &tvstart, &tvdiff); uint64_t ms = tvdiff.tv_sec*1000000 + tvdiff.tv_usec; fprintf(stderr, "Done in %f seconds\n", ms / 1e6); dvController.close(); if ((out_file_fd > -1) && (out_file_fd != STDOUT_FILENO)) { close(out_file_fd); } if ((in_file_fd > -1) && (in_file_fd != STDIN_FILENO)) { close(in_file_fd); } return 0; } serialDV-1.1.4/samples/000077500000000000000000000000001355366064600147105ustar00rootroot00000000000000serialDV-1.1.4/samples/forig.raw000066400000000000000000000612101355366064600165310ustar00rootroot00000000000000     !#!             "##') ,./*+($%#   ;+3@"qh/-4-P5 Y T.GT6AZ Edwzcbk)/Opx,?H 9+'l#D x- a])gY!3e6p{b A _G9;:"eBSdve b7- +^6F #CDo(  2/qQ*z&o/Naw/Qh" %CE=2re ޞ PF(gL Y"tD 4 K 7 Hg@8n !C6Vϥ8 0} MI}߾"iU,n!SI9* &)6  kIj-)GB`cq8M 2)7Op*4b{8%  ~$>) e ` 5c!; qJ%M"%gLX~d{-8$tM^k   OPndCrt.%[ZQ_mݦEq &7L'Qf[P] G*a&+Sv5bG.(6%QWY9 j -w}~ K0!.YZW(z^ȗ%R6c0|+H ff 2;E<#[Y+MųFy+)]  d 9do\wwyu*a@X*^*K (%$pvl 3 i_OAOKp_;[H}Anz/4 lL t6]voG`T .IO7`ʻδ yN $C݅ u |uiue=J3<'O\?mWƕ p)hGtWFYR@Tr>/ 6NiC} ǭ8 U )% {egzJgUErL88JbăwP  l~?debk4=n 5BI{@߀.r :N 9 "auQXgf8?.Rr k  y Blvv khYw#n77&#W= "oy^ D* L'1z ( 72h.  \ ; %"x YO $~Aq,~/ ۉݏ  B Q1 1 lfS*%'#w*#/ & Y >3KE M:|j S%#$hg!W7 t $Uy6m6V&9 ( Ng)WBnsE^t"U 4nt"'&s4#J3\}6fP2Tl`+v(/5 MW( vS>)N{g|?#XWy})GOs%MtxL~ tJaGjCLG<^~refA^Yfvq~<am~tYG?:6% (=R]fimqlxnkc\]SVMB5*  '>D>;94$Lk^C$Xe" z7vW \O$:C>){efheZ82axz N<ec/20, 4Rbj}cJ3! &&(( #%  '%%!    !!      (E6PKvYp5eDUL!=_dz[n&d^q4?#KcHmuw .\}ql!Tc  U[j!sL?;\R" ^+e782`xoGK;9_Yx,B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t%L{/tbu"yu8n HOy$CE$2_ye;l5z?HimDFu\=Ctl?s:K.(Htpco|WG.;wo d|&} ?Cs;rESmyt>s L_7}h 2N It! PlT3u6x7|b[:Fb>cL0F+k' 55R/?=/~jtE0xRof2&Ho>4r/.bVPo^jD~>QY;1o Hgi[HpjSD[ >IiTNU&B,({Oy<GcLQ+#e.hQe;r2sd~Z&^k\el9uCj;;`vBb5bg;+~VsDp0Pa*Qs9oEu'B}si^>$%'< ("  & (</1  %+##      $9E>&7\hBr:.7\72{_B l18 ;=4UnHTE3Ul_zZz"E"PbVq{TlM\('99`^VK)0p7w"`Z+<z;Y?y 0KPl%Jg;X5< XS>jljM^a UgAZ_D%W@?i cu 4 FI=jo%dp3u2i!ANqq1$`8 Xh(Bc E]oj-,:yr3 4Hla:&6Xm =;Eu:> ? R~$635,  Y\*F>)] + TA `ML.oU1 B* \ 3 3y+N 6>]=c_B=7nz}`T z.&A  8v^#ky75L7 Cq DI%gGfgO 28 YU ~A_-T$qv W lGXW3c2T@SZ"  z0$Feb N *2q ^z@ $S ,geJ7T s,!~6g)]7$$U _ nE  {F '?)S >4-j$|$351w {)=CS R!oy?$* D n x v^exuU x!"sv '3p d g 0 )l9\ao3*Q-$2tV = g - 3/3grk]FV0!)l"_Tth h  ?< Y>Wz>D[8 _ nmLCN F Qr< (O-=64"z=-Q&# 7 f !F$}kF=N\H$Z +g$Md4 0 f _N?-_g> 5+C@5 W F/ . k?X o e {u0]xR}E#!C]CHOvz1 tUpN 9 H!H&1!#.X o+/ 1. ?RQy( |7ss;!N*''Z<" O" '-5m /BA7"4ed*Wol DE\Ue) a ^'$   <YA XH!5\-za'P^kWRf 8^YX $h e  j:Ld!X=):Z}Q-7"YLVaKX2EFRE?I8%)           "$176:BDHKEJMLCEB@?<=+(    &*048BHPST]\T\ZTNB=>;41)'    !$()))))+',+'%$#!"            D;)."*#:>?9;7;COKDD<;;95,00/7<?DMSU\^]UVb`UUWVVUTQOGCEDIMPOSMIJLLKOOIGJHEGLIEA?;:91+)%%#%0*#'" serialDV-1.1.4/samples/hts1a.raw000066400000000000000000001356001355366064600164500ustar00rootroot00000000000000                      !plP.@L.+<' ], }Cd (1 3J@3:'SvCwm1}B+.MJv? 8Zwt*m;( +Nyp a@ .xMoY~#Ds5(+5hwFq"{"~9=) j Oq (SZ  hr md `n8{*&*lhpsJr[d. | h@P&x zm - V /ix J{ J; SIhs%xz%TqulWI ' _\Q\eu #  [Hp 2@ ]wUizbD q >v.WhZ!tYe [   9XuR7 b6 gD ( q2nYxo9 iV aH q(=.DJ<6$c T~$ &,jGz28\ P|MM]Uza?(+n@  L@5$9SHIs[tW + 8RlR'"bNjW@){o>^Trl"'WX?ham{` :ltHh/#PRK h3#kBWja7 Nb%5Q%##*x8C g\4uBH&6\~fOPA x0@%?`,R=YFt rvfHy8;] 5?j8.8( p VZyo4hi ?C0 w_vG op/  2$HxAwH]k+@'qv*VJzk8{DZ?? q/_Tj 25sjU wA Aػ۪ :h9# O"5 p&a Ml .B|*` "E`  [^f5r@j"o 1!Cp,>F`0"/1\ܝT~{Cy%>!L 'k P B#   //HtYS LxJ}$F,'Rj,6=!|&AN xZ0_+&FUz g*Em0\K]h I_Owz!6E-#P/&Ƣ3BOڱF$"t(^'v9C NVZ(lJZhI;G-/Dc \ >9~ƞN ,#  t!(/}XfJ01]"wi g3C=mSaoMB/~,,-dž^1%V:&1+~2c  `ߞ_i%I! _='  b26_(^$6//ا@ ˻q I0&,!/eqQ8m ! S Fmi0w :2{%"ߪ'Q2D43L Lhst'&YFل<=8#Y:&vmt| ^ } 6ԥ&9?P.)vV{A)\""h!a|R4E] X %xH<$#9rk G5&3f % u 9Dۓp Mf$4ic&PuB  bl-T>S, Y r9X" *p, 3Jn YQm5x%+?V~# S vYu    HYQzZ? K im5Ot"4VYZRtܶ  1e{'  1tvC-H O " x =)hS p+% T /6M *8bmNWdM_ "C wP F IODq]V $ d*Ht6~Bu)4Z,,9"$"0(/9)a g1=Q |" X] 6 rsO  |9Of\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2&b|0 (+<-~lV{)z&4R%F^;$XvJb{A}x2WmCB98yf22t~_FpIBK$ /*[6-aMn{t[92*ky61. F#b~2K yb)>Ldp$,hm,vjpUo"UX }A>s0[Jy</A5F W\_ mHN.w*7UA*D:%D$$J [F. .u'"-Zzcm-J0Fn ojiI)<[m,^,s*G#C*>bT6 2:jLdEEsC=+s|:`{NZIYN[jeLR|gIp%$grv0 Dql@W"; k("b5 {3 X<^'wUQuW M4sD7 ]Z*FD>RBboa[ 20[P .%V/6GC2C6/T}'  W9)>i"WU[, 15  _fqzMf+!0 dI<B/}<B'ao vB[ fM2 *J "Z?6!' !                                                               serialDV-1.1.4/samples/morig.raw000066400000000000000000000764701355366064600165560ustar00rootroot00000000000000                   !%$%.-/...3-')   (;E[mzprrP*eO:  3e.N<W,(^$^q0P0c(1J0ou2neKF5k0Nb(94b' 6,;WM J`9T/fYws],wV }xaK1z1m ddO G` :[Q 9O F  ~ ZS=ka!y Aq RZc $ Z w  T:hG<YA _+9_LKh #"%,DEs[HN A% d>qMtX W: :"4r a8#o$ lHN z( DJm 7lw" -' P[u>YE'  NA4- x[z R$8 5H*Z J x7,}sB | vM! Gd[^5N_[C,Ms6| ~ u6c~] e  + m`Z%@W},yq&cx +- A )O6p~7l M&$<}!  M_Z v+o4N%zE#82{ L 6Xbj h$(-rKk\hL~g %B<W'tQ! (v{D޵ l  'ph {x9$v+ LhD a-9cyO/d#b  Lfk1l  , r >.575Q&QbsmW>,     \b SX/]lZ1 /o[k*>1+!* $7-)%/di~5&   \G8P3%#"$-/#. !%3*J6" % $       )   '* & &, '!0  #                      &11")9& .'*-*   & &31+$'3'  * *#B3<?.,'"  6.& 4)$ !7"(! 32L&! ,-+'' S$Q >uBI? 36x =@m;IoJ9AK CJ7f_=UjQ_ClhT3;Euw$?N`? ! . vD>.D8}4_RT5  xm0@wvhDKq*A E6B{l]2Ww "ZNO5YO {z] vB~>, }\p:U _ q'p)Ck݇ R  1dkw w q% ` yjZ~ ]&O(I\ W A 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;-&"+! hgq,w'+ Es$R7oY'+=pdIFKP>fdon0B8r)5q9@6?#Y$, &76DC9b;/TUMW060$ J&5.U^VLym= .*a722zqD& 63.3<0i wH&Byy(nVy9*y()C*y*kG7*)VZ EJ"j,F,CUHX()t! V7-J^/P6\ U,0>tKD#fLf v* F eJt+WvQ iCuQ9=5QQ9]NY;fp?w-}C $tuIBbp 6s**qs#v6n@upl:M`9j5]S&"B2!8>Q0*A f)/g \51')GN 7*q9z2F>-3a@G<~]T!/p.1.Q LUmG+ow #IaJ.:VJP+!MnAot nqACO~)`.0! <\>%MO+dqJ#?!>f5zi`7+J3o`GB+Jv0{ %} ( F[Se=FETdn8 ].,#'<,iNfj@^9jB# $Fc/#}N7 0!B^? ";M~`xL/x|LA=b9FZO=:mR9 9f39%()   (  21$   ')-0/0  '!/.7>@)+PS,  -0& $%  #*"%&#)C9 1+  &0       :;  '(  ! +!  " **    " "% %"  ! $& serialDV-1.1.4/samples/vk5qi.raw000066400000000000000000006472141355366064600165000ustar00rootroot00000000000000aamcO!fV#cIz!sLUN@6K[JEhT WXYzo)Ywch{Ik`$gMP<aE:_ |.ZJf#{\KYdp[]iL>_ wv:YFfXcAPQPor?cKpQO2Hm"eY76Hg^KMxX@BB7-Q -T\GMxQ3$|\IID9p@ 8cGl L|2'vzT1l;t:5^w;o+Smh9nPre~sb%3"uqa{xG--@H5nC '(bbfiyi|2)!9cF!I6 $. !$$ 5 "!Aq\A@$rg(m/T[Nosrz  ~M}i_jy{avxOc\@c[M<fM)Fc%|h`{<I wRh}m{]IQ1 >7B(?EY GDG45::/dTKV~ b/8q#IJPK jvsQjy.9) ,-6 0kaA/bk%~'DilrYWjpZZCgSfYS9E03S>IPZ4<:(.Y:Y5""$r;)f}c "w"<K217K$ /N>J:3:h76IGWU^0)AvJ/$:8GTBYnkZf%CbQO`;^u'2JH0() 4< +aMQrr*Ah\M\e#(Wf6\I. |}oaf]g~~qrvQej" +ED*$*F~ gnvLxdVnfUgsA )Rf9K47f*(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~WQW[}(l4E7NlDv4*$7x$m2C c7 D@mM } Mu:=zC/[^"bRBgJ 7ޙTG7^LI0E 6 G)HxwdeNCix1$Dh s yK3_ $E Qb (] \ G ]H  MEmYN%W}o ?g .^ !& ]qK89q % Y3a f s!ai%c_;< 5xqe6Dc Qh Q %DYn(  zJ3 V z ;)AGn zwnzmL Q+/mQcW3e yzP[ >P 6 B@1$[7xs> 9 G'` ,U%#V  FSX y R[[tCG?M = :G T@7 \u '1 \ Drk  YZsh06H_`l(  ??2O O03 t Mo2VR" s 2 6wU{9K j W x{ cTC1sG ":A3# ];r (4 ndyw |s FL @ nFloN'- I$Qn8!nx ; ?gC N?_K?% Q |_)C(+Lg G@qFHO)\Z H,+3 q13E$ e >([1 $0:8ZrYj vdU32xp ]|",B>!V l): fSncB|y}\>s1/ bjf}%U aX J Ly_ R I) ?nn0*|S,liAsCm 1ly Y`T f9~ H s L -l g<`s(C 1JBF^J[ Qm.f[TI4 r}!!wQ`p'(- Ao0 X+bJ`8(Ey@ Hw8)W 4?eq H J8y/  >;~dWmT c PJ  a qas@Y M E v%EI| 0 7+ vV1j R_b `oL9/w#U< 1nZD ~ / - =}Q JN;}G [ =B$^" @ tbg<  A MN#k%n}^+/('Wcuvu hu0uoY qf + ~ !w.q@ ` njba]p*yS3e2 3#)F | st[1  XW4  k  cxS(N:@0X B&t `6  e:x) j _kqG'% c Hz!}U"cW P @J:C4Kg { @jz$NpK%)znlP >c6B.J: [ kO\ N, R~'"!cue+^ <[+ Lv;9 "\q7) $ | !k]6: q X`^UVy|oI  7* B!=t|9 vTl[- h 5 b FUu VQ}pP Yr  "> I('@5> *=d :*. ^W3k )Txekm N*!"r#His {0 O]*F~_N6`WSB|UoJcH"!EK#4/2V4lbb%.  22C9| PE}:p$ab4lu * $ ,j^3\9CqLhv= 6 X  L o1+"&S 9r"Y/ >w =tzn 7z @e I:0b2\ + E;:n ( (%HWm[ M+&f=C<'D>ay=+`Px Pud4 | D%   IQf~. Q =M }Hy ) xY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k} +1<Z9VlHF -&98;!+y{wg@ @Q6,&-G*L:$ *QIR_lc>83yiJl(0rHN_F T !4  9- :v [  xN2Px*%mBV2# BE_*drmrB RZ2dgX|.O%.@9dngEgNZX{HI^ [Z[`k N\+Zt BiHWlAf`:EzabD  I 5rd&s u40Z}hos~/]{  hjY ;A^NeYWGT~2W t _i`< +0 }n48J ^ TM ; WF}<#X1 f )Jw|. #j]OG>J! o h6n+NA&e 1CIW8<Q   e6=E:co}K < V7x!g@|;s[ <s |H3BW L"/7 *>z{n 7jaOIn%@9  r2CGjJ9YAj ,LMQ `$@x-(<L 75 F ,{z-RQ`WeM]dJQk1L#c RJ)d < %olk DO; E\o?,(qqLW-i48Ca? * k:j;okgLt ?@ x&$2 { Ml& uGb f(~$Hq=Syb nz*m^7>X )+q.du Pc d]mmN =<~ B -IVnkLlwm=})ic\uQO}Q')(m _nd! N {[,2lO)`"k) u: J&UFe$xb -  |SC6" - *X@M_ \ ISF5+  H%'gAIH kZ ~"D_nQ{ ||  d&T}'. I)K=}' g26cg/'I2XU}/v!5  h+(  # c8<H##UT&ws skq(q~Mg] C " N 6/_qu "eBa| r H.O ,q  JuqTZ\ \+  Ur  Jj$#a3X/pj RW-s+*{"B *j K /U f%w3@a:QL8~VuprHH7DCyk 'aQS DLJGP `v? ~oW'sT%6BbTw6wrp{GRG!! S 3  Kk  /d`+ ; 5`XjY< L>:n}ePcm=kHwU!i B rQ j0 W0O2ee]UZ' "xSRx j@v-U_%SBj<   \  |1x  0(+=XH Y-e"09I#YoTw[f?G* E ( jP Ld^:l 8"cOK1],#fqi/}k40=j7IaE Z i L K</40)Ea_B NoxNgoKa0u% !  B3z\;W  j)B8Xuu ijf9#"eu GD_ ? ? / .|(\O 1 .goB </D8`JEAuV{;j1{r#ze [3~TP&4S w,8sx` <^P?$cQB a7 { )mRI#8p#3BM{XBN, !G,2 ?OC . @#w @~*,]Nc SE]Xg>ct1pF`9"X,L^r{ d }J0;F<C']HEr';/ au".^"c{m !>e<_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[itn!&n|<<;FQ.) 5.0,wo^TW\>fjI'3?oS}^&Qgr( D=[jvC 6;" I( [R"U^jjlawjJP$.AEW7UfCcY]mA]hF>F_D%7fL6#*O">x{ihC9+7etcbKm *r\=L^F(Q]HRSI>I.5MPOE'Z1D( 9"&.qo~wc97R>4 $!}d{)#qomv}sZW_K-)RVW^J8620DP@QrbXc_|#$&*Q>'75"7%'FXgEd=/=//.C>  .M?C*6|I6?=881.%" W+%DjNs{h<; oqiV^eN599L Gne2SOdgVE7QA )UYz|[V -:;)0c2#'AGMDRl}mzq|(}`"Gl'aE)[4wo<N,0}h.VO LzVE=1 uYuYP34O>KN/545PZQO0ev4._~lda|`tjWVLYSULTcrxk~k|hu{ON/%.'H6;(<[WZA3"*.0% -J?serialDV-1.1.4/serialdatacontroller.cpp000066400000000000000000000340121355366064600201650ustar00rootroot00000000000000/////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2016 Edouard Griffiths, F4EXB. // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation as version 3 of the License, or // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License V3 for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// #include "serialdatacontroller.h" #include #include #if defined(__WINDOWS__) #include #include #include #include #else #include #include #include #include #include #include #include #include #endif namespace SerialDV { #if defined(__WINDOWS__) SerialDataController::SerialDataController() : m_handle(INVALID_HANDLE_VALUE), m_readOverlapped(), m_writeOverlapped(), m_readBuffer(NULL), m_readLength(0U), m_readPending(false) { m_readBuffer = new unsigned char[BUFFER_LENGTH]; } SerialDataController::~SerialDataController() { delete[] m_readBuffer; } bool SerialDataController::open(const std::string& device, SERIAL_SPEED speed) { assert(m_handle == INVALID_HANDLE_VALUE); assert(!device.empty()); m_device = device; m_speed = speed; DWORD errCode; m_handle = ::CreateFile(m_device.c_str(), GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL); if (m_handle == INVALID_HANDLE_VALUE) { fprintf(stderr, "Cannot open device - %s, err=%04lx\n", m_device.c_str(), ::GetLastError()); return false; } DCB dcb; if (::GetCommState(m_handle, &dcb) == 0) { fprintf(stderr, "Cannot get the attributes for %s, err=%04lx\n", m_device.c_str(), ::GetLastError()); ::ClearCommError(m_handle, &errCode, NULL); ::CloseHandle(m_handle); return false; } dcb.BaudRate = DWORD(m_speed); dcb.ByteSize = 8; dcb.Parity = NOPARITY; dcb.fParity = FALSE; dcb.StopBits = ONESTOPBIT; dcb.fInX = FALSE; dcb.fOutX = FALSE; dcb.fOutxCtsFlow = FALSE; dcb.fOutxDsrFlow = FALSE; dcb.fDtrControl = DTR_CONTROL_DISABLE; dcb.fRtsControl = RTS_CONTROL_DISABLE; if (::SetCommState(m_handle, &dcb) == 0) { fprintf(stderr, "Cannot set the attributes for %s, err=%04lx\n", m_device.c_str(), ::GetLastError()); ::ClearCommError(m_handle, &errCode, NULL); ::CloseHandle(m_handle); return false; } COMMTIMEOUTS timeouts; if (!::GetCommTimeouts(m_handle, &timeouts)) { fprintf(stderr, "Cannot get the timeouts for %s, err=%04lx\n", m_device.c_str(), ::GetLastError()); ::ClearCommError(m_handle, &errCode, NULL); ::CloseHandle(m_handle); return false; } timeouts.ReadIntervalTimeout = MAXDWORD; timeouts.ReadTotalTimeoutMultiplier = 0UL; timeouts.ReadTotalTimeoutConstant = 0UL; if (!::SetCommTimeouts(m_handle, &timeouts)) { fprintf(stderr, "Cannot set the timeouts for %s, err=%04lx\n", m_device.c_str(), ::GetLastError()); ::ClearCommError(m_handle, &errCode, NULL); ::CloseHandle(m_handle); return false; } if (::EscapeCommFunction(m_handle, CLRDTR) == 0) { fprintf(stderr, "Cannot clear DTR for %s, err=%04lx\n", m_device.c_str(), ::GetLastError()); ::ClearCommError(m_handle, &errCode, NULL); ::CloseHandle(m_handle); return false; } if (::EscapeCommFunction(m_handle, CLRRTS) == 0) { fprintf(stderr, "Cannot clear RTS for %s, err=%04lx\n", m_device.c_str(), ::GetLastError()); ::ClearCommError(m_handle, &errCode, NULL); ::CloseHandle(m_handle); return false; } ::ClearCommError(m_handle, &errCode, NULL); ::memset(&m_readOverlapped, 0x00U, sizeof(OVERLAPPED)); ::memset(&m_writeOverlapped, 0x00U, sizeof(OVERLAPPED)); m_readOverlapped.hEvent = ::CreateEvent(NULL, TRUE, FALSE, NULL); m_writeOverlapped.hEvent = ::CreateEvent(NULL, TRUE, FALSE, NULL); m_readLength = 0U; m_readPending = false; ::memset(m_readBuffer, 0x00U, BUFFER_LENGTH); return true; } int SerialDataController::read(unsigned char* buffer, unsigned int length) { assert(m_handle != INVALID_HANDLE_VALUE); assert(buffer != NULL); unsigned int ptr = 0U; while (ptr < length) { int ret = readNonblock(buffer + ptr, length - ptr); if (ret < 0) { return ret; } else if (ret == 0) { if (ptr == 0U) return 0; } else { ptr += ret; } } return int(length); } int SerialDataController::readNonblock(unsigned char* buffer, unsigned int length) { assert(m_handle != INVALID_HANDLE_VALUE); assert(buffer != NULL); if (length > BUFFER_LENGTH) length = BUFFER_LENGTH; if (m_readPending && length != m_readLength) { ::CancelIo(m_handle); m_readPending = false; } m_readLength = length; if (length == 0U) return 0; if (!m_readPending) { DWORD bytes = 0UL; BOOL res = ::ReadFile(m_handle, m_readBuffer, m_readLength, &bytes, &m_readOverlapped); if (res) { ::memcpy(buffer, m_readBuffer, bytes); return int(bytes); } DWORD error = ::GetLastError(); if (error != ERROR_IO_PENDING) { fprintf(stderr, "Error from ReadFile: %04lx\n", error); return -1; } m_readPending = true; } BOOL res = HasOverlappedIoCompleted(&m_readOverlapped); if (!res) return 0; DWORD bytes = 0UL; res = ::GetOverlappedResult(m_handle, &m_readOverlapped, &bytes, TRUE); if (!res) { fprintf(stderr, "Error from GetOverlappedResult (ReadFile): %04lx\n", ::GetLastError()); return -1; } ::memcpy(buffer, m_readBuffer, bytes); m_readPending = false; return int(bytes); } int SerialDataController::write(const unsigned char* buffer, unsigned int length) { assert(m_handle != INVALID_HANDLE_VALUE); assert(buffer != NULL); if (length == 0U) return 0; unsigned int ptr = 0U; while (ptr < length) { DWORD bytes = 0UL; BOOL res = ::WriteFile(m_handle, buffer + ptr, length - ptr, &bytes, &m_writeOverlapped); if (!res) { DWORD error = ::GetLastError(); if (error != ERROR_IO_PENDING) { fprintf(stderr, "Error from WriteFile: %04lx\n", error); return -1; } res = ::GetOverlappedResult(m_handle, &m_writeOverlapped, &bytes, TRUE); if (!res) { fprintf(stderr, "Error from GetOverlappedResult (WriteFile): %04lx\n", ::GetLastError()); return -1; } } ptr += bytes; } return int(length); } void SerialDataController::closeIt() { assert(m_handle != INVALID_HANDLE_VALUE); ::CloseHandle(m_handle); m_handle = INVALID_HANDLE_VALUE; ::CloseHandle(m_readOverlapped.hEvent); ::CloseHandle(m_writeOverlapped.hEvent); } #else SerialDataController::SerialDataController() : m_speed(SERIAL_NONE), m_fd(-1) { } SerialDataController::~SerialDataController() { } bool SerialDataController::open(const std::string& device, SERIAL_SPEED speed) { assert(m_fd == -1); assert(!device.empty()); m_device = device; m_speed = speed; m_fd = ::open(m_device.c_str(), O_RDWR | O_NOCTTY | O_NDELAY, 0); if (m_fd < 0) { fprintf(stderr, "SerialDataController::open: Cannot open device - %s", m_device.c_str()); return false; } if (::isatty(m_fd) == 0) { fprintf(stderr, "SerialDataController::open: %s is not a TTY device", m_device.c_str()); ::close(m_fd); return false; } // This is an attempt to fix a bug introduced in the FTDI driver in kernel 4.4.52 // However this works only if you execute as root // You will have to stick to an older kernel until a fix is found or run as root // This bug introduces too much latency that prevents packets to flow on time // A more persistent way to do this is to execute once per /dev/ttyUSBx lifetime: // echo 1 | sudo tee /sys/bus/usb-serial/devices/ttyUSBx/latency_timer // Of course replace "x" by your ttyUSB device number struct serial_struct serial; if (::ioctl(m_fd, TIOCGSERIAL, &serial) < 0) { fprintf(stderr, "SerialDataController::open: ioctl: Cannot get serial_struct\n"); } serial.flags |= ASYNC_LOW_LATENCY; if (::ioctl(m_fd, TIOCSSERIAL, &serial) < 0) { fprintf(stderr, "SerialDataController::open: ioctl: Cannot set ASYNC_LOW_LATENCY\n"); return false; } // Set "terminal" characteristics termios termios; if (::tcgetattr(m_fd, &termios) < 0) { fprintf(stderr, "SerialDataController::open: Cannot get the attributes for %s", m_device.c_str()); ::close(m_fd); return false; } termios.c_lflag &= ~(ECHO | ECHOE | ICANON | IEXTEN | ISIG); termios.c_iflag &= ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON | IXOFF | IXANY); termios.c_cflag &= ~(CSIZE | CSTOPB | PARENB | CRTSCTS); termios.c_cflag |= CS8; termios.c_oflag &= ~(OPOST); termios.c_cc[VMIN] = 0; termios.c_cc[VTIME] = 10; switch (m_speed) { case SERIAL_1200: ::cfsetospeed(&termios, B1200); ::cfsetispeed(&termios, B1200); break; case SERIAL_2400: ::cfsetospeed(&termios, B2400); ::cfsetispeed(&termios, B2400); break; case SERIAL_4800: ::cfsetospeed(&termios, B4800); ::cfsetispeed(&termios, B4800); break; case SERIAL_9600: ::cfsetospeed(&termios, B9600); ::cfsetispeed(&termios, B9600); break; case SERIAL_19200: ::cfsetospeed(&termios, B19200); ::cfsetispeed(&termios, B19200); break; case SERIAL_38400: ::cfsetospeed(&termios, B38400); ::cfsetispeed(&termios, B38400); break; case SERIAL_115200: ::cfsetospeed(&termios, B115200); ::cfsetispeed(&termios, B115200); break; case SERIAL_230400: ::cfsetospeed(&termios, B230400); ::cfsetispeed(&termios, B230400); break; case SERIAL_460800: ::cfsetospeed(&termios, B460800); ::cfsetispeed(&termios, B460800); break; default: fprintf(stderr, "SerialDataController::open: Unsupported serial port speed - %d\n", int(m_speed)); ::close(m_fd); return false; } if (::tcsetattr(m_fd, TCSANOW, &termios) < 0) { fprintf(stderr, "SerialDataController::open: Cannot set the attributes for %s\n", m_device.c_str()); ::close(m_fd); return false; } fprintf(stderr, "SerialDataController::open: opened %s at speed %d\n", m_device.c_str(), int(m_speed)); return true; } int SerialDataController::read(unsigned char* buffer, unsigned int lengthInBytes) { assert(buffer != 0); assert(m_fd != -1); if (lengthInBytes == 0U) return 0; unsigned int offset = 0U; while (offset < lengthInBytes) { fd_set fds; FD_ZERO(&fds); FD_SET(m_fd, &fds); int n; if (offset == 0U) { struct timeval tv; tv.tv_sec = 0; tv.tv_usec = 0; n = ::select(m_fd + 1, &fds, 0, 0, &tv); if (n == 0) { return 0; } } else { n = ::select(m_fd + 1, &fds, 0, 0, 0); } if (n < 0) { fprintf(stderr, "SerialDataController::read: Error from select(), errno=%d", errno); return -1; } if (n > 0) { ssize_t len = ::read(m_fd, buffer + offset, lengthInBytes - offset); if (len < 0) { if (errno != EAGAIN) { fprintf(stderr, "SerialDataController::read: Error from read(), errno=%d", errno); return -1; } } if (len > 0) { offset += len; } } } return lengthInBytes; } int SerialDataController::write(const unsigned char* buffer, unsigned int lengthInBytes) { assert(buffer != 0); assert(m_fd != -1); if (lengthInBytes == 0U) return 0; unsigned int ptr = 0U; while (ptr < lengthInBytes) { ssize_t n = ::write(m_fd, buffer + ptr, lengthInBytes - ptr); if (n < 0) { if (errno != EAGAIN) { fprintf(stderr, "SerialDataController::write: Error returned from write(), errno=%d", errno); return -1; } } if (n > 0) { ptr += n; } } return lengthInBytes; } void SerialDataController::closeIt() { assert(m_fd != -1); ::close (m_fd); m_device.clear(); m_speed = SERIAL_NONE; m_fd = -1; } #endif // WINDOWS bool SerialDataController::initResponse() { return true; // Do nothing for serial } } // namespace SerialDV serialDV-1.1.4/serialdatacontroller.h000066400000000000000000000044651355366064600176430ustar00rootroot00000000000000/////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2016 Edouard Griffiths, F4EXB. // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation as version 3 of the License, or // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License V3 for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// #ifndef SERIALDATACONTROLLER_H_ #define SERIALDATACONTROLLER_H_ #if defined(__WINDOWS__) #include #endif #include "datacontroller.h" namespace SerialDV { class SERIALDV_API SerialDataController : public DataController { public: SerialDataController(); virtual ~SerialDataController(); virtual bool open(const std::string& device, SERIAL_SPEED speed); virtual bool initResponse(); virtual int read(unsigned char* buffer, unsigned int lengthInBytes); virtual int write(const unsigned char* buffer, unsigned int lengthInBytes); virtual void closeIt(); private: std::string m_device; SERIAL_SPEED m_speed; #if defined(__WINDOWS__) HANDLE m_handle; OVERLAPPED m_readOverlapped; OVERLAPPED m_writeOverlapped; unsigned char* m_readBuffer; unsigned int m_readLength; bool m_readPending; #else int m_fd; #endif #if defined(__WINDOWS__) int readNonblock(unsigned char* buffer, unsigned int length); #endif }; } // namespace SerialDV #endif /* SERIALDATACONTROLLER_H_ */ serialDV-1.1.4/serialdv_export.h000066400000000000000000000037411355366064600166340ustar00rootroot00000000000000/////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2019 Edouard Griffiths, F4EXB. // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation as version 3 of the License, or // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License V3 for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// #ifndef __SERIALDV_EXPORT_H #define __SERIALDV_EXPORT_H #if defined (__GNUC__) && (__GNUC__ >= 4) # define __SERIALDV_EXPORT __attribute__((visibility("default"))) # define __SERIALDV_IMPORT __attribute__((visibility("default"))) #elif defined (_MSC_VER) # define __SERIALDV_EXPORT __declspec(dllexport) # define __SERIALDV_IMPORT __declspec(dllimport) #else # define __SERIALDV_EXPORT # define __SERIALDV_IMPORT #endif /* The 'SERIALDV_API' controls the import/export of 'sdrbase' symbols and classes. */ #if !defined(serialdv_STATIC) # if defined serialdv_EXPORTS # define SERIALDV_API __SERIALDV_EXPORT # else # define SERIALDV_API __SERIALDV_IMPORT # endif #else # define SERIALDV_API #endif #endif // __SERIALDV_EXPORT_H serialDV-1.1.4/udpdatacontroller.cpp000066400000000000000000000161731355366064600175060ustar00rootroot00000000000000/////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2019 Edouard Griffiths, F4EXB. // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation as version 3 of the License, or // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License V3 for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// #include #include #include #ifdef __WINDOWS__ #include #include #pragma comment(lib, "Ws2_32.lib") #else #include #include #include #include #include #include #include #endif #include "udpdatacontroller.h" namespace SerialDV { UDPDataController::UDPDataController() : m_responseSize(0), m_responseIndex(0) { #ifdef __WINDOWS__ WSADATA wsa_data; WSAStartup(MAKEWORD(1, 1), &wsa_data); #endif m_sa = new sockaddr_in; m_ra = new sockaddr_in; } UDPDataController::~UDPDataController() { delete m_ra; delete m_sa; #ifdef __WINDOWS__ WSACleanup(); #endif } bool UDPDataController::open(const std::string& ipAndPort, SERIAL_SPEED speed) { (void) speed; std::regex ip_port_regex("(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}):(\\d{4,5})"); std::smatch ip_port_match; std::regex_search(ipAndPort, ip_port_match, ip_port_regex); if (ip_port_match.size() == 3) { m_ipAddress = ip_port_match[1]; std::string m_port_str = ip_port_match[2]; m_port = atoi(m_port_str.c_str()); if (m_port < 1024) { std::cerr << "UDPDataController::open: not a valid port: " << m_port << std::endl; return false; } openSocket(m_port); if (m_sockFd < 0) { std::cerr << "UDPDataController::open: could not open socket at port: " << m_port << std::endl; return false; } setSendAddress(m_ipAddress, m_port); std::cout << "UDPDataController::open: ip: " << m_ipAddress << " port: " << m_port << std::endl; return true; } else { std::cerr << "UDPDataController::open: not a valid IP address and port: " << ipAndPort << std::endl; return false; } } bool UDPDataController::initResponse() { m_responseSize = timeout_recvfrom((char *) m_responseBuffer, 2000, m_ra, 20000); m_responseIndex = 0; return m_responseSize > 0; } int UDPDataController::read(unsigned char* buffer, unsigned int lengthInBytes) { int remain = m_responseSize - m_responseIndex; if (remain > 0) { if (lengthInBytes >= (unsigned int) remain) { std::copy(m_responseBuffer+m_responseIndex, m_responseBuffer+m_responseSize, buffer); m_responseIndex = m_responseSize; return remain; } else { std::copy(m_responseBuffer+m_responseIndex, m_responseBuffer+m_responseIndex+lengthInBytes, buffer); m_responseIndex += lengthInBytes; return lengthInBytes; } } else { return 0; } } int UDPDataController::write(const unsigned char* buffer, unsigned int lengthInBytes) { #ifdef __WINDOWS__ int nbytes = sendto(m_sockFd, (const char *) buffer, lengthInBytes, 0, (const sockaddr *) m_sa, sizeof(struct sockaddr_in)); #else int nbytes = sendto(m_sockFd, buffer, lengthInBytes, 0, (const sockaddr *) m_sa, sizeof(struct sockaddr_in)); #endif return nbytes; } void UDPDataController::closeIt() { if (m_sockFd >= 0) { closeSocket(); } } void UDPDataController::openSocket(int port) { m_sockFd = socket(AF_INET, SOCK_DGRAM, 0); if (m_sockFd < 0) { #ifdef __WINDOWS__ std::cerr << "UDPDataController::openSocket: error when creating the socket: " << WSAGetLastError() << std::endl; #else std::cerr << "UDPDataController::openSocket: error when creating the socket: " << strerror(errno) << std::endl; #endif return; } m_ra->sin_family = AF_INET; m_ra->sin_port = htons(port); m_ra->sin_addr.s_addr = htonl(INADDR_ANY); if (bind(m_sockFd, (struct sockaddr *) m_ra, sizeof(struct sockaddr_in)) < 0) { #ifdef __WINDOWS__ std::cerr << "UDPDataController::openSocket: error when binding the socket to port " << port << ": " << WSAGetLastError() << std::endl; #else std::cerr << "UDPDataController::openSocket: error when binding the socket to port " << port << ": " << strerror(errno) << std::endl; #endif m_sockFd = -1; } } void UDPDataController::closeSocket() { #ifdef __WINDOWS__ int rc = closesocket(m_sockFd); if (rc < 0) { std::cerr << "UDPDataController::close: error when closing the socket: " << WSAGetLastError() << std::endl; } else { std::cerr << "UDPDataController::close: socket closed" << std::endl; } #else int rc = close(m_sockFd); if (rc < 0) { std::cerr << "UDPDataController::close: error when closing the socket: " << strerror(errno) << std::endl; } else { std::cerr << "UDPDataController::close: socket closed" << std::endl; } #endif } void UDPDataController::setSendAddress(std::string& address, int port) { m_sa->sin_family = AF_INET; m_sa->sin_port = htons(port); m_sa->sin_addr.s_addr = inet_addr(address.c_str()); } int UDPDataController::timeout_recvfrom(char *buf, int length, struct sockaddr_in *connection, int timeoutinmicroseconds) { fd_set fds; struct timeval tv; tv.tv_sec = timeoutinmicroseconds / 1000000; tv.tv_usec = timeoutinmicroseconds % 1000000; FD_ZERO(&fds); FD_SET(m_sockFd, &fds); if (select(m_sockFd + 1, &fds, nullptr, nullptr, &tv) < 0) { #ifdef __WINDOWS__ std::cerr << "UDPDataController::timeout_recvfrom: error from select: " << WSAGetLastError() << std::endl; #else std::cerr << "UDPDataController::timeout_recvfrom: error from select: " << strerror(errno) << std::endl; #endif return 0; } if (FD_ISSET(m_sockFd, &fds)) { socklen_t addrLen = sizeof(struct sockaddr_in); return recvfrom(m_sockFd, buf, length, 0, (struct sockaddr *) connection, &addrLen); } else { std::cerr << "UDPDataController::timeout_recvfrom: no data" << std::endl; return 0; } } } // namespace SerialDVserialDV-1.1.4/udpdatacontroller.h000066400000000000000000000044411355366064600171460ustar00rootroot00000000000000/////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2019 Edouard Griffiths, F4EXB. // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software Foundation as version 3 of the License, or // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License V3 for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// #ifndef UDPDATACONTROLLER_H_ #define UDPDATACONTROLLER_H_ #include #include "datacontroller.h" struct sockaddr_in; namespace SerialDV { class SERIALDV_API UDPDataController : public DataController { public: UDPDataController(); virtual ~UDPDataController(); virtual bool open(const std::string& ipAndPort, SERIAL_SPEED speed); virtual bool initResponse(); virtual int read(unsigned char* buffer, unsigned int lengthInBytes); virtual int write(const unsigned char* buffer, unsigned int lengthInBytes); virtual void closeIt(); private: void openSocket(int port); void closeSocket(); void setSendAddress(std::string& address, int port); int timeout_recvfrom(char *buf, int length, struct sockaddr_in *connection, int timeoutinmicroseconds); std::string m_ipAddress; int m_port; int m_sockFd; struct sockaddr_in *m_sa; struct sockaddr_in *m_ra; unsigned char m_responseBuffer[2000]; int m_responseSize; int m_responseIndex; }; } // namespace SerialDV #endif // UDPDATACONTROLLER_H_