Initialize of GPIO pins

Hi i have initialized 6 GPIO pins in 1 port. In InPort. I mean the information is going from the pins to the TC65 device.
And I have to some how detect wen ther is ongoing information in the port.
I mean wen there is a signal in a GPIO3 pin to the TC65 device to detect it and to write some mesege to the console.
This is just basic becouse I don't know how to do it.
Here is my resource kod:
int X1=3,X2=4,X3=5,X4=6,X5=7,X6=8;
private InPort inport = null;
else if (command.equals("inport"))
try {
Vector inPortPins = new Vector();
inPortPins.addElement("GPIO" + X1); // "GPIO" + X1 = GPIO3
inPortPins.addElement("GPIO" + X2);
inPortPins.addElement("GPIO" + X3);
inPortPins.addElement("GPIO" + X4);
inPortPins.addElement("GPIO" + X5);
inPortPins.addElement("GPIO" + X6);
inport = new InPort(inPortPins);
APortListener aListener = new APortListener();
inport.addListener(aListener);
inport.addListener(this);
System.out.println("Reading GPIO input for next 30 seconds");
Thread.sleep(300000);
System.out.println("Done reading GPIO");
} catch (Exception e) {
e.printStackTrace();
public void portValueChanged(int arg0) {
System.out.println("InPortExample value:" + arg0);
try {
System.out.println("");
System.out.println("InPort:" + inport.getValue());
} catch (IOException e) {
import com.siemens.icm.io.InPortListener;
public class APortListener implements InPortListener {
public APortListener() {
public void portValueChanged(int arg0) {
System.out.println("APortListener value:" + arg0);
So please if some of you knows how to do it help me.
This is important for me because it is my work.
Edited by: WepstanXT on Dec 16, 2009 11:34 PM
Edited by: WepstanXT on Dec 16, 2009 11:36 PM

Rinju
When you click on "initialize planning area" option time series gets created for the newly created characteristic value combinations.  The key figure values are stored in the time series and order series live cache and initialization of the p.a is like allocating a spot in the live cache to store the key figure values.
Deinitialization of the planning area leads to loss of time series values. So you should not deinitialize the planning area unless there is a change in the structure of the planning area. For example if you want to add new key figures to a planning area then deinitialization and reinitialization of the planniing area is required.
Thanks
Aparna

Similar Messages

  • Initialize I/O Pin

    I am a new programmer, I got a question, hope get help from you.
    How to initialize Pin I/O of NI 6036E, e.g. set PFI 9 Low or High in DAQmx ANSI C ?
    Thanks

    You would not use one of the PFI lines generally. What you are describing is Digital I/O functionality. You can find examples of how to do this on your own computer (if you have the DAQ driver installed). It should be located here:
    C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Digital\Generate Values
    Regards,
    Anuj D.

  • Need help to identify the GPIO pins of WRT160NL router

    Hi,
    Please share the following GPIOs location in the hardware board(image).
      - GPIO0,
      - GPIO6 (LED_WLAN),
      - GPIO8 (LED_WPS_BLUE),
      - GPIO9 (LED_WPS_AMBER),
      - GPIO13 (UART_RX),
      - GPIO14 (LED_PWR)

    Hello chandandascyr07. I don't think Linksys will be able to provide you the GPIO data since it's basically a proprietary company  information.

  • PKCS#11 pin initialization

    How to initialize smartcard's pin number using Sun PKCS#11 implementation ?
    How to personalize smartcard (generate keys and load certificate) using Sun PKCS#11 implementation ?

    String configName = "C:/pkcs11.cfg";
         provider = new sun.security.pkcs11.SunPKCS11(configName);
         System.out.println("provider name: " +provider.getName());
         System.out.println("provider information : " +provider.getInfo());
         Security.addProvider(provider);
         KeyStore keyStore = null;
         keyStore = KeyStore.getInstance("PKCS11",provider);
    System.out.println("password from form --> "+tokenPassword.toString());
         keyStore.load(null,tokenPassword);
         provider = keyStore.getProvider();
         //Retrieving certificate chains from E-Token
         for(Enumeration e = keyStore.aliases() ; e.hasMoreElements() ;)
         alias = e.nextElement().toString();
         //Retrieving private key from E-Token
         PrivateKey privKey = (PrivateKey)keyStore.getKey(alias, tokenPassword);
         System.out.println("private Key ===>\n"+privKey);
         java.security.cert.X509Certificate cert = (java.security.cert.X509Certificate)keyStore.getCertificate(alias);
         java.security.cert.Certificate[] certChain =keyStore.getCertificateChain(alias);
         PublicKey pubKey = cert.getPublicKey();
         System.out.println("PUBLIC KEY FROM E-TOKEN ==>\n"+pubKey);
         //pdf document before digital sign
         PdfReader reader = new PdfReader("D:/Reports/Standard/"+downloadpath);
         //New pdf document created for digital sign
         FileOutputStream fout = new FileOutputStream("D:/Reports/Standard/dig"+downloadpath);
         //generating digital signature for sign a pdf document
         PdfStamper stp = PdfStamper.createSignature(reader, fout,'\0');
         PdfSignatureAppearance sap = stp.getSignatureAppearance();
         sap.setCrypto(privKey, certChain, null,PdfSignatureAppearance.WINCER_SIGNED);
         sap.setReason("Certifying Authority");
         sap.setLocation("HYD");
         //comment next line to have an invisible signature
         sap.setVisibleSignature(new Rectangle(100, 150, 200, 200), 1, null);
         stp.close();
         //unregistering the provider (E-Token).
         //Security.removeProvider("SunPKCS11-GNFCeToken");
         Security.removeProvider(provider.getName());
         System.out.println("provider Info-> "+provider.getProperty("Provider.id info"));
         System.out.println("provider pkcs-> "+provider.getProperty("KeyStore.PKCS11"));
         System.out.println("provider class->"+provider.getClass());               
    provider.remove("provider.id info");
         provider.remove("Provider.id className");
         provider.clear();

  • Minnow Max GPIO access

    Hi All,
    I have a Minnow Max Board here with Win8.1 embedded installed.
    I would like to access the GPIO pins of the board from a C++ Win32 Application.
    What is the most straightforward way to do so?
    What I already investigated:
    There is a simple tool from Intel "GPIO Tool", which was designed to setup GPIOs correctly for your application and altering the EFI accodringly. This tool can readout the current GPIO setup, you can alter it live (like setting Pins high/low).
    This tools does not install any additional special drivers.
    There is a driver package from Intel "Intel Atom Processor E3800 Embedded IO Drivers for Windows 7 (32-bit & 64-bit) - MR1". This package includes a software developers guide with headers. Unfortunately this is only for Win7, the Win8 drivers
    Package from Intel does not include the developers information and headers.
    In a different thread in this forum another user asked a similar question, unfortunately the answer was a bit spartanic: "GPIO access can be done using the Arduino API". I was following this lead, compiled an exe, put this onto my Minnow Max but
    this wouldnt start - access violation (yea runtimes installed aso.).
    I went over the accelerometer sample here on msdn, which seemed to be far to complicated for my use case, which is just getting the status of one pin once in a while.
    Any suggestions are highly welcome.
    Thanks for your help in advance.
    Martin

    Unless the GPIO pins can be described using ACPI, you'll have to write a driver that uses the Win8 GPIO framework. If you have Win8.1, then you can either write a UMDF 2.0 or KMDF driver, with the UMDF driver being the easiest to develop because errors won't
    crash the system. The WDK docs for writing a GPIO driver are
    here, and the WDK samples (including some GPIO examples) are
    here. For questions relating to Windows drivers, the forum is
    here
     -Brian
    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

  • Support B+ pins and possible to setDirection ?

    I am doing the simple GPIOLEDtest program from the course but I am trying to do it on GPIO04. It does not allow me to open it since it seems only to allow this pin as input.
    When I try to set the direction to 1 which is OUTPUT, I get an error message ""java.lang.UnsupportedOperationException: Incompatible direction"
    I did set the API permission to allow me to change direction, but it does not work.
    Also, when I try to use B+ GPIO pins like GPIO16 I also get an error message "DeviceException: Device 16 not found"
    I am using me version 8.1, which should offer support for the model B+.
    Is it something I am doing wrong or are these restrictions in javame8.1 ?

    Never mind. I found the answer myself. I was trying to change the direction after opening the device with the device manager. I now found I need to do it as part of the opening of the device by giving it the right config right away.
    So I am now using the code:
    GPIOPinConfig config1 = new GPIOPinConfig(portID, ledID, GPIOPinConfig.DIR_OUTPUT_ONLY,DeviceConfig.DEFAULT, 0, false);
            LED = DeviceManager.open(config1);
    Instead of:
            LED=DeviceManager.open(ledID);
            LED.setDirection(1);
    This is the same approach as when configuring switches in the later lessons.
    Now I can change the exiting pins to output and I can also use the new pins of the Raspberry B+ model to driuve the LEDs, wuthout error messages.

  • FTDI FT4222.DLL calling

    I am attempting to use the FTDI FT42222 usb to SPI/I2C/GPIO chip with LabVIEW.
    FTDI provides two dll's that talk to the chip. After some trial and error, it appears that one dll uses the C calling convention, the other uses winapi convention. FTd2xx.dll and FT4222.dll are provided by FTDI. FTD2xx.dll are the generic USB open device calls and FT4222.dll are the FT4222 specific support.
    With that figured out, I was able to successfully communicate via I2C.
    Having that, I now would like to use the remaining GPIO pins, one for input, one for output.
    So I started and can initialize the port with no errors returned. But, reading or writing to the pins returns an error.
    I think it might be the way I'm calling the following:
    LIBFT4222_API FT4222_STATUS FT4222_GPIO_Init(FT_HANDLE ftHandle, GPIO_Dir gpioDir[4]);
    LIBFT4222_API FT4222_STATUS FT4222_GPIO_Write(FT_HANDLE ftHandle, GPIO_Port portNum, BOOL bValue);
    Their docs show:
    xx_STATUS       DWORD
    FT_HANDLE    DWORD
    GPIO_DIR        enum
    GPIO_Port        enum
    BOOL                unsigned char
    So, I used the following in my library function node:
    xx_STATUS        Numeric, Unsigned 32-bit Integer
    FT_HANDLE     Numeric, Unsigned 32-bit Integer, Pass:Value
    gpioDir[4]           Array, Unsigned 32-bit Integer, Array Data Pointer
                                  (Here I pass in a 4 element U32)
    portNum            Numeric, Unsigned 32-bit Integer, Pass:Value
    bValue                Numeric, Unsigned 8-bit Integer, Pass:Value
    I'm thinking since all works well for the I2C communication, that I've gotten the STATUS and HANDLE definitions correct.
    Am I right in assuming the bools end up 8 bit integers and enums will end up being unsigned 32-bit?
    Do I need to use the old trick using a cluster with the first element the array size to pass the gpioDir array?

    I guess it's not clear from what I posted, but their docs show gpioDir as an array:
    I have since got it working and each of the 4 elements of the array controls the direction of one of the 4 I/O pins.
    It turns out to get the GPIO pins to work as GPIO in Mode 0 of the chip, you need to de-assign the default functions of the pins. In Mode 0, pins 0 & 1 are I2C SDA & SCL and pins 2 & 3 are wake and suspend. De-assigning wake and suspend allows GPIO control of pins 2 & 3, while I2C is still functional on pins 0 & 1.
    Regards,
    Mac

  • SPI XSpi_SelfTest returning XST_REGISTER_ERROR

    Hi ,
     I have configured microblaze in spartan 6 XC6SLX45 using xilinx XPS. Now I am using sdk to program master SPI (xps_spi 2.02)in microblaze that drive external slave. I checked the loopback mode working using self test. But the return status is XST_REGISTER_ERROR. Why would this happen and how would I solve it?? My code is :
    #include <stdio.h>
    #include "platform.h"
    #include "xparameters.h"
    #include <xspi.h>
    #include <xspi_l.h>
    #define SPI_DEVICE_ID XPAR_XPS_SPI_0_DEVICE_ID
    #define SPI_SELECT 0x01
    int SpiSelfTestExample(u16 DeviceId);
    XSpi Spi;
    int i=0;
    void print(char *str);
    int main()
    init_platform();
    while(i<10)
    print("Hello World\n\r");
    i++;
    int Status;
    Status = SpiSelfTestExample(SPI_DEVICE_ID);
    return 0;
    int SpiSelfTestExample(u16 DeviceId)
    print("Entered the function");
    int Status;
    XSpi_Config *ConfigPtr; /* Pointer to Configuration data */
    * Initialize the SPI driver so that it is ready to use.
    ConfigPtr = XSpi_LookupConfig(DeviceId);
    if (ConfigPtr == NULL) {
    return XST_DEVICE_NOT_FOUND;
    print("\nDevice not found");
    else
    print("\nThe device found");
    Status = XSpi_CfgInitialize(&Spi, ConfigPtr,
    ConfigPtr->BaseAddress);
    if (Status != XST_SUCCESS) {
    return XST_FAILURE;
    print("\nDevice not configured");
    else
    print("\nDevice configured");
    * Perform a self-test to ensure that the hardware was built correctly
    Status = XSpi_SetOptions(&Spi, XSP_MASTER_OPTION);
    if (Status != XST_SUCCESS) {
    return XST_FAILURE;
    print("\nSPI not set as master");
    else
    {print("\nSPI set as master");}
    Status = XSpi_SelfTest (&Spi);
    if (Status == XST_SUCCESS)
    print("\nSucess");
    else if(Status == XST_REGISTER_ERROR)
    print("\nRegister did not read or write properly");
    else if(Status == XST_LOOPBACK_ERROR)
    print("\nError in loopback");
    else
    print("\nAtleast function has returned");
    return 0;
    I have mapped SPI pins to gpio pins in FPGA. Please mention why this error occurs and how can I solve it. Thanks in advance.

    Hi,
    Also I would like to know how to set spi slave select register when i have an external slave like external ADC and the spi outputs are ported to gpio pins of fpga. Actually in above case I have simply set the slave reg to 1. I could'nt find  specifications of actual register that is being set.

  • Xorg.conf trouble

    List of my xorg.conf:
    Section "Device"
    Identifier "AMD LX800 onboard video card"
    Driver "geode"
    BusID "PCI:0:1:1"
    Option "FlatPanel"
    Option "NoCrtEnable"
    Option "Accel"
    Option "ShadowFB"
    EndSection
    Section "Screen"
    Identifier "Default Screen"
    Device "AMD LX800 onboard video card"
    Monitor "Generic Monitor"
    DefaultDepth 16
    SubSection "Display"
    Depth 16
    Modes "800x600"
    EndSubSection
    EndSection
    output for startx:
    AmdPciProbe: Probing for supported devices!
    Unable to open /dev/cpu/0/msr: 2
    (EE) GEODE(0): GPIO pins are in serial mode. Assuming no DDX
    Fatal server error:
    AddScreen/ScreenInit failed for driver 0
    Last edited by XaverOz (2012-03-14 08:48:15)

    t1nk3r3r wrote:
    1. I wasn't aware there was an "amd" driver
    2. BusID matches output of "lspci | grep VGA" ?
    3. Is there a "/etc/X11/xorg.conf.d/20-*.conf" ?  xorg.conf not needed unless you mean to use fglrx for ATI/AMD.
    1. sorry there is error, edit on "geode"
    2. lspci | grep VGA
    00:01.1 VGA compatible controller: Advanced Micro Devices [AMD] Geode LX Video
    3. ls /etc/X11/xorg.conf.d/
    10-evdev.conf
    10-synaptics.conf
    50-vmmouse.conf
    10-quirks.conf
    50-joystick.conf
    Last edited by XaverOz (2012-03-14 08:53:22)

  • Why NumberFormatException thrown at code: DeviceManager.open(7);

    I am trying a very basic GPIO pin access program thru Java ME 8.1 (SDK). For this I am creating a custome device thru Custom Device Editor. The configuration of the custom device is as follows (it has only one GPIO pin):
    ID: 7, Name: Pin7, H/W Port Number: 0, H/W Pin Number: 7, Direction: Output, Trigger: None, Output: True(checked), Value: Low, Opened: No, Power: On (Group ID: 1)
    Here is my MIDLet class to access the GPIO Pin:
    package gpio;
    import java.io.IOException;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    import jdk.dio.DeviceManager;
    import jdk.dio.DeviceNotFoundException;
    import jdk.dio.UnavailableDeviceException;
    import jdk.dio.gpio.GPIOPin;
    public class GPIOController extends MIDlet {
        GPIOPin pin7;
        public GPIOController() {
            // TODO Auto-generated constructor stub
        @Override
        protected void destroyApp(boolean unconditional)
                throws MIDletStateChangeException {
            try {
                pin7.close();
            } catch (IOException e) {
                System.out.println("IOException");
                e.printStackTrace();
        @Override
        protected void startApp() throws MIDletStateChangeException {
            try {
                pin7 = DeviceManager.open(7);
                pin7.setValue(true);
                Thread.sleep(5000);
                pin7.setValue(false);
                Thread.sleep(2500);
            } catch (DeviceNotFoundException e) {
                System.out.println("DeviceNotFound Yaar!");
                e.printStackTrace();
            } catch (UnavailableDeviceException e) {
                System.out.println("Yaar Device is Unavailable");
                e.printStackTrace();
            } catch (IOException e) {
                System.out.println("IOException raised");
                e.printStackTrace();
            } catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            } catch (NumberFormatException ne){
                System.out.println("number format exception thrown");
                ne.printStackTrace();
    Output Console:
    number format exception thrown
    java.lang.NumberFormatException:
    - java/lang/Integer.parseInt(), bci=45
    - java/lang/Integer.parseInt(), bci=3
    - jdk/dio/DeviceMgmtPermission.implies(), bci=341
    - com/oracle/meep/security/PermissionsHash.implies(), bci=57
    - com/oracle/meep/security/Permissions.implies(), bci=24
    - com/oracle/meep/security/AccessControllerInternal.checkPermission(), bci=28
    - java/security/AccessController.checkPermission(), bci=1
    - jdk/dio/DeviceManager.open(), bci=169
    - jdk/dio/DeviceManager.open(), bci=3
    - jdk/dio/DeviceManager.open(), bci=4
    - gpio/GPIOController.startApp(GPIOController.java:34)
    - javax/microedition/midlet/MIDletTunnelImpl.callStartApp(), bci=1
    - com/sun/midp/midlet/MIDletPeer.startApp(), bci=5
    - com/sun/midp/midlet/MIDletStateHandler.startSuite(), bci=246
    - com/sun/midp/main/AbstractMIDletSuiteLoader.startSuite(), bci=38
    - com/sun/midp/main/CldcMIDletSuiteLoader.startSuite(), bci=5
    - com/sun/midp/main/AbstractMIDletSuiteLoader.runMIDletSuite(), bci=130
    - com/sun/midp/main/AppIsolateMIDletSuiteLoader.main(), bci=26
    Device Log
    [18:30:23.784]   INFO - lkit.bootstrap.DeployerManager - Registering custom property editors
    [18:30:23.808]   INFO - me.toolkit.bootstrap.Namespace - Starting batch, base module object-server
    [18:30:23.827]   INFO - bootstrap.ObjectGraphProcessor - Consolidating dependencies...
    [18:30:23.828]   INFO - bootstrap.ObjectGraphProcessor - Consolidated dependencies...
    [18:30:23.828]   INFO - bootstrap.ObjectGraphProcessor - Calculating order...
    [18:30:23.829]   INFO - bootstrap.ObjectGraphProcessor - Calculated order
    [18:30:23.857]   INFO - un.jme.toolkit.bootstrap.Batch - Initializing objects...
    [18:30:23.858]   INFO - un.jme.toolkit.bootstrap.Batch - Applying I18N
    [18:30:23.858]   INFO - un.jme.toolkit.bootstrap.Batch - Initialized objects
    [18:30:23.858]   INFO - un.jme.toolkit.bootstrap.Batch - Calling create() methods...
    [18:30:23.859]   INFO - un.jme.toolkit.bootstrap.Batch - Calling start() methods...
    [18:30:23.867]   INFO - un.jme.toolkit.bootstrap.Batch - Objects started
    [18:30:23.871]   INFO - me.toolkit.bootstrap.Namespace - Starting batch, base module devices/GPIOPin
    [18:30:26.899]   INFO - bootstrap.ObjectGraphProcessor - Consolidating dependencies...
    [18:30:26.900]   INFO - bootstrap.ObjectGraphProcessor - Consolidated dependencies...
    [18:30:26.900]   INFO - bootstrap.ObjectGraphProcessor - Calculating order...
    [18:30:26.908]   INFO - bootstrap.ObjectGraphProcessor - Calculated order
    [18:30:28.097]   INFO - un.jme.toolkit.bootstrap.Batch - Initializing objects...
    [18:30:28.504]   INFO - un.jme.toolkit.bootstrap.Batch - Applying I18N
    [18:30:28.505]   INFO - un.jme.toolkit.bootstrap.Batch - Initialized objects
    [18:30:28.505]   INFO - un.jme.toolkit.bootstrap.Batch - Calling create() methods...
    [18:30:28.659]   INFO - un.jme.toolkit.bootstrap.Batch - Calling start() methods...
    [18:30:33.628]   INFO - n.kvem.location.LocationBridge - Location dir contents: [Ljava.io.File;@16612a51
    [18:30:33.628]   INFO - n.kvem.location.LocationBridge - LandmarkStore names java.util.Collections$EmptyEnumeration@54e041a4
    [18:30:33.628]   INFO - n.kvem.location.LocationBridge - Landmark stores:
    [18:30:33.629]   INFO - n.kvem.location.LocationBridge - Get categories from store: null
    [18:30:33.635]   INFO - n.kvem.location.LocationBridge - Default LandmarkStore:com.sun.kvem.location.LandmarkDB@18317edc
    [18:30:33.635]   INFO - n.kvem.location.LocationBridge - LandmarkStore: com.sun.kvem.location.LandmarkDB@18317edc
    [18:30:33.635]   INFO - n.kvem.location.LocationBridge - Concatinated categories:
    [18:30:33.816]   INFO - .rmiimpl.RemotingConnectorImpl - Starting JMX connector on service:jmx:rmi:///jndi/rmi://127.0.0.1:60379/device-3
    [18:30:53.726]   INFO -                      VM-CORE@0 - javanotify_set_vm_args() >>
    [18:30:53.727]   INFO -                      VM-CORE@0 - javanotify_start() >>
    [18:30:53.762]   INFO - toolkit.ui.actions.AmsExecImpl - Proxy connected. isNetworkMonitorSupported = false
    [18:30:54.135]   INFO - un.jme.toolkit.bootstrap.Batch - Objects started
    Please let me know what wrong am I doing?
    Sincerely,
    M. Nawazish. Khan

    Hi Nawazish,
    you are doing all right. Could you provide example of DeviceMgmtPermission from your application JAD file?
    /Sergey

  • Proxy client (over USB connection) with DHCP assigned IP address doesn't work with FRDM-K64F

    Hello,
    after reading about the issues on this forum with a static IP address on the Freescale FRDM-K64F board I went for an DHCP address but I can't get the proxy client to work over a USB connection with DHCP either.
    My console tells me the following:
    RTC Time: Wed 2014-01-01 00:07:27
    Network initialized
    IP Address:      10.143.xxx.yyy (xxx and yyy is real numbers, just changing them for the forum to letters)
    Subnet mask:     255.255.252.0
    Gateway:         10.143.xxx.yyy
    MAC-address:     00:0c:00:06:70:00
    And when I try o to connect with the following command :
    java -jar proxy.jar -socket 10.143.xxx.yyy
    I get the following output and no CLI interface:
    Trying to open socket connection with device: 10.143.xxx.yyy:2201
    Connected to the socket: Socket[addr=/10.143.xxx.yyy,port=2201,localport=49605]
    Open channel 8 with hash 0x130399b3
    Channel 8 CLOSED -> OPENED
    notifyResponse AVAILABLE_RESPONSE on channel 8
    Channel 8 OPENED -> AVAILABLE
    Open channel 9 with hash 0x0
    Channel 8 AVAILABLE -> REQUEST_SENT
    notifyResponse ACK_RESPONSE on channel 8
    Channel 8 REQUEST_SENT -> ACKNOWLEDGED
    Channel 8 ACKNOWLEDGED -> DATA_SENT
    notifyResponse AVAILABLE_RESPONSE on channel 8
    Channel 8 DATA_SENT -> AVAILABLE
    Channel 8 AVAILABLE -> REQUEST_SENT
    notifyResponse ACK_RESPONSE on channel 8
    Channel 8 REQUEST_SENT -> ACKNOWLEDGED
    Channel 8 ACKNOWLEDGED -> DATA_SENT
    notifyResponse AVAILABLE_RESPONSE on channel 8
    Channel 8 DATA_SENT -> AVAILABLE
    Channel 8 AVAILABLE -> REQUEST_SENT
    notifyResponse ACK_RESPONSE on channel 8
    Channel 8 REQUEST_SENT -> ACKNOWLEDGED
    Channel 8 ACKNOWLEDGED -> DATA_SENT
    notifyResponse AVAILABLE_RESPONSE on channel 8
    Channel 8 DATA_SENT -> AVAILABLE
    Channel 8 AVAILABLE -> REQUEST_SENT
    notifyResponse ACK_RESPONSE on channel 8
    Channel 8 REQUEST_SENT -> ACKNOWLEDGED
    Channel 8 ACKNOWLEDGED -> DATA_SENT
    notifyResponse AVAILABLE_RESPONSE on channel 8
    Channel 8 DATA_SENT -> AVAILABLE
    Channel 8 AVAILABLE -> REQUEST_SENT
    notifyResponse ACK_RESPONSE on channel 8
    Channel 8 REQUEST_SENT -> ACKNOWLEDGED
    Channel 8 ACKNOWLEDGED -> DATA_SENT
    notifyResponse AVAILABLE_RESPONSE on channel 8
    Channel 8 DATA_SENT -> AVAILABLE
    Channel 8 AVAILABLE -> REQUEST_SENT
    notifyResponse ACK_RESPONSE on channel 8
    Channel 8 REQUEST_SENT -> ACKNOWLEDGED
    Channel 8 ACKNOWLEDGED -> DATA_SENT
    notifyResponse AVAILABLE_RESPONSE on channel 8
    Channel 8 DATA_SENT -> AVAILABLE
    Channel 8 AVAILABLE -> REQUEST_SENT
    notifyResponse ACK_RESPONSE on channel 8
    Channel 8 REQUEST_SENT -> ACKNOWLEDGED
    Channel 8 ACKNOWLEDGED -> DATA_SENT
    notifyResponse AVAILABLE_RESPONSE on channel 8
    Channel 8 DATA_SENT -> AVAILABLE
    Channel 8 AVAILABLE -> REQUEST_SENT
    notifyResponse ACK_RESPONSE on channel 8
    Channel 8 REQUEST_SENT -> ACKNOWLEDGED
    Channel 8 ACKNOWLEDGED -> DATA_SENT
    notifyResponse AVAILABLE_RESPONSE on channel 8
    Channel 8 DATA_SENT -> AVAILABLE
    I don't know if this matter but my java version is:
    java version "1.8.0_31"
    Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
    Any ideas or am I missing something completely?
    Thanks
    Andy

    Hi, Andy. Please excuse my ignorance, I am very new at this ME embedded stuff. I had my challenges, but was finally able to get my board up with a static address. I went through a lot of headaches, but finally got the board flashed with the latest bin. I then updated the jwc_properties.ini file on the SD card to include:
    # Whether static configuration or DHCP server is used do get IP address. Possible values: dhcp,static
    ip.method = static
    # IP address,used with static IP configuration only
    ip.addr = 192.168.0.30
    # Network mask,used with static IP configuration only
    ip.netmask = 255.255.255.0
    # Network gateway,used with static IP configuration only
    ip.gateway = 192.168.0.1
    # DNS server,used with static IP configuration only
    ip.dns = 208.67.222.222
    # MAC address
    mac.addr = 01:02:03:04:05:06
    I was then put the card into the board, disconnected both USB cables, and then powered it up. From that point I was able to ping the board. I can now use Device Manager in NetBeans to connect to the device.
    I am struggling quite a bit with many issues. It seems that when I try to stop the app from NetBeans, the "please wait" dialog hangs forever. I have to use Windows Task Manager to kill the "JavaW" process tree and reconnect the board.
    I have also had trouble understanding the GPIO pin assignments. Another gotcha was trying to use the AutoStart feature. Since the sample app never cleanly exited, I thought that I bricked the board. The secret is to power it down, remove the SD card, and then delete all files EXCEPT the jwc_properties.ini file, put the SD card back in, then power up. It seems that the board forgets that the MIDlet was installed.
    Hope this helps others out there.
    Please everybody, post your experiences here. There seem to be very few of us, and finding pearls in the dust is rare right now.
    Regards,
    Pete

  • I would like to access what i believe is a system address. basically i want to access a device at fed9 0000 in hex.

    Hello, I am trying to write a kernal mode driver for windows 8 platform. Basically I have an amd chipset and have determined that I would like to access a register with a certain offset from what amd labels acpimmioaddr base+offset. I have the offset
    and now I believe to have found the base or acpimmioaddr which is fed9 0000 in hex. I have determined I need to write a kernal mode driver to do this. In the driver how would I write and read this address? Also a secondary question how would I export functionality
    to either a user mode driver (dll) and ultimately an api?
    Notes: I am trying to access memory mapped I/O. 
    I believe I have to use hal functions but am not sure if it is hal.dll or sys file. I think I need to map the needed system space to kernal mode virtual memory using MmMapIoSpace(). I believe I have read some wheres that this may have changed in more recent
    versions of windows. If anyone can help I appreciate the time very much, thank you.

    Thank you for responding. Not sure I understand first part about ACPI device. But basically I'm trying to access a gpio that is memory mapped io that will then have a device attatched to it. My understanding so far is that PnP has to detect the device but
    there is no way for it to do that. I am new to windows drivers and so when i realized that installing a driver is in itself comparable to complexity as the driver itself, I decided to try and just install a generic driver that does nothing and has no devices
    just to see that I am in fact installing the driver. Then I had planed to learn how to load the driver and have it's driver entry function called that can fill in it's respective members. Eventually I had planed on creating ioctl's that could be accessed by
    user mode application and mapping physical memory of mmio address to system address. I thought this would allow it to at least work, then I could go back and try and bring it in line with windows methodology. Also there may already be functions already implemented
    by system supplied driver and a filter driver may allow it to be more portable but I had not planned on going into that until after I had got something working specific to my platform.
    Now just to go over where I am thus far, I will summarize what I believe to be necessary so far. A driver needs a device. Devices are found via hardware and it's respective drivers, which are then enumerated and pnp is alerted at kernal mode. pnp or io manager
    finds the driver and only then loads an installed driver or installs and then loads the driver if not installed already. It seems there is no device specific to a amd fusion controller hub gpio pin. Also there is no way for it to no about devices attatched
    with out my driver already loaded. I have started to read about bus drivers. I think a bus driver really doesnt fit PnP in that it is kinda already part of the system and self detection kinda doesnt make sense. So can I or do I have to make my driver a bus
    driver? Or does acpi or some low level firmware still have to say "hey im a bus and this is how i work" to the os? I looked at toaster sample code and it has an enum executable that plugs in or ejects devices based on device id's also a toaster seems
    pretty unorthodox device so could I create my own kind of device fitting to my purpose and then some how make a user mode application which alerts PnP "logically" instead of by hardware? 
    Also I had considered another approach of just using anything to that gets automatically enumerated and using it's device type to call my driver, then my driver does it's things even though they are unrelated to the device detected. I know this isnt how
    it's supposed to work and also would temporarily mess up PnP for that device for it's intended purpose, but would it allow me to at least access physical memory mapped io? 
    Sorry have been racking my head on this for months now and the whole purpose isnt to implement windows methodology but actually completely unrelated, what was originally important is development of new device and for the past 3 months all's I've worked on
    is windows drivers and progress has been little or none it seems.

  • Java SE Embedded hardware interface support

    What are the available options for integrating with hardware interfaces with Java SE Embedded?
    - I've noticed that the Java Comms API doesn't seem to have any recent activity, and is only provided for a small number of os+hw combinations.
    - A number of community posts elsewhere recommend RXTX (http://rxtx.qbang.org/wiki/index.php/Main_Page) - it looks like this is limited to just serial or parallel ports though - is this correct? Is this widely used?
    - I've noticed libraries like Pi4J (http://pi4j.com/) provide a great Java API to interact with the GPIO pins on the Raspberry Pi. This is a great approach if there is a library like this for the hardware platform you are running on, but if there isn't what are the alternatives? Do you have to write your own C shared libraries to integrate with the hardware, and then use this via JNI?
    Thanks, Kevin

    See Java for Mac OS X 10.5 Update 1 adds support for Java SE 6. Note the system requirements exclude PPC machines.
    Apple does not drop software support, however, they stop updating older versions because the requirements of new software exceed what older hardware can provide. This is simply the result of obsolescence. Your version of OS X is capable of supporting Java SE 6, but your hardware is not able to run that software.
    If it's essential that you be able to run new versions of software that have requirements that exceed what you hardware or OS can support, then you have to upgrade accordingly. Sell your PPC machine or donate it to a reputable charity or local school/church. Then buy a new machine that can run the software you wish to use.

  • Raspberry 2, Windows 10 and Arduino shields, does it work?

    Hi!
    I was intriqued by the
    Windows 10 for Raspberry Pi 2 announcement and I was wondering how would development of Arduino shields go with this setup? If I were to assume I had a Raspberry PI B+ and a, say, GSM shield, how would one use it from RPI 2 with Windows 10?

    Ah, I phrased poorly. I meant with a connection bridge such as
    this or
    this. I guess I was basically thinking how to read the RPI GPIO pins inside Windows. I suspect it really comes down to high-level libraries (as they are nicer to handle I/O) and if the support reading or writing, say, a GSM or a CANBus shield. If so,
    a better question would be, has anyone experience taking such a RPI-Arduino connection bridge with Windows 10 and doing something? Is there a public example available?

  • StartApp: IOException: java.io.IOException

    Lesson 2 - when running the first GPIOLEDtest.java I received the following error:
    [ERROR] [DAAPI] iso=-1:There is unexpected error, when open GPIO pin 23
    startApp: IOException: java.io.IOException
    Uncaught exception: java.lang.NullPointerException
    - gpioledtest.GPIOLED.getValue(GPIOLED.java:69)
    - gpioledtest.GPIOLED$1.run(GPIOLED.java:94)
    - java.lang.Thread.run(), bci=5
    [ERROR] [AMS] iso=1:OOM/EXCEPTION_HANDLED: Invalid App Id
    [ERROR] [AMS] iso=1:RemoveCommand: the MIDlet suite is locked: com.sun.midp.midletsuite.MIDletSuiteLockedException
    TRACE: <at com.sun.midp.midletsuite.MIDletSuiteLockedException>, RemoveCommand
    com.sun.midp.midletsuite.MIDletSuiteLockedException
    - com/sun/midp/midletsuite/MIDletSuiteImpl.lockMIDletSuite(), bci=0
    - com/sun/midp/midletsuite/MIDletSuiteStorage.getMIDletSuite(), bci=15
    - com/sun/midp/midletsuite/MIDletSuiteStorage.remove(), bci=5
    - com/oracle/midp/proxy/ProxyEventListener.handleRemoveCommand(), bci=60
    - com/oracle/midp/proxy/ProxyEventListener.handleDeveloperAgentEvent(), bci=167
    - com/oracle/midp/proxy/ProxyEventListener.packetReceived(), bci=10
    - com/oracle/midp/proxy/JavaChannelDispatcher.process(), bci=150
    - com/sun/midp/events/EventQueue.run(), bci=129
    - java/lang/Thread.run(), bci=5
    Starting GPIOLEDTest....
    [ERROR] [DAAPI] iso=-1:There is unexpected error, when open GPIO pin 23
    startApp: IOException: java.io.IOException
    Any idea pls ?
    TIA

    Thanks Tom,
    No, not running - I now run the TestIMLetListener and it does not compile either throwing:
    Building jar: D:\MeineDaten2014\8-IoT\MOOC-Java8ME-Sessions\Lesson1\TestIMletListener\dist\TestIMletListener.jar
    D:\MeineDaten2014\8-IoT\MOOC-Java8ME-Sessions\Lesson1\TestIMletListener\nbproject\build-impl.xml:468: Problem: failed to create task or type nb-copyliblets
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.
    BUILD FAILED (total time: 2 seconds)
    Is there any substantial lib or java functionality missing ? do I have to hook/check more "optional packages" under Netbeans 8.0/properties/platform ?
    My Raspi OS is: Linux raspberrypi 3.10.33+ #1 PREEMPT
    I will re-install the OS for new...(2014-01-07-wheezy-raspbian) and keep this updated...

Maybe you are looking for

  • Authenticating a user in the specified organization

    Hi, I try to create a custom organization login page. A copied the login.jsp, LDAP.xml etc. files to the default/orgname directory (unchanged), and when I try to log in http://www.domain.com/amserver/UI/Login?org=orgname I get a page cannot be found

  • Acrobat X and XI crash on Mac cured by waiting

    I just want to record this here in case it helps anyone else. I'm afraid that it is not well-structured or technically detailed but I hope that the bare bones might be useful to another user in the same situation. I know it sounds unlikely but it is

  • Nokia N80 startup problem

    hello everyone. i have recently bought a nokia n80. i have been uploading new themes on my cellphone and one of the themes messed up the screen. so i turned off and on my cellphone and this message pops up. it says "Phone start-up failed. Contact the

  • How can i open a directory in sql*plus?

    i need to run a file in sql* but i didn't know how to open the directory which contains it, can u tell me plz?

  • Cant get email to iphone

    cant get emails to i phone 5