FRDM-K64F set the realtime clock from code?

Hi, all!
I have read the docs about rtc.time in the jwc_properties.ini file. This works ok when installing, but when the device resets or power is cycled, the clock will be incorrect. Since my app is communicating with a server, it would be simple to get the current datetime from the server. But I have not found any way to set the current clock other than the jwc_properties.ini file. Is there a way I can do this in my app? Or can my app write to the jwc_properties.ini file and then restart itself?
Thanks!

Hi!
Actually you can change the value of the property using the following method:
Settings.setStringProperty("rtc.time", "2016:01:01:00:00:00");
Your application shall exit after invoking this line in order for the property to be written into the file. Please note that the rtc is only updated from the property during power-up or reset of the MCU. So that the new time is not applied when your application restarts, you need to force MCU to restart. And because Java APIs are limited on k64 there seem to be no way to initiate that from the application
Regards,
Andrey

Similar Messages

  • How do I set the master clock output frequency on the PCI-1424?

    I want to use the master clock to generate the pixel clock to the imaging chip.

    Hi,
    We have tried everything to be able to set the Master Clock Frequency (please confirm pins 89 and 90 on the 100 pin connector). Everything we try including opening NI supplied camera files sets the Master clock to 40MHz.
    You're code however does do something, the Master clock frequency is set to 5MHz when we open a camera file with your code included. All the attributes show up in MaX but changing the values from Max has no effect, and the frequency remains at 5MHz. We undertake an apply and snap after each change of value with no effect.
    Am I missing something as the command OnBoardClock is supposed to be used to set the Master Clock Frequency, but you don't use that in your text at all. I would appreciate an explanation of the text yo
    u use, if you have the time, as I cannot find any reference to how the software knows what "Frame Grabber Clock" is.
    Thank you in advance for your help.
    Andy

  • Setting JSLink for XSLTListViewWebPart from code behind

    I am adding an XSLTListViewWebPart from within a user contol code behind.  It adds fine, but I am not able to get it to resolve the JSLink file.  The js file works, as I've attached it to a list view web part in the web part properties and it works.
    How do I set the JSLink property from the code?  I have set it on the view object and on the XsltListViewWebPart, but neither has any effect.  This has to be deployable from a wsp, so setting the value from the UI is not an option. 
    XsltListViewWebPart FooterMenuListView = new XsltListViewWebPart();
      FooterMenuListView.ListId = linkList.ID;
      FooterMenuListView.ViewGuid = linkView.ID.ToString("B");
      FooterMenuListView.JSLink = "/_Layouts/15/FooterMenu.js";                                
      FooterMenuListView.BorderStyle = System.Web.UI.WebControls.BorderStyle.None;
      FooterMenuListView.ChromeType = System.Web.UI.WebControls.WebParts.PartChromeType.None;
      phFooterMenuList.Controls.Add(FooterMenuListView);
    Any advice would be appreciated.

    Hi,
    Please try to use the code line below:
    FooterMenuListView.JSLink = "/_layouts/15/FooterMenu.js";
    Or you can upload the js file into a document library(JSLib) and use like this:
    FooterMenuListView.JSLink = "~site/JSLib/FooterMenu.js";
    JSLink also supports the following tokens, you can try it.
    •~site
    •~sitecollection
    •~layouts
    •~siteLayouts
    •~siteCollectionLayouts
    More information:
    http://spdevlab.com/2013/07/07/5-facts-about-jslink-in-sharepoint-2013-you-might-not-know/
    http://networkedblogs.com/GmSvo
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Setting the JMS Header from Payload

    Hi Experts,
    My requirement is to send the payment data coming from ECC to non sap system.Sender adapter is proxy and receiver is JMS.ECC will be sending the filename in one field and payload content as a string in another field.PI has to set the filename coming from ECC in JMS header property.What configuration changes should i need to make in JMS adapter to achieve it?
    Converting the XML to string is possible in PI.But my question is converting the string XML data into XML fields is possible in SAP PI?If so how to do that?
    Please provide your suggestion.
    Regards,
    Karthiga

    Hi Karthiga,
    The UDF is there in blog
    DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get("DynamicConfiguration");
                DynamicConfigurationKey dynamicconfigurationkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/JMS", "DCJMSMessageProperty0");
                String s = dynamicconfiguration.get(dynamicconfigurationkey);
                CorrID.append(s);
    Please let me know if you have any issue.
    regards,
    Harish

  • How to change/set the browser title from web forms (XP platform with SP2)

    I am running Form9i, I have set the browser windows title from Web Forms dynamically by using following method. However, when my PC has changed to XP, the function seems not work. Does anybody have same problem and how to solve it? Any suggestions would be appreciated.
    Add the Javascript code to your baseHTML file. For example,
    if you are using the basejini.htm:
    <HEAD><TITLE>%pageTitle%</TITLE>
    <script language="javascript1.2" type="text/javascript1.2">
    function Change(a) {    document.title=a;    } </script>
    </HEAD>
    In web Forms , call the javascript function with WEB.SHOW_DOCUMENT built.
    For Example the following code set the browser title with username . web.show_document('javascript:Change('||'"'|| get_application_property(USERNAME)||'"'||')','_self');
    Best Regards,
    Bowie

    Dear Frank,
    Thanks for your reply. Can you tell me in detail which built-in function in Webutil can set value in browser title ?
    Btw, is it possible for me to set parameter "separateFrame=True" in formsweb.cfg and set the form window title by using SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,v_msg_string)?
    Best Regards,
    Bowie

  • Setting the PC clock

    Is there a way to programmatically set the overall PC clock from LabView? Would be most helpful if I were able to do this within my application, but I can't see any way of making it happen.
    Thanks in advance

    Jeff Bohrer wrote:
    Of course you could sync both pc directly to a day-time server usuing the public domain utility found here.  There are command line swithces so that you can call NISTime.23 with System Exec.vi
    I could be wrong but based on the way the OP described the enviroment I don't think these computers have any access to the internet. The only devices they see are all connected to a single switch. Therefore while your solution would work in most cases it would not work for this particular situation.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Setting the layer name from a format plugin with CS2 and before

    Hello,
    I wrote a new format plugin and the name of the layer shown in PS , when I read a file, does not seem to be consistent on all computers for versions CS2 and before :  some times I get "Background" and some times I get "Layer 0" .
    When the layer is named is "Background",  it is locked. If I double click on the layer, I get a panel to rename it and the name suggested is "Layer 0" (and not "Background").
    Somehow, it seems that my plugin is not doing exactly the right thing or there is a setting in PS options (or in the registry) that controls/causes that behavior. My understanding is that we can't name layers from the plugin before version CS3 (setting the layerName field in the FormatRecord makes no difference for CS2 and before).
    I do not care much about the actual layer name as long as that name is consistent for all installations. Does anybody know what is going on?
    Thank you!
    Gilbert

    If it has transparency, it has to be a layer ("Layer0").
    If it doesn't have transparency, it is treated as a background.
    And yes, changing the background to a layer does normally rename it to "layer X".

  • How to set the ODBC driver from Micorosft ODBC manager in vista 64bit

    Dear Sir/Madam
    I just installed Vista ultimate (64 bit) on my computer.
    After that, I downloaded and installed Oracle Database 10g Client Release 2 (10.2.0.3) from http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10203vista.html
    Set up the network config from net configuration assistant is fine (tnsnames.ora).
    When I want to set up the system ODBC from Microsoft ODBC manager.
    I can't found oracle driver from Microsoft ODBC manager (only Sql Server driver is existing ).
    Why? and how to found it out?
    Thanks
    Francis SZE

    Database 10g Client Release 2 (10.2.0.3) from
    http://www.oracle.com/technology/software/products/da
    abase/oracle10g/htdocs/10203vista.htmlWhich means you will be using the 32-bit environment on top of the x64 based os (WoW64). Have you verified that the Database product is certified for Vista "x64" editions?
    http://support.microsoft.com/kb/896456/en-us
    I can't found oracle driver from Microsoft ODBC
    manager (only Sql Server driver is existing ).
    Why? and how to found it out?You are likely looking in the wrong place. DSNs with 32-bit drivers are managed through odbc admin tool in %systemroot%\syswow64\.

  • How to set the HOME link from two frame jsp page to no frame main page?

    Hi all,
    i have one main jsp page named as main.jsp.
    From the main.jsp, i can click the button and link to the twoFrame.jsp.
    This twoFrame.jsp have another two different jsp inside the frame called Aframe.jsp and Bframe.jsp.
    i try to put HOME in the Aframe.jsp(one of the page inside twoFrame.jsp) but only the Aframe.jsp manage to link to main.jsp but the Bframe still there.
    My question is: How to set the HOME link button from this twoFrame.jsp to the main.jsp? what i want is from twoFrame.jsp(two frame) to main.jsp(no frame).
    rgds,
    Bryan523

    No offense, but this is basic HTML. You shuold look into learning HTML before getting too deep into JSP. Try this: http://www.w3schools.com/html/default.asp
    But as a more specific answer, you have to set a target for the link to the _parent of your frame:
    <a href="main.jsp" target="_parent">Home</a>

  • How to set the system clock in win2000? in linux? (RH)

    hi There,
    I need to set the system time on a pure java application.
    what is the proper way to do so? (I can't find any system property which corresponds to the system clock).
    if it's platform dependent , then I need to do so on win2000 and on linux RH.
    thanks

    I don't know about Windows but on RedHat, I would use the date command. Check the man pages for date and look at the -s or --set options.  Do a Runtime.exec to execute that.
    Of course, doing the in Java is not the best option. If you are trying to synchronized clocks on Windows and Linux systems, I would use some freely available Network Time Protocol programs. RedHat has a free NTP daemon available as an RPM in the standard distribution. For Windows, theres a free program called "Net Time" that runs as a service. Both can act as clients and servers.

  • Can I set the iOS6 clock alarm volume?

    Dear Folks,
    The (alarm) clock built into iOS6 seems very slick, but the volume is too low to wake me up. I can't seem to find a setting to change the alarm volume (nor does the physical volume switch alter it).
    Is there a way to do this?
    Thanks!
    pax / Ctein

    Dear Moireach,
    Yeah, that works! 
    A minor correction -- The 'official' name for that volume control  is "Ringer and Alerts," not "Sound Effects." It's the slider right at the top of the Sounds setting screen on the iPad.
    Thanks for your help.
    pax / Ctein

  • How to set the target directory from source filename using adaptor module.

    Hi,
    How im using a logical bypass scenario.I have to set the target directory using the sorce filename.There is no chance of using a Java UDF as my scenario does not have a Mapping(as it is a Bypass Scenario).The only option that i got is to use a Adaptor module.Can anyone help  me this.
    Thanks,
    Bhargav

    Hi,
    See this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/61e1407e858031e10000000a1550b0/content.htm
    hope it helps.
    Regards,
    Akshay Jamgaonkar.
    Reward points if find useful.

  • Get an set the SQL statement from a report at runtime

    i know there is an opportunity to filter the records by using setRecordSelectionFormula() method...but i wondered if you can anyhow get the whole SQL statement that is in the report. i think it would be very useful for many developers to maipulate the SQL directly like you were able to using the PE-functions in the old CRPE32.DLL...
    but in CR XI the CRPE32.DLL is no longer supported. now we have to substitute these functions with the JRC but i am not sure if it provides everything we had in the CRPE32.DLL...
    after all i do not understand why the CRPE32.DLL is still delivered but not supported. in my CR XI R2 installtion i found this file signed with version 11.5.3.438
    by the way it is a question of performance...a query would be faster if you could directly query the database by changing the reports sql statement instead of allowing the report to retrieve all data and then performing the filtering.
    so please, for the next version of the JRC give us the opportunity to get an set the sql statement of a report directly!

    Not an option. crpe32 is proprietory and the SQL we generate is to complex to assume it will be done correctly. Which is why the ability was removed

  • Setting the Spool Title from Information Broadcaster

    I have a BI 7.0 SP 15 environment. We are trying to use the Information Broadcaster to setup a schedule of a few hundred reports to be sent to the printer. The problem is we need to be able to set the title line of the spooler, but I can seem to find any parameters directly in the Information Broadcaster that will set the title line. Every time I send a report to the printer the title line of the spool is blank. Does anyone know of a way to set this parameter? Is there a way of modifying an ABAP program to set this parameter? I know there are way of programmatically setting this parameter, I just dont know which program to modify to get this to work.
    Thanks for any assistance,
    Tim

    It was output_options-TDCOVTITLE and not output_options-tdtitle,
    But thanks any way!!

  • Is there a way to set the binding policy from command line?

    I'm unable to save the Binding Policy setting "Allow users to edit their own contact information" using the server admin gui. I click it and press save, but the checkbox clears when the spinner at the bottom stops.
    I'd love to know where this setting resides or if it can be set via the command line.

    I've finally found a solution to this!
    Open the "all records" tab in workgroup manger, and find the OLCBDBConfig from the dropdown list.
    Go to "{1}bdb" and expand "dsAttrTypeNative:olcAccess(23)", then edit the "{0}to" entry.
    On my OD it was set like this:
    {0}to dn.onelevel="cn=users,dc=mydomain,dc=com" attrs=apple-mcxflags,apple-mcxsettings by set="user/uid & [cn=admin,cn=groups,dc=mydomain,dc=com]/memberUid" write by sockurl="ldapi://%2Fvar%2Frun%2Fldapi" write by dn.exact="cn=myserver.mydomain.com$,cn=computers,dc=mydomain,dc=com" write by * read
    While it should read like this:
    {0}to dn.one="cn=users,dc=mydomain,dc=com" attrs=@apple-user-info by set="user/uid & [cn=admin,cn=groups,dc=mydomain,dc=com]/memberUid" write by sockurl="ldapi://%2Fvar%2Frun%2Fldapi" write by dn.exact="cn=myserver.mydomain.com$,cn=computers,dc=mydomain,dc=com" write by self write by * read
    Note that I have an LDAP search policy of mydomain.com and a FQDN of myserver.mydomain.com.
    I had to change bit by bit, starting with "dn.onelevel" to "dn.one", then "attrs" and finally the "write" part at the end.

Maybe you are looking for

  • Windows 7 64bit indexing network mapped drive

    Hi people, I've spent a lot of time with windows indexing on mapped drive. But without result. I've tried install hotfix, but nothing happens, Add-in works only for 32bit system, but I use 64bit. Using of symbolic link in library is without result to

  • How do I save an album to my iPad?

    How do I save an album to my iPad?  This really should be pretty basic.

  • How to add new field XREF3 in FB50

    Hi, I have a problem with adding the new field XREF3 in FB50 transaction in Items window. I configured field status group in OBC4 and OB41 transaction for XREF3 as optional entry. XREF3 is available in FB01 transaction but not in FB50. I checked tabl

  • Apple id verification international

    I am currently traveling overseas, and do not have SMS text activated since I was using iMessage and FaceTime when on wifi.  Long story short, I accidentally switched my iMessage and FaceTime accounts to an old Apple ID.  After switching it back to t

  • Is it possible through labview to set and read window¿s based file properties​?

    Any file in XP operating system has file properties associated with it, such as, size, location, when the file was created, modified and last accessed. I know that Labview has the ability to access the size and modified property. Other file types suc