![]() |
Forum Index : Microcontroller and PC projects : CMM2 : SERIAL COM PORT
Author | Message | ||||
SillyCony Newbie ![]() Joined: 14/01/2021 Location: FrancePosts: 2 |
Hi all, For a current project I need to send a series of 'arbitrary' bytes across a serial link. This series of bytes should not be formatted. It must therefore not contain the "CR / LF" sequence at the end of transmission. However, I only found the PRINT function in the Basic of the CMM2 to send series of bytes necessarily in the form of STRING, therefore with the sequence "CR / LF" at the end. I couldn't find a WRITE (* Buffer, AmountOfData) function for example. Do you know a solution to fix this problem? I am using com port number 2, and the firware Ver 5.05.05 Best... Eric |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Hi, Ending a PRINT statement with a semi-colon ; suppresses the CRLF, e.g. PRINT "foo" ; Sends "foo" without CRLF. Hope that helps, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
SillyCony Newbie ![]() Joined: 14/01/2021 Location: FrancePosts: 2 |
Hi Thwill, Thanks a lot. It works. Thoroughly on the subject, we sometimes forget the simplest solutions !!! Eric |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |