TinyG Serial Library preferably JavaScript

Home Forums TinyG TinyG Support TinyG Serial Library preferably JavaScript

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11129
    jasperpotts
    Member

    Hi, I have been trying to write my own code to control a TinyG based laser cutter I have built. I am struggling with managing serial and command buffers to get reliable sending of gcode. I have searched for existing code to do this and in the wiki it suggests g2core-api, I have tried that but just get odd errors. From what I can read is its designed for the new G2 board and not the tinyG so is looking for raw USB ports and not FDDI. Is there a recommended library I can use to talk to TinyG? I basically need a network to serial bridge that handles the buffer management and runs on a raspberry pi.

    Many Thanks, Jasper

    #11130
    cmcgrath5035
    Moderator

    I would suggest a place to start would be to dig deep into the Chilipeppr (CP) code, particularly the Serial Port JSON Server(SPJS). SPJS runs on many machines, including RasPI, is written in GO for speed and is web centric.

    CP is Open Source and well documented. It was developed by reverse engineering the tinyG Serial interface and uses low level status messaging to optimize buffer fill as its flow control mechanism. It evolved to also work with other motion control sub-systems such as GRBl and the G2core Line Mode protocol.

    I’d also suggest you have a look at these links
    https://github.com/synthetos/TinyG/issues
    https://github.com/synthetos/g2/issues
    where developers like yourself probe issues with the developers.

    Start there, this topic could head in many different directions .

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.