When i install in the latest version of MyRobotLab and other versions (current 1.0.17.58)
If I try to connect Arduino uno clone, the program closes. It even turns off when selecting port. That's why I can't do anything. Can you help me where I went wrong?

GroG

2 years 7 months ago

Is your OS 32 or 64 bit ?

Is your JVM 32 or 64 bit ?
64 bit looks like this when you type java -version

 64-Bit Server VM 

My OS is 64 Bit (java version "1.8. 0_301") Java 64-Bit Server VM

I've done some things and I'm not entirely sure:

-I reverted to the latest version mrl (1.0.2693)

-I chose "RightSide" in the config file (ScriptType=" ") because I only made the head part and I am using 1 arduino for now. In the Arduino configuration I set the rightPort to COM10 and atmega328 which is the port I am using. I didn't do anything to the other (LeftPort).

-I'm getting a communication error related to the other port I don't use (COM4). When I delete what I don't use, I get other errors. Nevertheless, the interface opens, but when I try to connect the arduino, it closes.

Update: First I create a virtual arduino, connect it, disconnect it, connect the real arduino and there is no problem. Then I get the error "ERROR class or.myrobotlab.arduino.Msg - Ack not received" and as a result I cannot move the servo motor.

NOTE: I installed Mrl.Comm on my arduino without any problem, I set it to 115200. I activated only the head part from the files.

I hope I was able to explain, sorry for my newness and thanks in advance for your help.

After trying to connect the Arduino, it shuts down and a file named "hs_err_pid14288" is created. I sent no worky, I think log files has reached you.

Aloyos

2 years 7 months ago

Is there a problem with the baud rate of the Arduino uno? Does it fully support 115200? Someone else on the forum was getting the same error and it was fixed by changing the connecting cable. I'm using the standard one (looking blue). This problem made me tired :(

Aloyos

2 years 7 months ago

Is this true? Because I changed com and board type. I haven't changed the others and I'm using "leftport"

NOTE: I only use 1 arduino ("leftport")

;----------------------------- ARDUINOS CONFIG ----------------------------------------
[MAIN]
 
;my rightport if used ( /dev/ttyUSB0 for linux/macos )
MyRightPort=COM4
BoardTypeMyRightPort="atmega328p"
ArefRightArduino="DEFAULT"
 
;my leftport if used
MyLeftPort=COM10
BoardTypeMyLeftPort="atmega328p"
ArefLeftArduino="DEFAULT"
 
ForceArduinoIsConnected=False
; BoardType Info
; atmega2560 | atmega168 | atmega328 | atmega328p | atmega1280 | atmega32u4
 
;----------------------------------- END --------------------------------------------------
 
 

I only did the head part. Completely everything is ready. All I need is to be able to run them. I've seen many people having the same problem as me. I sent No worky. I think I explained the details. What photo can I upload that can help you?

To be clear:
   Since you only made the head I think you want your robot to hear, and respond to you, possibly track things or identify stuff (if you have cameras)

Gestures probably are as important ? Since moving hands, arms fingers are not an option ?

If you want to try the latest, you need to install Java 11 ... 
You can remove Java 8 or have a system that can run both by following these instrucitons ...
 

http://myrobotlab.org/content/how-run-java-11-and-java-8-same-machine&n…;

Let me also say that my only purpose is to move the servo motor (eyes) with MRL. If I succeed, I can continue :) Sorry if there's some confusion because I've really tried so many things.

Sounds like a plan.
I'll help if you want to take the first step of installing Java 11 with the link I sent, or remove Java 8 and install Java 11

If you sucessfully do that you should be able to type the following in a command line

java -version
 
and get something like this back - (versions and JDK names may differ - which is fine)
 
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode, sharing)
 
You'll want to use Arduino IDE 1.8.X
From here - https://www.arduino.cc/en/software
 

Hi Aloyo,
why do you have 2 browsers open?
Did you (install all services) ?
Did you get the latest ?

What's the red error in the top right say ?

I have installed all the services, I don't think the other site will do any harm because that's how it normally is. I am using the latest version. The error in the top right: runtime error could not create service python Python

