Forum Replies Created
-
AuthorPosts
-
greyhound716Member
mcgyvr,
Your timing is perfect, since I just sat down to review were things stand with the app. I have about a 3 week lull in another project, so I’m cycling back to TinyG.
Part of the confusion stems from my demo videos being for several different projects. Let me try to answer your questions:
#1. No, Arduino ADK board is not required for the app to work. What works and has been tested with the app thus far is using the Android in USB host mode (using a “on the go” cable, or with a tablet that has a USB-A female connector), or using a network link to a serial-to-network interface (a PC, an old network printer interface, whatever).
#2. Most of what you want is working right now. I’ve been pretty happy with the gcode streaming thus far, but the UI needs some work. For example, there isn’t a good way right now to interrupt the streaming for a gcode file, or to measure progress. When changing system settings, there is sometimes a need to exit and reenter the app to get the new state. But if all you’re looking for is repetitive gcode pushing, it does the job. What it doesn’t have is an option to initiate a homing cycle.
I’m willing to work with you to add the homing capabilities if you want to give it a shot. You’ll need to judge if the system is to the point where you want to invest the money to test it out.
There’s one other option that you might want to consider, and that’s using an AVR board as a very simple gcode streamer. One of my videos essentially does that for a different project. If you don’t really need any status info and you just want to push gcode, pulling that off of an SDcard and pushing out a wired serial interface to TinyG is super easy. You don’t even need the tablet in this case, and you can use a very simple AVR board. If you want to kick that around more or talk about your specific project, you can email me at stock@bexkat.com.
greyhound716MemberAlden,
After updating to the beta AS 6.1 and the corresponding 1.15 mkII firmware, things seem to work again.
-Mattgreyhound716MemberEveryone,
I’ve got a new version of the app out that works with the current firmware releases. It should work very well for downloads, and I’ve added some support for making configuration updates. More work is needed, but given my problems with reflashing my board, I wanted to get something out in a reasonable time. Let me know what you think.
Alden, I’ve been using JSON for a while now, and I really like the filtered status reports. I’ll probably start to look at the various coordinate offsets when I add more visualization support. I’ve got some base code for a continuous jog function, but I’ve disabled it until the $qf issue is debugged. In the meantime, I’ve got a step jog which works ok.
-Mattgreyhound716MemberMy current CNC hardware won’t support something that fast, but it looks like in a dry run test tonight it behaved itself. I’m going to give it a shot with real material tomorrow. Added some basic config editing support via the app, so it means that I can do some of the iterative adjustments based on the CNC without a PC in my workshop.
I want to put a couple of small features into the app, but I think I’ll have something tested and ready for a new release in about a week.
-Mattgreyhound716MemberI’m most of the way done updating the app for the new flow control and related protocols. So far, everything looks really good – I’m not getting ANY checksum errors, and I’m able to run through the download of 300mm braid without (apparent) issues in a dry run. I’m going to wire things up to my JGRO-based CNC to test it for real, and see if I can get a new video up if all continues to work well. 🙂
The UI itself needs work – right now it’s just a simple download and jogging interface, but if we’ve licked the IO problems it should be an easy thing to add other things.
-Mattgreyhound716MemberJens,
Sorry for not seeing this earlier. I’ve done some work on using an Android tablet as a pendant for TinyG. There isn’t currently any way to directly feed gcode to TinyG from USB, but you could certainly do that from a tablet. You would need to determine if TinyG is right for the type of steppers you are using for this project however.
There have been many changes to the TinyG communications protocols to help improve reliability at higher speeds. The current release of my app works ok with the current production TinyG firmware, but I still need to put some time into making it work with the new protocols.
If you’re interested in discussing this more, let me know.
-Mattgreyhound716MemberOh, it looks like all the codes for “stat” changed (“cycle” was added, incrementing all of the codes > 1). I was testing the numbers to enable/disable various controls, and so it got confused.
BTW, I will make another video when I get this code working!
-Mattgreyhound716MemberI need to correct myself – the posx/xpos thing isn’t a change in the code, it’s an error in the JSON doc examples! 🙂
Also, “stat” of 1 in a “sys” block means “no movement since hardware reset” or is there a more precise defn? I was looking for it in the mailing list threads and didn’t find the info.
Thanks,
-Mattgreyhound716MemberRandom bit of feedback on the JSON changes… I’m having a fun time writing a parser that supports both flavors. The “r” wrapper isn’t a big deal, since that object type won’t be visible when talking to old firmware. The contents of the body object is at the top level, and so at first I intended to essentially use a common parser block – look for those objects (“sys”, “1”, etc) at both the top level and within a “bd”. The problem is that some of the leaf objects appear to have been renamed (“posx” to “xpos”, etc), and so it looks like I’m going to need to add conditional tests for both elements or split the parser.
Not fatal, but something to be aware of as you start to harden the spec and more things get built on top of the underlying structure. 🙂 BTW, overall I like the new JSON.
-Mattgreyhound716MemberFYI, I pushed a new version of the Android app (called TinyG Console now). No big feature changes, but some small bug fixes and a lot of UI improvements to better look like a modern Android app (actionbar, better tabbing, etc). I’m incorporating additional features now, so feedback is appreciated.
-Mattgreyhound716MemberI posted a new video showing my progress so far. I’ve got the Android talking using accessory mode and am able to create programs and manipulate the jog interface. Not shown on the video yet is that I also got the gcode formation and command storage done last night. So now I need to make the link between the Arduino and Android smarter – it needs a file transfer mode, etc.
Inline video doesn’t seem to work on this site… Anyone know the trick, or is it disabled?
-Mattgreyhound716MemberI haven’t had many problems parsing the current JSON, but it seems like this new framework will give some additional flexibility, so I’m all for it. I have had great success using XON/XOFF for throttling, and it’s even easier when it’s a TTL level serial link, and so I mostly need to pick out the status lines for informational purposes – just to update the LCD to the current coordinates, etc.
I’m hoping to avoid most of the parsing on the Arduino, and just keep it to the small stuff. Any heavy lifting will definitely be on the Android end.
More when I have it.
-Mattgreyhound716MemberI posted a short video to show the progress thus far: TinyG Arduino. Right now, I have a simple Arduino sketch that handles TinyG initialization and downloads a gcode file on demand from a MicroSD card. Not shown in the video, but I also have the Arduino Mega ADK sketch able to process connect/disconnect events from an Android tablet in Accessory mode, and being able to send messages between all three components. I should have the full Android Arduino TinyG chain working for commands and display in the next few days.
-Mattgreyhound716MemberYes, it’s very neat. If you know of any other sites that might be interested in TinyG or the app, feel free to submit them an article.
-Mattgreyhound716MemberSorry, I thought you had TinyG – I missed that you were talking about grblshield. I don’t know much about that.
-
AuthorPosts