Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:30 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2 : SERIAL COM PORT

Author Message
SillyCony
Newbie

Joined: 14/01/2021
Location: France
Posts: 2
Posted: 01:26pm 14 Jan 2021
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 4311
Posted: 01:37pm 14 Jan 2021
Copy link to clipboard 
Print this post

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: France
Posts: 2
Posted: 02:09pm 14 Jan 2021
Copy link to clipboard 
Print this post

Hi Thwill,

Thanks a lot. It works.

Thoroughly on the subject, we sometimes forget the simplest solutions !!!

Eric
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025