I sent no worky. I am getting this error and most of the time every service shows blank page. 

NOTE: now i got this error along with blank page:

python : NullPointerException - null : java.lang.NullPointerException at org.myrobotlab.service.Python.exec(Python.java:513) at org.myrobotlab.service.Intro.execScript(Intro.java:86) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.myrobotlab.service.WebGui.handle(WebGui.java:663) at org.atmosphere.nettosphere.Config$Builder$1.onRequest(Config.java:516) at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:225) at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:114) at org.atmosphere.nettosphere.BridgeRuntime$3.suspended(BridgeRuntime.java:252) at org.atmosphere.container.NettyCometSupport.service(NettyCometSupport.java:52) at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2300) at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:595) at org.atmosphere.websocket.DefaultWebSocketProcessor$3.run(DefaultWebSocketProcessor.java:346) at org.atmosphere.util.VoidExecutorService.execute(VoidExecutorService.java:101) at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:341) at org.atmosphere.websocket.DefaultWebSocketProcessor.invokeWebSocketProtocol(DefaultWebSocketProcessor.java:449) at org.atmosphere.nettosphere.BridgeRuntime.handleWebSocketFrame(BridgeRuntime.java:437) at org.atmosphere.nettosphere.BridgeRuntime.handleMessageEvent(BridgeRuntime.java:346) at org.atmosphere.nettosphere.BridgeRuntime.channelRead(BridgeRuntime.java:296) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:93) at io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler.channelRead(WebSocketServerExtensionHandler.java:101) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:321) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:295) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.base/java.lang.Thread.run(Thread.java:834)

I got the no worky - thanks ...

it looks like the root of the problem is ...
 

Cannot create PyString with non-byte value

I'm looking into the details

Your log also has this :

15:55:37.461 [main] INFO c.m.s.Runtime [Runtime.java:1746] jvmArgs [-Djava.library.path=libraries\native -Djna.library.path=libraries\native -Dfile.encoding=UTF-8]
15:55:37.462 [main] INFO c.m.s.Runtime [Runtime.java:1748] file.encoding Cp1254

it seems its confused as to what encoding you want.

please download the latest (1.1.549)
please make a directory (without a space in the path)
like c:\mrl549

cd c:\mrl549
java -jar myrobotlab.jar --install

then when its done

java -jar myrobotlab.jar

Thanks.
I see runtime info finished installing 167 services & the arduino at the same time.
You need to restart myrobotlab after installing services, before you try the arduino.

(The python error I'm still looking into)

I've changed the java environment variable, "JAVA_HOME=C:\Program Files\Java\jdk-11.0.11", "PATH=C:\Program Files\Java\jdk-11.0.11\bin" and some things with my new version (11) but still my problems persist is there something I'm missing? I sent no worky

Thanks, although I can't get anything to work. It really didn't work for me, so I stop using it (!). A few other friends of mine have had this problem, and it's certainly not Java related.

Its encoding related ...
Your system is encoded with cp1254
Python is trying to start and reading a UTF-8 encoded file ... BOOM

It is related to Java and your Operating system because they both use character sets to read and write files.

Myrobotlab tells Java to use UTF-8 because all our files are UTF-8 to support multi-language

I just had a real enlightenment, and for that I thank you very much. I could not have guessed that the fact that my system is Turkish would cause such a problem.

I changed my system from region settings to UTF-8. What else do I have to do?

I'm sorry to say that nothing has changed. Again I see some services as blank page, I can't connect arduino. I will try it on another computer without giving up completely

persistence can build buildings, or send people to the moon .... or mars ...

from the last noWorky i saw from you the encoding is still cp1254 ...

be sure to send noWorkys after something doesn't work

GOOD NEWS!!! I moved the servo. You were right, I didn't give up and it happened. Now I want to tell a little bit:
I couldn't run it on nixie version. I don't know why, but the interface doesn't really work. I went back to the Manticore version to try it one last time and it worked :)))))
There were several other people having the same problem as me, the main problem was encoding. Especially those who have Turkish system should set it as UTF-8 in the region settings.
 
I may be at the beginning of the road, but I will continue in the manticore version. Thanks GroG for patiently helping out :)))