serial communication issue in windows 10

Report crashes, strange behaviour, or apparent bugs
Post Reply
kanishka89
Posts: 3
Joined: 11 Aug 2015, 06:36

serial communication issue in windows 10

Post by kanishka89 » 11 Aug 2015, 07:22

i was using v-rep on windows 8.1 for more than 6 months and i was able to communicate with an arduino without any hassle. but after upgrading to windows 10 the read values from the serial stream are not available in the stored variable.

here is the code that i use,

Code: Select all

countReadChar=simSerialCheck(ardd)
		  if (countReadChar>0) then
			 readDD = simSerialRead(ardd,10,false,'/n',0)
			simSerialSend(ardd,'abc')
				print(countReadChar)
				print(readDD)
		  end

coppelia
Site Admin
Posts: 6736
Joined: 14 Dec 2012, 00:25

Re: serial communication issue in windows 10

Post by coppelia » 11 Aug 2015, 08:50

Hello,

could you successfully open the port, are there any error codes or messages in the console window?

Cheers

kanishka89
Posts: 3
Joined: 11 Aug 2015, 06:36

Re: serial communication issue in windows 10

Post by kanishka89 » 11 Aug 2015, 11:05

yes the port was successfully opened and i monitored the serial buffer also which is reducing as i read the serial port but the variable prints nil on the console

i tested on a another computer with windows 10 today but end up with the same results

coppelia
Site Admin
Posts: 6736
Joined: 14 Dec 2012, 00:25

Re: serial communication issue in windows 10

Post by coppelia » 12 Aug 2015, 09:58

Ok, we will try to add alternative serial port routines for next release (beta version in 1-2 weeks).

Cheers

kanishka89
Posts: 3
Joined: 11 Aug 2015, 06:36

Re: serial communication issue in windows 10

Post by kanishka89 » 12 Aug 2015, 10:37

coppelia wrote:Ok, we will try to add alternative serial port routines for next release (beta version in 1-2 weeks).

Cheers
hope to see the next release soon.

thanks
Kanishka

dnahar
Posts: 30
Joined: 07 Jan 2016, 03:03

Re: serial communication issue in windows 10

Post by dnahar » 23 Apr 2016, 02:52

Hello,

I am facing this issue now. Was this solved? How do i work with this..

Thanks,
Dixit

coppelia
Site Admin
Posts: 6736
Joined: 14 Dec 2012, 00:25

Re: serial communication issue in windows 10

Post by coppelia » 25 Apr 2016, 08:14

In file V-REP/system/usrset.txt, change the value of useAlternateSerialPortRoutines.

Cheers

Post Reply