Dynomotion

Group: DynoMotion Message: 8421 From: ramuraju07 Date: 10/1/2013
Subject: CONTROLLING WITH IPAD
Hi,

We are planning to control and operate stepper motors from an IPAD. We are capable of generating a data signal from an IPAD to a USB input device(motion controller). 
Does a KFLOP respond to a Data signal from an IPAD
Group: DynoMotion Message: 8422 From: Tom Kerekes Date: 10/1/2013
Subject: Re: CONTROLLING WITH IPAD
Hi,

No.  I don't think that will work.  KFLOP uses an FTDI USB chip which has driver support for many Operating Systems but I don't think they have one for iPad.  See:

http://www.ftdichip.com/FTDrivers.htm

Even if you were able to communicate our Motion Libraries for Trajectory Planning, GCode, Kinematics, etc. only run under Windows so you would be limited to KFLOP Console Script ASCII Commands.

KFLOP can also accept commands through a serial port at up to 56KBaud.   I read somewhere that the iPad has a serial port.

Regards
TK

Group: DynoMotion Message: 8427 From: eric_kato_sanders Date: 10/2/2013
Subject: Re: CONTROLLING WITH IPAD

Rather than use USB, the way I would handle it is to write code for KMotionCNC to connect and interface with the iPad using WiFi-TCP/IP.  You could have your code collect, encode, and  send data, (like DRO info, feeds, speeds, etc) to the iPad to display and send encoded commands back to KMotionCNC to perform the individual tasks.  On the KMotionCNC side, it would be just a matter of decoding the command and injecting the appropriate action.




---In DynoMotion@yahoogroups.com, <dynomotion@yahoogroups.com> wrote:

Hi,

We are planning to control and operate stepper motors from an IPAD. We are capable of generating a data signal from an IPAD to a USB input device(motion controller). 
Does a KFLOP respond to a Data signal from an IPAD
Group: DynoMotion Message: 8429 From: Tom Kerekes Date: 10/2/2013
Subject: Re: CONTROLLING WITH IPAD
That would certainly be a good approach, but assumes there is a Windows PC in the system.

TK

Group: DynoMotion Message: 8430 From: ramuraju07 Date: 10/2/2013
Subject: Re: CONTROLLING WITH IPAD

I have gone through the link and there is no driver available for an IPAD.

There is a serial cable available for IPAD. Below is the link for the same.


http://redpark.com/lightning-serial-cable-l2-db9v/


Is it possible to link the above cable to a KFLOP and achieve a required motion as per the commands from an IPAD


We are purchasing this cable and will receive it in few days. Our programmer will get back with more details on this cable once we receive and test it. 




 



---In dynomotion@yahoogroups.com, <tk@...> wrote:

Hi,

No.  I don't think that will work.  KFLOP uses an FTDI USB chip which has driver support for many Operating Systems but I don't think they have one for iPad.  See:

http://www.ftdichip.com/FTDrivers.htm

Even if you were able to communicate our Motion Libraries for Trajectory Planning, GCode, Kinematics, etc. only run under Windows so you would be limited to KFLOP Console Script ASCII Commands.

KFLOP can also accept commands through a serial port at up to 56KBaud.   I read somewhere that the iPad has a serial port.

Regards
TK

Group: DynoMotion Message: 8431 From: ramuraju07 Date: 10/2/2013
Subject: Re: CONTROLLING WITH IPAD
Can exactly the same process be done with a serial cable for IPAD replacing WiFi-TCP/IP. 

I will link this thread to our IPAD application developer. I think he  can discuss this issue well

Group: DynoMotion Message: 8432 From: Tom Kerekes Date: 10/2/2013
Subject: Re: CONTROLLING WITH IPAD
Interesting.  KFLOP itself has a UART for serial communication at up to 57KBaud but the signals are LVTTL not RS232 levels.  You will need a converter to make it compatible with KFLOP.  Those are commonly available and low cost.  Our Kanalog has one built in and will allow KFLOP to accept RS232.  See: 


Could you describe your application?  As I stated before our Windows PC Libraries will not run on an iPad and not be available to do things like Coordinated Motion Trajectory Planning.  But low level KFLOP commands would be available to do things like move motors independently, change IO, etc...  See the list of available commands here:

http://dynomotion.com/Help/CmdsCategory.htm





Group: DynoMotion Message: 8433 From: Tom Kerekes Date: 10/2/2013
Subject: Re: CONTROLLING WITH IPAD
I don't understand the question.  KFLOP does not have WiFi or TCP/IP.  But a Windows PC might be used to receive WiFi from the iPad and pass it through to KFLOP or to the KMotion Libraries on the PC.  This would require programming.

Regards
TK

Group: DynoMotion Message: 8446 From: eric_kato_sanders Date: 10/2/2013
Subject: Re: CONTROLLING WITH IPAD

 Yes it can.  Basically you would be using KMotionCNC as the controlling software, but you would need to modify it to also send the necessary data to the iPad.  You could easily come up with an encoding scheme.  There are several in the auto industry such as Keyword, Class2, 14229, GMLAN.  They Keyword2000 protocol would be a good starting point.  It is structured something like this:

[source id][destination id][message length][task identifier byte][data][checksum]

The task identifier might be something like 0x01 which could mean retrieve the DRO information.  KMotioin would then gather the current DRO value, pack them into a structure and send them with the same identifier byte,the length, and the final checksum and send them back to the iPad.  the one thing you would need to be aware of is something called bytte alignment.  Windows applications will pad data withing structures to make them more efficient from a microprocessor standpoint.  The iPad may use a different alignment that will throw the data off.  You can add a #pragma statement to the C++ code to instruct the compiler to use single byte alignment, but I don't know how that works in the IOs world.  Anyway, didn't mean to ramble, but this is a very common mistake that is made when taking a structure, sending it to a different application and trying to decode it with its version of the same structure.

the iPad the necessary data



---In DynoMotion@yahoogroups.com, <dynomotion@yahoogroups.com> wrote:

Can exactly the same process be done with a serial cable for IPAD replacing WiFi-TCP/IP. 

I will link this thread to our IPAD application developer. I think he  can discuss this issue well