Page 5 of 5
Re: Communicating via RS485
Posted: 21 Feb 2012, 20:04
by mattallen37
Hey alphasucht, it's not at all a disgrace to make a mistake like that. You live and learn. We all make those "stupid newb" mistakes.
Glad to hear that it is working!
Re: Communicating via RS485
Posted: 20 Nov 2012, 07:58
by HaWe
I tried it passing both arrays[100] of char and also single values of strings, floats, long ints, and arrays of ints, but I don't get it working
- maybe because I don't understand how to pass values different from single chars and how exactly to address different NXTs
(with 2 own NXTs and 2 borrowed NXTs I temporarily have overall 4 NXTs to test)
Re: Communicating via RS485
Posted: 21 Nov 2012, 01:13
by mattallen37
RS485 buffers are 64 bytes. Each char or byte are is the same number of bytes (obviously), a string is length plus one bytes, an int is two bytes, and a float and long are four bytes.
BTW, this is an old thread, and my RS485 library included in this thread is an old one that I will not provide support for anymore.
Re: Communicating via RS485
Posted: 21 Nov 2012, 08:13
by HaWe
of course I know all of this but it doesn't work nevertheless.
For a bigger project we need to send several integers, longInts, several (i.e., six) 2-dim arrays of char, and multiple motor-direct-commands all-at-once or on demand.
Re: Communicating via RS485
Posted: 22 Nov 2012, 18:57
by momis99
I don't want to interrupt you by discousing this, but i'd also like a trouble-free communication protocoll via rs485 and bluetooth for NXC. In our German Bourd, we are working on a thing where we need both of this.
Re: Communicating via RS485
Posted: 23 Nov 2012, 18:25
by alphasucht
momis99 wrote: but i'd also like a trouble-free communication protocoll via rs485 and bluetooth for NXC.
The same for me please!
Re: Communicating via RS485
Posted: 27 Nov 2012, 18:04
by matzzn
but i'd also like a trouble-free communication protocoll via rs485 and bluetooth for NXC.
same here