Hi, I want to know how to implement one vehicle driver(communication adapter) communicate with one real phisical vehicle, in other words, the communication adapter and phisical vehicle at least support which interfaces?
thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. How you implement the communication channel between the vehicle and the corresponding driver in openTCS is intentionally left up to you, as requirements and restrictions in AGV projects can vary. In most cases, you'd probably choose to communicate via a TCP connection, with the packets being transported via Wi-Fi. But you could also use e.g. UDP datagrams via Ethernet, ZigBee, etc..
Basically, the only restriction is that the technology/hardware you use for communication must be in some way accessible from the Java world.
Best regards,
Stefan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2015-12-27
Thanks for your reply. As you say, I can implement one TCP communication adapter based on the class BasicCommunicationAdapter, my TCP adapter can communicate with phisical vehicle, such as get its position and state and so on, Am I right?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you decide to use a TCP connection, there are some utility classes in the base library that you can - but don't have to - use. Please see the API documentation for the package org.opentcs.util.communication.tcp.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2015-12-31
Thank you very much!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2017-06-06
There is not the package org.opentcs.util.communication.tcp in the the API documentation,where is it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The implementation classes for TCP communication have been removed from openTCS since 4.0. They were out of scope of the openTCS project. (openTCS is not a communication library but a framework for fleet management.)
In our projects, we implement TCP communication based on Netty (http://netty.io/) these days, so I can recommend looking at that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2017-06-06
Thanks ,what about UDP ? Do have a try?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You could implement communication with a vehicle via UDP, of course. However, you'll want to ensure that message loss is detected and that messages are received/processed in the order they were sent, which TCP would do for you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2017-06-28
Another question:if there are several vehicles in the PlantOverview,which correspond to physical vehicles via TCP or UDP,should I develop many communication adapters or only one shared adapter?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You are not forced to implement the server on a specific side. When the driver is the client, you have all communication-related configuration data (IP addresses, ports) on the control system side, which sometimes makes handling changes of this configuration easier. In the end, it depends on your requirements.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I want to know how to implement one vehicle driver(communication adapter) communicate with one real phisical vehicle, in other words, the communication adapter and phisical vehicle at least support which interfaces?
thanks
Hi. How you implement the communication channel between the vehicle and the corresponding driver in openTCS is intentionally left up to you, as requirements and restrictions in AGV projects can vary. In most cases, you'd probably choose to communicate via a TCP connection, with the packets being transported via Wi-Fi. But you could also use e.g. UDP datagrams via Ethernet, ZigBee, etc..
Basically, the only restriction is that the technology/hardware you use for communication must be in some way accessible from the Java world.
Best regards,
Stefan
Thanks for your reply. As you say, I can implement one TCP communication adapter based on the class BasicCommunicationAdapter, my TCP adapter can communicate with phisical vehicle, such as get its position and state and so on, Am I right?
That's correct, yes.
If you decide to use a TCP connection, there are some utility classes in the base library that you can - but don't have to - use. Please see the API documentation for the package
org.opentcs.util.communication.tcp
.Thank you very much!
There is not the package org.opentcs.util.communication.tcp in the the API documentation,where is it?
The implementation classes for TCP communication have been removed from openTCS since 4.0. They were out of scope of the openTCS project. (openTCS is not a communication library but a framework for fleet management.)
In our projects, we implement TCP communication based on Netty (http://netty.io/) these days, so I can recommend looking at that.
Thanks ,what about UDP ? Do have a try?
You could implement communication with a vehicle via UDP, of course. However, you'll want to ensure that message loss is detected and that messages are received/processed in the order they were sent, which TCP would do for you.
Another question:if there are several vehicles in the PlantOverview,which correspond to physical vehicles via TCP or UDP,should I develop many communication adapters or only one shared adapter?
The usual approach is to develop one vehicle driver per vehicle type/communication type.
OK.Which one should be the server?The driver or the physical vehicle?
OK.Which one should be the server? The driver or the physical vehicle?
Last edit: Anonymous 2018-01-18
You are not forced to implement the server on a specific side. When the driver is the client, you have all communication-related configuration data (IP addresses, ports) on the control system side, which sometimes makes handling changes of this configuration easier. In the end, it depends on your requirements.