Am 25.02.2014 um 19:32 schrieb Sven Wesley <svenne.d...@gmail.com>:

> It would be pretty awesome to read the DRO data from LinuxCNC... :)


The way a Javascript/Websockets client like on an Android device works in my 
development branch is:

- define a group of signals to be watched for changes - a 'HAL group' like 
'fb-pos' in the .hal file fragment below
- web clients desiring a stream of change updates connect to a uri like 
'ws://ip:port?dest=haltalk&subscribe=fb-pos'
- they will receive a JSON-encoded update everytime a signal changes

same effect, just generic, i.e report any signal combination to any entity 
desiring to know

the first use will be the self-balancing robot driven by HAL we're working on - 
it should report to/take commands from an Android device

- Michael



---- trackpos.hal ---
# 1. signals as taken from configs/common/core_stepper.hal:
net Xpos-fb stepgen.0.position-fb => axis.0.motor-pos-fb
net Ypos-fb stepgen.1.position-fb => axis.1.motor-pos-fb
net Zpos-fb stepgen.2.position-fb => axis.2.motor-pos-fb

# 2. declare a HAL group 'fb-pos', scan every 100mS
newg fb-pos 100
newm fb-pos Xpos-fb
newm fb-pos Ypos-fb
newm fb-pos Zpos-fb

# 3. Report this group via STP:
# start the generic HAL talker
loadusr -W haltalk --groups fb-pos # <... other groups to report>


> 
> 
> 2014-02-25 15:27 GMT+01:00 Mark Wendt <wendt.m...@gmail.com>:
> 
>> Yeah, I thought it was a pretty slick little idea.
>> 
>> Mark
>> 
>> On Tue, Feb 25, 2014 at 9:20 AM, Dave Cole <linuxcncro...@gmail.com>
>> wrote:
>> 
>>> Very cool!
>>> 
>>> Android and the pocket computers/phones/tablets etc have such great
>>> potential....
>>> 
>>> Thanks for sharing that.
>>> 
>>> Dave  -  So many ideas ... so little time.
>>> 
>>> 
>>> On 2/25/2014 8:53 AM, Mark Wendt wrote:
>>>> A pretty neat project with an Android:
>>>> 
>>>> http://www.yuriystoys.com/p/android-dro.html
>>>> 
>>>> Mark
>>> 
>> 
>> ------------------------------------------------------------------------------
>> Flow-based real-time traffic analytics software. Cisco certified tool.
>> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
>> Customize your own dashboards, set traffic alerts and generate reports.
>> Network behavioral analysis & security monitoring. All-in-one tool.
>> 
>> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>> 
> ------------------------------------------------------------------------------
> Flow-based real-time traffic analytics software. Cisco certified tool.
> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> Customize your own dashboards, set traffic alerts and generate reports.
> Network behavioral analysis & security monitoring. All-in-one tool.
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to