runrevlist at cc-mail.nl
runrevlist at cc-mail.nl
Fri May 3 17:45:26 EDT 2019
Thanks for the quick reply. It kind of sounds promising.
I am on Mac so apparently I got obstructed by some old ‘artificial’ limit of old days.
Can this 'simple engine patch’ you mention be implemented and …. preferably soon. It would really give LC a world of possibilities, think Internet of Things. The young ones could be using the modern lego with LC for instance. That would be really great. Using modem speeds in this age of 5G is kind of ridiculous.
I wil certainly try your suggestion with stty shell command. I have never dabbled with shell in the context with LC. If you have some more hints they would be very welcome indeed.
> On 03 May 2019, at 17:36, Mark Waddingham via use-livecode <use-livecode at lists.runrev.com> wrote:
> On 2019-05-03 17:01, runrevlist--- via use-livecode wrote:
>> LC is ver well suited for all kinds of programs communicating with
>> robots, 3D printers, milling machines etc. if only we could have a
>> decent speed. I am not even asking for the preferred speed of 22…..
>> The arduino IDE can easily communicate at that speed, why not LC?
> Which platform are you using?
> On Windows, any limit in baudrate is determined by Win32: the serialControlString
> property is passed to the 'BuildCommDCBW' Win32 API function to parse (which doesn't
> explicitly mention a baudrate limit).
> On Mac/Linux, however, there is an 'artificial' limit - the engine parses the control
> string itself in those cases and maps the integer baudrate value to a system constant...
> So the reason it is limited to 57600 baud will be because when that code was written, the only constants which were defined by the system were those up to 57600 baud (it would appear at least.
> This would need a (simple) engine patch to enable speeds up to the ones which are defined (on macOS there are constants up to 230400, Linux has a few higher ones defined too) when using 'the serialControlString' property.
>> Does any one have a solution or idea how to increase this silly speed
>> limit of LC?
> Alternatively, you might be able to open the serial device from LC as you do now and then use the 'stty' shell command to tweak the settings:
> stty -F /dev/tty... <baudrate>
> Here <baudrate> is one which is known by the system. For Linux this appears to be a reasonably normative list <https://superuser.com/questions/488449/is-there-any-way-to-check-which-baud-rates-are-supported-on-a-serial-device> (although a baudrate being there doesn't mean the device supports it).
> Warmest Regards,
> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode