**** BEGIN LOGGING AT Mon Aug 15 02:59:58 2016 Aug 15 13:21:51 bradfa, Been trying for the multibyte transfer. Program freezes on testing. I will let you know, when I have a successful transaction done. Aug 15 13:22:10 Earlier there had been a stack error. I have rectified that. Aug 15 13:22:49 I am really sorry for this. I will get it to work Aug 15 14:02:48 chanakya_vc: ok, keep at it Aug 15 14:03:22 Okay bradfa .Will keep you updated Aug 15 14:30:04 bradfa, I have a doubt. If I take a uint8_t pointer and make it point to an address held by the tx_buf(void pointer), it will point to the first 8 bits of the buffer right(starting from the MSB )? Aug 15 14:30:52 And on incrementing the pointer it will then point to the next 8 bits right? Aug 15 14:30:59 foreverska_, ^^ Aug 15 14:41:49 Yes and yes if I'm reading that right Aug 15 14:44:37 foreverska_, I am stuck with multibyte transfer in SPI. So I am trying out this idea. struct spi_transfer gives the length of the buffer that the protocol driver is demanding along with the tx_buf and rx_buf Aug 15 14:46:12 So I am running a loop with i But don't seem to be getting the right results. Or I am not able to interpret them correctly . Aug 15 14:50:26 What is on the other side of the SPI line to verify correctness? Aug 15 14:52:11 foreverska_, Well m_w had written a program to verify spi. I think I am confused as to how it is handling multibyte transfers. here is the link:https://github.com/mwelling/spi-test Aug 15 14:52:25 I have looped back mosi to miso in my firmware Aug 15 14:54:45 Gotcha, and it's not coming back garbled, it's just out of order when it arrives? Aug 15 14:55:19 And these are the results I am getting. Don't seem to make sense to me:http://pastebin.com/LgbPSXym Aug 15 14:56:08 foreverska_, Have a look Aug 15 14:57:28 I will push my code if you want to look at the driver. I am still at a loss as to why this is not working. There doesn't seem to be any error :( Aug 15 15:00:46 It is kinda odd because you're never picking up the first byte and the rest tend to be fairly random. Is your driver running at the same Hz? Aug 15 15:02:00 foreverska_, The confusion I have is whether in a multibyte transfer the protocol driver simply writes the entire data in the buffer or it sends stuff byte by byte? Aug 15 15:03:04 That may be a problem. Let me verify. I think it was around 6.5 Mhz the last time(atleast the clock frequency was this) Aug 15 16:29:09 hahahaha ! https://github.com/torvalds/linux/blob/d158fc7f36a25e19791d25a55da5623399a2644f/fs/ext4/resize.c#L698 Aug 15 16:29:37 I always knew mathematics has got it wrong .. Aug 15 16:34:14 You can make the patch :) Aug 15 16:39:21 to the math community ;) Aug 15 16:39:40 should rather focus on my work :D Aug 15 16:39:58 linux-math mailing list:) Aug 15 16:40:14 just came around that on other channel. Aug 15 16:40:55 unfortunatelly it is not available http://vger.kernel.org/vger-lists.html Aug 15 16:51:37 https://github.com/torvalds/linux/blob/d158fc7f36a25e19791d25a55da5623399a2644f/fs/ext4/resize.c#L652 Aug 15 16:53:10 still funny Aug 15 16:54:48 hi m_w, how are you? Aug 15 16:55:10 another day another dollar Aug 15 16:55:18 same old same old Aug 15 16:55:38 good Aug 15 16:55:41 I still clean up code Aug 15 16:55:56 looks better Aug 15 16:56:17 greg's review was probably a big eye opener Aug 15 16:56:53 did you understand all of his comments? Aug 15 16:57:15 m_w, Ah been trying to get this thing to work. Am getting this result, doesn't make sense to me at all:http://pastebin.com/LgbPSXym Aug 15 16:57:32 I have only a few doubts Aug 15 16:57:48 I got to program to "unfreeze" though. Please do check it out when free Aug 15 16:58:01 I will just push the code Aug 15 16:58:31 chanakya_vc: what are you connecting to MISO? Aug 15 16:58:47 Looping back mosi to miso Aug 15 16:58:59 But even MOSI doesn;t add up Aug 15 16:59:10 m_w: few amendments, push code and We will talk about doubts Aug 15 16:59:46 yeah respond inline to questions he had Aug 15 17:00:13 pmezydlo: you have your mail client setup? Aug 15 17:00:24 yes Aug 15 17:00:53 mutt running Aug 15 17:00:53 chanakya_vc: what do you mean MOSI doesn't add up? Aug 15 17:01:48 Ah sending 06 as MOSI two bytes, I am not able to understand why is the second byte FF M Aug 15 17:01:49 mw Aug 15 17:01:52 m_w, Aug 15 17:02:13 Just a moment, let me update the code Aug 15 17:02:22 no it is not two bytes Aug 15 17:02:30 it is two nibbles Aug 15 17:02:49 4 bits per hex digit Aug 15 17:02:53 ;) Aug 15 17:03:52 Ohh Aug 15 17:03:57 hmmn Aug 15 17:04:06 last week, you guys getting nervous yet? Aug 15 17:04:11 me yes Aug 15 17:04:26 especially when I have run into problems m_w Aug 15 17:04:57 And college has reopened, so classes are also a problem Aug 15 17:05:31 you really need to engage with your mentors when issues arise, I can't always be on irc to save you Aug 15 17:05:44 but I can try Aug 15 17:07:20 Yes I understand that m_w . Aug 15 17:07:43 But at the moment you are the only one who can save me :P I have pushed the code.. Aug 15 17:07:52 ha Aug 15 17:08:27 you guys need to remember to complete your final report for tomorrow, this is important Aug 15 17:08:28 I have removed lsb_first_transfer just for the sake of testing my logic Aug 15 17:08:42 link? Aug 15 17:08:48 Yes that is also due :( :( Aug 15 17:09:09 https://github.com/chanakya-vc/PRU-I2C_SPI_master/blob/wip_on_spi/SPI_Driver/pru0_spi-subsystem.c Aug 15 17:09:10 m_w, Aug 15 17:10:34 I think this would sort of work Aug 15 17:11:01 I can't see any flaw in the logic..yet it's not m_w :( Aug 15 17:11:02 but the chip select will toggle after each word of the transaction Aug 15 17:11:47 which is not desired on most devices and will trash the transaction Aug 15 17:13:21 okay m_w . But your code should work right? Aug 15 17:13:21 also the delay between words may be longer than expected because we are feeding a word at a time Aug 15 17:13:39 hmmn...that may also be an issue Aug 15 17:14:27 I used an active feedback (FPGA) to test the IP previously Aug 15 17:14:46 The CS problem I can fix easily by telling the firmware the length of the word beforehand Aug 15 17:15:04 okay so it is not necessary that the code is not working Aug 15 17:15:06 m_w ? Aug 15 17:15:09 sure that could work Aug 15 17:17:30 Hmmn so I also need to probably get an FPGA and learn how to program one. Aug 15 17:17:44 m_w, I don't see any other way Aug 15 17:20:02 Also just one clarification, when you say that 2 bytes to transfer in your spi-test program m_w , it is basically calling spidev which is calling spi-core to write those two bytes together in the tx_buf right? Aug 15 17:20:16 I mean it sends the two bytes together right? Aug 15 17:20:57 Because on running when I transfer 2 bytes, MOSI appears twice. So I was confused Aug 15 17:23:57 1 byte per line Aug 15 17:24:58 they are sent together via a buffer through the spidev interface, yes Aug 15 17:26:45 Okay m_w . So you think it just a problem of mismatch of speed? Aug 15 17:28:33 did you change the firmware at all while do this update? Aug 15 17:31:07 Ah no, just changed the last line where I looped mosi back to miso Aug 15 17:31:41 the problem with a simple loopback it timing of transition of data and clock are not right Aug 15 17:32:09 Ah okay, so I need to actually test it. Aug 15 17:32:21 with a device or FPGA Aug 15 17:32:34 But the logic seems to be correct right m_w ? Aug 15 17:33:06 as long as you add proper chip select handling sure Aug 15 17:33:39 Okay m_w . I was so worried as to where am I going wrong Aug 15 17:34:49 Any advice as to how should I go about testing I2C? Aug 15 17:34:55 FPGA again? Aug 15 17:34:55 well the simple loopback should work in theory, I found that it was not working as expected Aug 15 17:35:02 possibly Aug 15 17:35:37 it would be good to test on actual I2C devices Aug 15 17:35:53 same with SPI Aug 15 17:36:25 Ohkay, regarding the dtc file m_w , I just removed the spidev registration part and all the rest is same Aug 15 17:36:27 FPGA can be considered an actual device with proper IP loaded Aug 15 17:36:43 for I2C Aug 15 17:36:51 Ohkay m_w Aug 15 17:36:51 yeah you need to post the dts files to your repository Aug 15 17:37:15 Yeah I will. I have been so caught up with this multibyte transfer Aug 15 17:37:35 I also need to start documentation Aug 15 17:39:26 since your report is due tomorrow I would focus on that Aug 15 17:41:15 So documentation first Aug 15 17:42:11 well it is up to you Aug 15 17:42:33 but if you miss the last report you may be in for some trouble upon review Aug 15 17:42:52 remember it is a comprehensive report Aug 15 17:44:19 Techinically I can finish up all the code and documentation tonight itself m_w , you know if I work through the night. In my report I can write that the single byte transfer in SPI has been thoroughly tested. Also I did get some results for looping back I2C . Aug 15 17:44:50 Perhaps then I can say that I would dedicate the rest of the week to just testing on actual devices. Aug 15 17:45:04 m_w, Would that be acceptable? Aug 15 17:45:32 okay hopefully you have the wits to write a good report on little sleep Aug 15 17:46:09 Don't count on that m_w . I have classes in the morning. Probably gonna sleep in those :P Aug 15 17:46:16 m_w, :P Aug 15 17:46:19 ha Aug 15 17:48:03 Okay to work on documentation. I will probably push the code. Thanks for verifying the logic m_w . I was so worried about that. Aug 15 18:08:00 chanakya_vc: please ensure you have your report written for tomorrow, that is priority number 1 since this week is inteded to be for documentation and cleanup. If you get the report done, then you can go back to validating your firmware/driver interface and doing more testing/debugging. Aug 15 18:17:53 Yes bradfa I am working on the documentation right now. Ah can you give me an idea as to what you would expect in the report? Aug 15 18:19:44 Just what has been achieved, how it was achieved and scope for improvement would do right bradfa ? Aug 15 18:21:10 I will work through the night and possibly post the report+ documentation before tomorrow morning. I will also organize the code on the repo so that it is easier to follow bradfa . Aug 15 18:22:33 And then as you suggested I will focus on more testing/debugging throughout the week till Sunday. Aug 15 18:47:33 chanakya_vc: what you have accomplished, what you haven't accomplished, why you haven't accomplished things, lessons learned and things you'd do differently, etc Aug 15 18:48:01 chanakya_vc: as per last week's meeting guidelines Aug 15 18:48:07 Yeah got a lot of those bradfa :P Aug 15 18:48:33 I will send it on time bradfa , I am working on it right now only Aug 15 18:48:36 chanakya_vc: also, what work can be done in the future on the code bases to make them better Aug 15 18:49:00 Okay got it bradfa Aug 15 19:20:10 hi jkridner|work Aug 15 19:21:55 I'll finish python runner today Aug 15 20:03:49 :D jic23 ! Aug 15 20:03:54 Hi ! Aug 15 20:06:11 m_w: there ? Aug 15 20:06:36 of course Aug 15 20:06:45 :) Aug 15 20:06:57 so these file : Aug 15 20:07:05 https://github.com/ZeekHuge/BeagleScope/blob/wip_parallel_interface_take2/driver/pi_bus.c Aug 15 20:07:13 its the platform_driver Aug 15 20:07:26 and https://github.com/ZeekHuge/BeagleScope/blob/wip_parallel_interface_take2/driver/parallel_interface.c Aug 15 20:07:30 is the core driver Aug 15 20:07:56 Now they are loading and detecting all the child nodes perfectly .. Aug 15 20:08:14 and declaring devices associated with those nodes Aug 15 20:08:17 but ! Aug 15 20:08:27 when I am rebooting the PRUs ... Aug 15 20:08:33 a big big big ... oops Aug 15 20:08:33 awe there is a but Aug 15 20:08:45 pastebin it Aug 15 20:08:50 so I am not freeing up the resources ... Aug 15 20:09:08 let me try ... last time it just freezed with no output. Aug 15 20:09:32 you have a serial console? Aug 15 20:09:50 you could get the logs there possibly Aug 15 20:10:08 if the system tanks Aug 15 20:10:30 serial console.. not here . Aug 15 20:10:51 and I am now unable to connect through usb Aug 15 20:11:01 * ZeekHuge is looking for eth cable Aug 15 20:13:14 into the BBB through eth Aug 15 20:13:46 again that crazy condition... no kernel module got loaded. Aug 15 20:13:54 running depmod -a Aug 15 20:15:01 now, back to normal Aug 15 20:15:08 loading beaglescope modules Aug 15 20:17:48 m_w: no message after [pi_bus] pi_bus_platform_remove and just freezes up. Aug 15 20:18:06 *pibus_platform_remove Aug 15 20:18:39 :( Aug 15 20:19:02 I can probably fix this freezing up .. let me try Aug 15 20:20:12 hmmm Aug 15 20:21:35 m_w: freezing up - fixed Aug 15 20:23:04 ha that was fast Aug 15 20:23:16 forgot some essential clean up? Aug 15 20:24:56 the oops is still there .. just that I can now see it and the board does not freezes up Aug 15 20:25:08 385 lines of oops Aug 15 20:25:17 http://paste.debian.net/789749/ Aug 15 20:25:19 m_w: ^ Aug 15 20:26:37 I am not understanding slot #4 and slot #5 when I am just loading one overlay Aug 15 20:31:33 or this one ... http://paste.debian.net/789751/ Aug 15 20:31:47 the 2nd one do not have that #5 slot Aug 15 20:31:59 yikes Aug 15 20:32:06 dont know why.. Aug 15 20:35:16 m_w: what I see in the dmesg is that none of the release methods from the parallal_interface.c are being called Aug 15 20:35:26 but only from pi Aug 15 20:35:30 yeah Aug 15 20:35:31 *pi_bus Aug 15 20:35:36 line number 26 and 27 Aug 15 20:36:06 So I am not able to understand the object destruction sequence Aug 15 20:37:11 https://github.com/ZeekHuge/BeagleScope/blob/wip_parallel_interface_take2/driver/parallel_interface.c#L63 Aug 15 20:37:18 since its devm_* Aug 15 20:37:44 it should be destructed when the parent goes down Aug 15 20:38:02 and parent == pdev->dev from pi_bus Aug 15 20:38:31 shouldnt that what happen ? Aug 15 20:38:39 https://github.com/ZeekHuge/BeagleScope/blob/wip_parallel_interface_take2/driver/pi_bus.c#L50 Aug 15 20:38:50 try removing this line Aug 15 20:39:48 okay ... rebooting bbb Aug 15 20:40:17 that makes sense ... as we are never actually registering the device . Aug 15 20:40:24 so os should manage that Aug 15 20:40:40 not sure Aug 15 20:41:08 try to trace through your code in a web browser :) Aug 15 20:45:19 any luck? Aug 15 20:45:33 m_w: new oops :) Aug 15 20:45:34 http://paste.debian.net/789754/ Aug 15 20:45:41 just a bit different Aug 15 20:46:09 and that is just a random delay I guess Aug 15 20:47:45 m_w: message is different now ! Aug 15 20:47:56 so we got rid of the first warning Aug 15 20:47:56 oops message Aug 15 20:48:04 what does it say? Aug 15 20:48:29 sysfs: cannot create duplicate filename '/devices/platform/ocp/ocp:pi0@f00/pi-0' Aug 15 20:48:35 exactly Aug 15 20:48:54 this was happening before, but after another warning Aug 15 20:49:59 yeah .. Aug 15 20:50:36 missing an unregister somewhere perhaps Aug 15 20:51:46 m_w: unregister is there but the parent function is not being called. Aug 15 20:51:48 https://github.com/ZeekHuge/BeagleScope/blob/wip_parallel_interface_take2/driver/parallel_interface.c#L45 Aug 15 20:53:48 oh ! probably I need to call unregister separately for all the devices Aug 15 20:54:24 let see Aug 15 20:56:04 yeah you have to Aug 15 20:56:18 device_for_each_child Aug 15 21:00:10 I'm using child_process to execute python scripts on beaglebone Aug 15 21:00:37 I found two methods that do that, spawn and exec Aug 15 21:01:20 spawn spawns the child asynch without blocking NodeJS, and doesn't take a callback Aug 15 21:01:56 exec executes commands in a shell and accepts a callback Aug 15 21:02:27 I tried both, they both do the same job. Aug 15 21:02:47 but exec is friendly in working with stdin than spawn Aug 15 21:03:12 I had to use stdin.write() to pass any user input to that running process Aug 15 21:03:39 but in exec, I ran a command that can take the input from user as a text file Aug 15 21:04:12 as example, "python script.py -< amr.text 2>&1 | tee -a out.text" Aug 15 21:04:30 amr.text is a textfile file that contains user inputs. Aug 15 21:05:22 and stdout is returned to out.text, if there's an error the stderr is returned to out.text Aug 15 21:06:13 this is my final solution for now, and that I found smart than spawn event listeners Aug 15 21:06:54 the output file, could be read by the function b.readTextfile() and returned to the user page. Aug 15 21:07:39 this is my progress till now Aug 15 21:07:56 I'm working hard to get the full python runner and add it to bonescript Aug 15 21:08:21 I'm currently test it with simple requests in Express NodeJS framework Aug 15 21:09:37 there was an issue with my beaglebone, that I can't run/test new functions. Aug 15 21:12:53 I sent more than an email to my mentors, and on mailing list and IRC, and not getting a response. Aug 15 21:13:00 : ( Aug 15 21:14:50 amragaey: what is the problem? Aug 15 21:17:02 I'm into a new phase in my project, and haven't get a support. I have no information about the branch or files I have to add my code to. I created my own branch and going through every single file to check where I have to put my code. Aug 15 21:17:57 I found most of code on index.js, but when adding a new function the beaglebone fails to load the web server. Aug 15 21:18:35 amragaey: do you have the exact patch? Aug 15 21:19:17 I added my file 'python-runner' into bonescript/src Aug 15 21:19:26 and contributing to it now. Aug 15 21:20:01 branch 'python-int' Aug 15 21:20:08 link? Aug 15 21:21:01 https://github.com/amragaey/bonescript/blob/python-runner/src/python_runner.js Aug 15 21:25:43 m_w: what are the flags of struct device_node Aug 15 21:25:57 amragaey: I don't see that you exposed those functions. Aug 15 21:26:14 and I am not able to find the source of struct device_node Aug 15 21:26:45 amragaey: are you running this locally or over the web page? Aug 15 21:27:25 it looks like its defined everywhere Aug 15 21:27:44 http://lxr.free-electrons.com/source/include/linux/of.h#L49 Aug 15 21:27:47 I'm running local NodeJS web server using Express framework to test the code, jkridner|work Aug 15 21:28:28 I'm not able to write in index.js (if it's the right file) Aug 15 21:29:09 so will use this file as a module, and expose it to bonescript if possible Aug 15 21:29:41 uhm.. Aug 15 21:29:57 http://events.linuxfoundation.org/sites/events/files/slides/dt_internals.pdf Aug 15 21:31:01 http://lxr.free-electrons.com/source/include/linux/of.h#L140 Aug 15 21:31:23 here are the flag descriptions ^^ Aug 15 21:42:18 amragaey: exposing to bonescript web server is fairly simple, but you need to follow some argument conventions a bit... last argument always has to be a callback. Aug 15 21:43:48 jkridner|work, yes I see it and used it on my python-runner Aug 15 21:43:51 Am i going right till now ? Aug 15 21:50:02 when I added a simple function on index.js, the server terminate I think for some error.. and i'm not able to access 192.168.7.2 anymore! Aug 15 21:54:36 my network is really acting up. Aug 15 22:00:29 amragaey: to add a RPC, see https://github.com/amragaey/bonescript/blob/python-runner/src/index.js#L557-L581... and is exposed for remote calling by https://github.com/amragaey/bonescript/blob/python-runner/src/socket_handlers.js#L95-L111 Aug 15 22:01:10 m_w: after a few more tweaks, working perfectly fine now Aug 15 22:04:08 phew Aug 15 22:04:35 ZeekHuge: you post the changes? Aug 15 22:04:53 yep .. pushed them up Aug 15 22:06:10 https://github.com/ZeekHuge/BeagleScope/commits/wip_parallel_interface_take2 Aug 15 22:06:15 last 4 commits Aug 15 22:07:48 jkridner, what is modmsg? and how will I use my object methods like pythonRunner.run()? Aug 15 22:12:04 yeah, you need to make unique function names, not member names like simply 'run'.... Aug 15 22:12:29 the methods get exposed over the RPC.... you should see simple examples like writeTextFile(). Aug 15 22:13:05 https://github.com/amragaey/bonescript/blob/python-runner/src/index.js#L488-L503 Aug 15 22:13:17 see that an 'args' array is required. Aug 15 22:14:12 all of the functions that are members of what bonescript exports and has an 'args' member that is an array of argument names will be exposed to be accessed. Aug 15 22:24:15 jkridner, check how I expose it now http://i.imgur.com/BKJkI0d.png Aug 15 22:24:38 could I do the same in bonescript Aug 15 22:25:34 or the functions should be seaparated? Aug 15 22:27:36 yuck!!!!! Aug 15 22:27:43 why are you making a new web server? Aug 15 22:28:14 this is locally outside bonescript Aug 15 22:28:18 why? Aug 15 22:28:40 just to test my pythonRunner, because i'm not able to test it in bonescript Aug 15 22:30:25 when I edit in index.js, the bone web server terminate and I can't access 192.168.7.2! I had to create another sd image : ( Aug 15 22:33:05 you must have put in a syntax error. Aug 15 22:33:50 sure Aug 15 22:34:42 so, why didn't you share what you did? Aug 15 22:35:04 doesn't make any sense to me to create a new web server. Aug 15 22:35:12 I'm not interested in reading it. Aug 15 22:35:51 I sent many emails the past few days and didn't get a response. Aug 15 22:36:05 I just wanted to save time Aug 15 22:36:56 we will use the module only, which is "pythonRunner" in bonescript. Aug 15 22:37:00 k, that's fine as some parallel thing, but I'm not interested in trying to debug it. Aug 15 22:38:47 what do you think now ? Aug 15 22:40:03 I still think you could have started with b.writeTextFile(), but I get that a 'runner' will make attaching to the stdout/stderr/stdin more simple. Aug 15 22:40:15 what I don't get is how you plan to call your runner at all. Aug 15 22:40:28 if you could describe that somehow, I think things would be easier. Aug 15 22:40:56 adding functions to the RPC should have been simple.... I'm hopeful you understand it a bit better after I showed you the example of how b.writeTextFile() works. Aug 15 22:43:45 I added this page : https://github.com/amragaey/bone101/blob/python-integration/Support/bone101/python/index.html Aug 15 22:43:59 the user will write the code, and stdin (if exists) Aug 15 22:44:34 after clicking on 'run', I'll create instance of pythonRunner with the input data Aug 15 22:44:49 run the python code, return stdout & stderr to a file. Aug 15 22:45:01 and return the file output back to the user. Aug 15 22:45:29 pythonRunner is almost finished Aug 15 22:46:27 I'm figuring out now how I could include this runner into bonescript, to expose this functions when user click 'run' or 'reset' Aug 15 22:48:10 I read the implementation of b.writeTextFile() but it's not enough for the runner, I'll have to add more functions and ends up creating a module. Aug 15 22:51:02 you'd just need some kind of pythonRunnerInit() function to create the runner. I think you are just making the API more complex than it need to be. Aug 15 22:54:09 I will write a detailed document tomorrow for everything I wrote in the runner. Aug 15 22:54:36 I think it'll make changes easier later. Aug 15 22:55:37 If you simply change the file attribute from 'script.py' to 'script.rb' you can run ruby examples also : ) Aug 15 23:01:44 The autorun service also does that. Aug 15 23:04:44 how does autorun work? alex told me that autorun is just a directory to put programs you want run automatically when the board boots up Aug 15 23:10:52 I checked it Aug 15 23:11:23 well, this could be in web page too Aug 15 23:23:43 amragaey: not when it boots, but when files are put there. and stopped again when they are removed. Aug 15 23:24:07 amragaey: the service is: https://github.com/jadonk/bonescript/blob/master/src/autorun.js Aug 15 23:24:57 seems to me the thing to do would be to add some way to attach to the stdin/stdout/stderr of the individual streams from that service.... but, it is run in a different process than bonescript's web server. Aug 15 23:26:13 amragaey: right now, all the stderr/stdout is just fed to system logs. Aug 15 23:33:21 jkridner, I'm not getting how exactly i'm getting to use it Aug 15 23:33:35 jkridner, just two mins and will push my code.. it's much simple Aug 15 23:39:42 jkridner, https://github.com/amragaey/bonescript/blob/python-runner/src/python_runner.js Aug 15 23:40:00 is that changed? Aug 15 23:40:34 yes Aug 15 23:40:46 I added two new functions Aug 15 23:40:56 the 'pythonRunner' function has sub-functions, which won't work with the bonescript RPC. Aug 15 23:41:55 you'd have to make some kind if 'init' function to call it and create a method for referencing it. Aug 15 23:41:56 then, I have to make each one a separate function Aug 15 23:42:34 jkridner, is there an example ? Aug 15 23:42:59 the reason is that the RPC is meant for running things remotely and doesn't have a way to create objects within the page itself. Aug 15 23:44:00 https://github.com/amragaey/bonescript/blob/python-runner/src/my.js#L355-L396 is a fairly complex example of creating a wrapper for a remotely created instance. Aug 15 23:44:32 it maintains an array of open ports. Aug 15 23:45:00 https://github.com/amragaey/bonescript/blob/python-runner/src/iic.js is an example of how it is used. Aug 15 23:45:22 https://github.com/amragaey/bonescript/blob/python-runner/src/serial.js is similar. Aug 15 23:46:26 this is the way I get to modules remotely that require an object to be created/opened. Aug 15 23:47:10 the 'port' is a required argument and is what uniquifies the instance. Aug 15 23:52:24 it doesn't look simple Aug 15 23:54:47 jkridner, so the other solution is to make the functions separate and call each other ? Aug 15 23:55:17 yeah. Aug 15 23:56:16 the whole issue is not being able to make real objects on the browser/client side without writing a separate browser-side library. Aug 15 23:56:44 I don't actually copy the bonescript library to the browser, I just create stub functions to pass messages. Aug 15 23:59:02 aha Aug 16 00:00:30 Is it possible to continue coding in the final week of documentation ? Aug 16 00:05:01 how could I debug my code in bonescript, as not to install new image for every syntax error : ( ? Aug 16 00:12:35 jkridner, and what do you like me to do for the final week ? **** ENDING LOGGING AT Tue Aug 16 02:59:58 2016