Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

CR1000 CS I/O ComME SerialOpen Format Code


Monte Oct 12, 2009 05:56 PM

Hello

I've tried to communicate from my CR1000 (os v17) to a microcontroller using the CS I/O port. To do so I tried to open the serial port using this command:
SerialOpen (ComME,2400,16,100,255)
Unfortunately this gives a compiler error: "Format option only available on COM1...COM4"

But the help file (CRBASIC1.HLP) supplied with the cr1000 firmware v17 states:
"The Format parameter is used to specify the type of error detection to be used for the exchange of data. These format options apply to all ComPorts except COM310/COM320, ComSDC7, and ComSDC8."

So "ComME" should work?!
Does anybody know why I get an error message?


Dana Oct 13, 2009 03:39 PM

Hi Monte,

When in doubt, trust the compiler. (I write the CRBasic help ;)

I will double check with the developer and get back with you. TTL logic may apply only to the COM (e.g., C1/C2) ports.

Dana


Monte Oct 16, 2009 05:18 PM

Hi Dana

Thanks for your answer.
Have you doublechecked with the developer?
If the TTL format options are not supported right now, will there be support in the near future?

Monte


Dana Oct 19, 2009 06:32 PM

Hi Monte,

This from the developer:


* Com1..Com4 are capable of all the options.

* ComRS232 and ComME are capable of all but TTL.

* Format options 0, 3, and 4 are the only options applicable using SDC comports.

I wouldn't expect there to be any changes to this.

Regards, Dana


Monte Oct 20, 2009 07:24 AM

Thanks for clarifying this. (You might add these informations to the CRBasic help files?)

Regards
Monte


Dana Oct 20, 2009 03:27 PM

I will correct the information in the help files for any future release.

Dana

Log in or register to post/reply in the forum.