mcjTTY
________________________________________________________________________
Introduction
________________________________________________________________________
If you have an arduino, or in fact anything that "talks" over the serial port of your PC
then using this kit of software, you can communicate with your device from Daz Studio
This is for Windows PCs only ... unless someone can come up with a simple Terminal for Macs
________________________________________________________________________
Installation
________________________________________________________________________
The installation zip packages can be found at the bottom of this web page in the attachments section
The 2 important parts:
- mcjCommtty.exe A PC/DOS program kown as a "terminal" It is the communication bridge between the Arduino and DazStudio
- mcjTTY.dsa A Daz Studio script which sends, receives and displays data to/from the arduino through mcjCommTty
mcjTTY.zip contains mcjTTY.dsa
Typically it means:
c:\program files\daz\studio\contents
or
C:\Program Files (x86)\DAZ\Studio\content
or
C:\Users\YOURUSERNAME\Documents\DAZ 3D\Studio\My Library\
if installed properly, mcjTTY.dsa will be accessible in Daz Studio in the contents tab as
studio/scripts/mcasual/
or
My Library/scripts/mCasual
mcjComtty.zip contains mcjCommtty.exe and mcjCommtty.cpp the source code
the easiest is to unzip this in YourDazContentLibrary/scripts/mCasual
because by default that's where mcjTTY will expect to find it
but you can place it where you please!
________________________________________________________________________
Version History
________________________________________________________________________
January 21st 2018 8:08 am Release
________________________________________________________________________
Requirements
________________________________________________________________________
- PC running Windows
- An arduino or in fact anything that can send data to your PC through one of the COM ports
________________________________________________________________________
Instructions
________________________________________________________________________
Note that this script is mainly intended as a base
upon which daz script programmers can develop
The script does not detect the COM port your device uses
so get the COM port from, for example the Arduino IDE
launch mcjTTY
set the com port and baud rate
if it's not already done, press the "Select Server" button and specify the location of mcjComtty.exe
press the "Start Server" button
You can use the "Type Here" field to send commands
There's also a "Send File" option but it's very dumb i mean there's probably not much flow control/pacing
it just dumps the file as-is in one shot on Stdout
________________________________________________________________________
License and credits for mcjCommtty.exe
________________________________________________________________________
copyright 2016 mCasualJacques
permission to use in other programs is granted.
this is an almost unmodified version of commtty.c
by Robert Mashlan
copyright 1996 Robert Mashlan rmashlan@r2m.com
permission to use in other programs is granted.
http://nersp.nerdc.ufl.edu/~esi4161/files/commtty.c
________________________________________________________________________
// License and credits for mcjTTY.dsa
________________________________________________________________________
// mcjTTY.dsa by mCasual/Jacques c2016
// You can use this script freely for personal or commercial use.
// You may not sell, resell, sub-license or rent this script in any way.
// you may credit this script to mCasual/Jacques
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
__________________________________________