1 Apr 2011 09:10
Re: coffee-manager
Aha! I have solved the problem!
I add a method myInsertFile() at SkyCoffeeFilesystem.java, and then invoke it at ContikiTestEditor.js script.
That's it!
Thanks anybody!
On Thu, Mar 31, 2011 at 10:04 AM, Dingxin Xu <xdxn2010-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Thank you very much for your prompt reply, it really helps.I am not very sure whether i misunderstood the use of coffee-manager, so i will describe the detail of my work, please correct me if i made anything wrong.What i want is to use Cooja with no GUI to simulate deluge protocol under apps/deluge which involves read/write of the node's coffee file system. In order to run deluge i has to insert local file to the node's file system. With GUI-enabled cooja, i can use the node's 'Mote Interface Viewer->Coffee Filesystem' to insert local file to the node's file system manually so i can read/write then in my application. But without GUI, i can't use this method.What i previously tried is to first run cooja with GUI(so that i can get the .sky firmware and .csc simulation file), and then use coffee-manger to insert local file to the generated .sky firmware and then run cooja with no gui to load this .sky firmware. But i failed at the second step.Does my method sound reasonable? If not, how can i insert local file to the node's cfs in cooja with nogui?Please help me.On Wed, Mar 30, 2011 at 8:02 PM, Nicolas Tsiftes <nvt-02ecni/8Nmo@public.gmane.org> wrote:
------------------------------------------------------------------------------Dingxin Xu skrev 2011-03-30 11:06:1. Yes, a file system image generated by coffee-manager can be read through the CFS API, given that you use the Coffee file system implementation of the CFS API. Coffee-manager is integrated into Cooja in the Mote Interface Viewer, which you can access by right-clicking on a mote. You don't need to use it in stand-alone mode.I am using tools/coffee-manager, and have some problems:1.Does this tool mean to insert file to the fireware so i can cfs_read() them in cooja?2.what does the <file system image>mean? does it mean the .sky firmware?3.Do we need to modify sky.property file? How to modify it?4.I've tested it in two computers. In the PC, it gives no response; in my laptop, it give some errors indicate String index out of range.I've located the error which happens at name = new String(bytes).substring(index,index + conf.NAME_LENGTH);(CoffeeHeader.java).This is because bytes content is not valid character.But i don't know how to fix it.Did i use the tool in the wrong way or did i miss something?Please help!
2. In stand-alone mode, the tool generates a <firmware>.flash image, that can be used by MSPsim.
3. No.
4. There is no indication of how you are using the tool or have configured it, so I can't answer that question, unfortunately.
Nicolas
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers
------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________ Contiki-developers mailing list Contiki-developers@... https://lists.sourceforge.net/lists/listinfo/contiki-developers
RSS Feed