Fra87
Posts: 20
Joined: Sun Dec 21, 2014 5:31 pm

Re: Java me embedded apllication don't start

Sun Feb 08, 2015 10:10 pm

WillemD wrote:If you have connected the LED to pin 8 then this is gpio number 14 and you need to use 14 in your program, not 8.
Finally works i have set GPIO14 and led blink. I have try GPIO21 pin40 and led blink :D
Now i have some question:

1 If i used program with Github RaspberryPI_emulatordevice don't work, but with EmbeddedExternalDevice1 works why?
2 Last day I have try with GPIO14 and the led were on pin 8 but didn't work. Now work why?
perhaps installing Github Emulator something happened ?
3 Where i can read api for Raspberry's source ?
4 I have display with 7 segment. I want use it, but this component have 6 pin why? Where i can find circuit connection?

Thanks a lot for help

WillemD
Posts: 29
Joined: Sat Jan 31, 2015 11:25 am

Re: Java me embedded apllication don't start

Mon Feb 09, 2015 8:22 am

1) You should also see the PIN value change in the RaspberryPI_emulatordevice, unless you are using specific B+ pins. Those are not yet present in the emulator, but you can add them yourself with the custom device editor.
2) Installing the emulator will not have an effect on the working on the PI itself, does not change anything.
3) Don't know what you mean. the JAVA embedded dcoumentation? It is here : http://docs.oracle.com/javame/8.0/index.html
4) don't know

Alexander.B
Posts: 1
Joined: Mon Feb 09, 2015 4:33 pm

Re: Java me embedded apllication don't start

Mon Feb 09, 2015 4:48 pm

Thank you for using Java ME Embedded. I am really happy to hear you have sort this issue out. There is forum specifically on Java ME Embedded https://community.oracle.com/community/ ... e_embedded. Also a couple blogs of Product managers https://blogs.oracle.com/javame/ and https://terrencebarr.wordpress.com/
Fra87 wrote:
WillemD wrote:If you have connected the LED to pin 8 then this is gpio number 14 and you need to use 14 in your program, not 8.
Finally works i have set GPIO14 and led blink. I have try GPIO21 pin40 and led blink :D
Now i have some question:

1 If i used program with Github RaspberryPI_emulatordevice don't work, but with EmbeddedExternalDevice1 works why?
You can use an emulator included into Java ME SDK and make custom device by Custom Device Manager
2 Last day I have try with GPIO14 and the led were on pin 8 but didn't work. Now work why?
perhaps installing Github Emulator something happened ?
3 Where i can read api for Raspberry's source
The best document is Getting Started Guide for RPi http://docs.oracle.com/javame/8.1/get-s ... pi/toc.htm at the end of this document there is a list of preconfigured devices
4 I have display with 7 segment. I want use it, but this component have 6 pin why? Where i can find circuit connection?
Displays are very different. You need to look for the pinout at the manufacture web.

Thanks a lot for help

baantonia
Posts: 63
Joined: Fri Feb 06, 2015 2:19 pm

Re: Java me embedded apllication don't start

Wed Mar 04, 2015 7:45 am

There is a configuration file within the Java ME Embedded on the Raspberry Pi which may need editing. It configures the mode for each pin to be input or output.

No matter how much I changed the source file to try and make various pins as outputs, the configuration in this file could not be overridden.

Cannot remember the name of the file at the moment but I will post again with the details.

baantonia
Posts: 63
Joined: Fri Feb 06, 2015 2:19 pm

Re: Java me embedded apllication don't start

Wed Mar 04, 2015 9:27 am

Within your javame8/appdb directory there is a file called daapi_config.json which provides the configuration of the GPIO pins. The default value for a pin appears to be input but adding the lines:

mode:4,
direction:1,

to the pin you wish to be an output appears to work.
daapi_config.json.zip
My current daapi_config.json file, zipped.
(950 Bytes) Downloaded 131 times
Currently I don't know what settings are available, but the above is my currently edited config file.

harshgupta
Posts: 1
Joined: Fri May 29, 2015 4:58 pm

Re: Java me embedded apllication don't start

Fri May 29, 2015 5:00 pm

bci=118 could probably mean that permissions are incorrectly set. Check if you have not used *.* instead of *:*

Return to “Java”