It looks like you're new here. If you want to get involved, click one of these buttons!
I'm trying to port the EggBot code to a different microcontroller, which is going fairly well. I've gotten the EggBot extension to recognize my board by telling it to provide EBBmimic when it receives the "v\r" command, and almost all of the command processing is working well. The query button and query pen commands are not though. For the button command specifically I looked through the source code for the EBB v2.3 and see that upon receiving a 'QB' command it sends back the button state, where 0 is unpressed, followed by an ack. I am sending the same thing, however I don't think the Inkscape extension is reading in the button state from my board. It is always seeing the button as pressed regardless of whether it has been pressed or not which leads me to believe the python script isn't reading the data. I compared the outputs from both my board and the EBB to see if there was any difference in the hex being sent, but have got nothing. This lead me to believe that the issue was probably in the communication speed that my board is communicating at, or possibly in how the python extension is reading the data. So I decided to look at the python.
Right now I have the files in the inkscape_driver folder from the github repo here: https://github.com/evil-mad/EggBot in a visual studio project using python 2.7. The script runs, but only because I changed the self.svg_file line in the affect function of inkex.py to be a hard coded file name rather than having it pull it's information from inkscape. This is working ok as well. I am seeing that the svg file is being read in properly. I am not sure if it is being parsed properly though. From what I understand, the parsing routine breaks up the svg file based on tags within the tags. The program then takes however many of these it finds and runs them through a comparison routine to see if the tag is either 'eggbot' or something like http://www.w3.org/2000/svg eggbot. That tag isn't anywhere in the svg file though. It isn't in any of the example inkscape svg files either.
Is the svg file modified in any way when it is output from inkscape to the python script? If so, are certain tags in the svg converted into 'eggbot' tags?
Any ideas as to why the data the 'QB' is sending isn't being read by the Inkscape extension even though it is identical to the information being sent by the EBB?
As a side note, in the latest release of the EggBot drivers from github, the inkex.py file that is used in the actual extension is different than the one that is in the inkscape_driver folder. I'm not sure if you guys control that particular file or if Inkscape updates it with newer versions of Inkscape.