These are chat archives for machinekit/machinekit

17th
Aug 2016
zhivko
@zhivko
Aug 17 2016 09:12

Moved further it was #include rtos headers thing. Now I see plenty of code having unix origins - for example constants like:

pp/zmtp_ipc_endpoint.c: In function 'zmtp_ipc_endpoint_connect':
app/zmtp_ipc_endpoint.c:70:27: error: 'AF_UNIX' undeclared (first use in this function)
     const int s = socket (AF_UNIX, SOCK_STREAM, 0);
                           ^
/home/klemen/git/ESP8266_RTOS_SDK/include/lwip/lwip/sockets.h:416:43: note: in definition of macro 'socket'
 #define socket(a,b,c)         lwip_socket(a,b,c)
                                           ^
app/zmtp_ipc_endpoint.c: In function 'zmtp_ipc_endpoint_listen':
app/zmtp_ipc_endpoint.c:95:27: error: 'AF_UNIX' undeclared (first use in this function)
     const int s = socket (AF_UNIX, SOCK_STREAM, 0);
                           ^
/home/klemen/git/ESP8266_RTOS_SDK/include/lwip/lwip/sockets.h:416:43: note: in definition of macro 'socket'
 #define socket(a,b,c)         lwip_socket(a,b,c)

and struct sockaddr_un instead usual struct sockaddr
of course rtos doesn't have a clue about this :)
If libzmtp is to target embeded systems - this "minimal" libzmtp implementation should not limit one to UX environment :(

Probably this will be more appropriate for embeded system - what do you think ?
Michael Haberler
@mhaberler
Aug 17 2016 11:05
at what point would you reconsider the platform? IMO you'd be fastest with a embedded linux system rather than fighting the limited FreeRTOS environment
zhivko
@zhivko
Aug 17 2016 11:24
Yes i agree
What platform you suggest?
Best Price performance...
Michael Haberler
@mhaberler
Aug 17 2016 11:24
this is a software question..
zhivko
@zhivko
Aug 17 2016 11:25
And should be small
Michael Haberler
@mhaberler
Aug 17 2016 11:25
you want a debian-capable platform
zhivko
@zhivko
Aug 17 2016 11:25
Soc?
Michael Haberler
@mhaberler
Aug 17 2016 11:26
sure, what would be an alternative to that?
the yocto-based ones have a so-so package stream, I'd suggest to stay clear of them
what is wrong with a BB?
zhivko
@zhivko
Aug 17 2016 11:27
Too expensive for this small task
Michael Haberler
@mhaberler
Aug 17 2016 11:28
how many copies are you going to do
zhivko
@zhivko
Aug 17 2016 11:28
Could pi zero be ok?
Michael Haberler
@mhaberler
Aug 17 2016 11:28
how is the sensor interfaced?
zhivko
@zhivko
Aug 17 2016 11:28
Gpio
Michael Haberler
@mhaberler
Aug 17 2016 11:28
in principle I think yes
zhivko
@zhivko
Aug 17 2016 11:29
Encoder trigering gpio... I have video of it in operation
What would be max freq of reading gpio on zero pi in debian?
Michael Haberler
@mhaberler
Aug 17 2016 11:30
please show sensor datasheet
zhivko
@zhivko
Aug 17 2016 11:33
Sorry having lunch break
Will do in 30min...
Michael Haberler
@mhaberler
Aug 17 2016 12:30
well the bb has the EQEP a/b decoder so no real limit; sw a/b decode I think wont go much higher than a few kHz
the socfpga platform can do 700kHz (measured)
Michael Haberler
@mhaberler
Aug 17 2016 12:36
neat!
great Austrian product ;)
zhivko
@zhivko
Aug 17 2016 12:36
exactly!
Michael Haberler
@mhaberler
Aug 17 2016 12:37
whats the steps/mm and maxspeed?
zhivko
@zhivko
Aug 17 2016 12:37
but having extra BB to this is nonsense - you think I could use just 3 extra gpios (ekstra long wires) from same BB that runs machinekit ?
Michael Haberler
@mhaberler
Aug 17 2016 12:37
sure
I have no idea what your grand plan was..
zhivko
@zhivko
Aug 17 2016 12:38
need to close loop for Y axis
Michael Haberler
@mhaberler
Aug 17 2016 12:38
well in that case a remote component is useless anyway due to delay
zhivko
@zhivko
Aug 17 2016 12:38
and than do PID control
however I have stepper for Y axis
Michael Haberler
@mhaberler
Aug 17 2016 12:39
you cant do a PID loop with a userland comp in the loop, that will be way too much latency
zhivko
@zhivko
Aug 17 2016 12:39
hmm... so haltalk is all userland ?
Michael Haberler
@mhaberler
Aug 17 2016 12:40
certainly yes, as a look at the code will tell you, plus the fact it is loaded with loadusr haltalk
zhivko
@zhivko
Aug 17 2016 12:42
OK... will change my mindstream to have BBB reading y position
Could https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_arm335xQEP.c read 2 gpios ?
is this comp meant to read encoder pulses ?
Michael Haberler
@mhaberler
Aug 17 2016 12:42
it is a full-blown A/B decoder with index
zhivko
@zhivko
Aug 17 2016 12:43
can you maybe direct me to documentation - or sample usage for this comp? Sorry if I again ask nonsense if there it is in machinedoc.
Michael Haberler
@mhaberler
Aug 17 2016 12:43
yes, grep -r EQEP
what about trying www.machinekit.io?
it has a searchbox, and guess what hit #1 is: http://www.machinekit.io/docs/drivers/hal_arm335xQEP/
grep -r QEP that is
I mean we did this for exactly that kind of situation..
zhivko
@zhivko
Aug 17 2016 12:46
sory soryy.... yes - I was following yours and ArcEye's battle with documentation in github updates... :)
Michael Haberler
@mhaberler
Aug 17 2016 12:46
battle? that worked since months.
zhivko
@zhivko
Aug 17 2016 12:47
ok - no battle then - I do not want to be interpreted wrongly again... thank you for now!
Michael Haberler
@mhaberler
Aug 17 2016 12:47
sure
zhivko
@zhivko
Aug 17 2016 12:48
I just wanted to aplaud!
I go now thank you for info!
Michael Haberler
@mhaberler
Aug 17 2016 12:48
Mick will love to hear that
zhivko
@zhivko
Aug 17 2016 12:48
I see he is more on ems-users -moderator ;)
zhivko
@zhivko
Aug 17 2016 13:36
additional question - what frequency of reading encoder I can expect from BBB ?
ArcEye
@ArcEye
Aug 17 2016 13:37
I see he is more on ems-users -moderator.
Very rarely these days, a couple recently when I was bored waiting for builds to finish :smile:
zhivko
@zhivko
Aug 17 2016 13:38
I want to say you did great job with web machinekit documentation - I would like to know how indexing of pages is done? Is it google related or what is indexing mechanism beneath?
ArcEye
@ArcEye
Aug 17 2016 13:39
@mhaberler your email is bouncing back.
I am going to sort a package problem by a commit that will force a rebuild, so ignore my last if you ever get it.

Is it google related or what is indexing mechanism beneath?

Thanks - If you mean the search, it is a google CSE

zhivko
@zhivko
Aug 17 2016 13:41
CSE meaning what ?
SearchEngine -but C ?
ArcEye
@ArcEye
Aug 17 2016 13:41
Custom
zhivko
@zhivko
Aug 17 2016 13:41
Is this physical black box ??
from google ?
Michael Haberler
@mhaberler
Aug 17 2016 14:38
@arceye bouncing from mah.priv.at?
Michael Haberler
@mhaberler
Aug 17 2016 14:44
@ArcEye could you paste a bounce to my private channel? I dont see it