Thank You, Aakash. I am so sorry Aakash, as of now I have minimal knowledge of java. But I take this request into account let's see if I could do it for you. Please expect some delay for this video.
@@dhanawadeamit sir usb to ttl pr connection ki video bnao jisne clear data fildes ho or data excel 3or more sheets se import kiya ho or on off connection switch ho
Just wanted to ask, my barcode scanner can detect by Hercules serial , but I can’t detect on my software serial input. Is this has to do with port 2,3 RC , TX reverse problem ? The programming software only have serial input selection and setting such as baud rate same as scanner but still can’t trigger
There is also a possibility that Hercules serial needs Rx, Tx & GND but your software uses full RS232 protocol with DTR, DSR, CTS & RTS and there could be a problem with these pins. Please have a look in this direction, let me know if you want any help
Do you think I could use something similar to, if I am using two barcode scanners connected in different usb port, see the information that came from each scanner?
Yeah, you can have as many serial ports as you can. Just you shall use correct port names while using it. Also in one of experience when I was having bluetooth gadgets connected with laptop i could see that windows creates a serial port for those devices and when I actually connect the USB to Serial module some time it wont work. Then when I disconnect all Bluetooth gadgets deleted all serial port that were created for BT gadgets and started a fresh it started to work perfect as expected all the time.
hi, thank you for your video. i copied eveything you did in this video, yet it doen't working. the errors throws me to another file named serialwin32 and serialutil, do you have an idea what can i do? thanks
There must be an issue with the usb to serial module. I recommend you to test it individually first so that you will be sure that the hardware works perfectly.
Very well explained....If I am only receiving some data through serial and I want to plot it in real time can we use the same code with omitting the send part....and can u please tell how to store and plot data in real time...Thanks.....
Hello Rajib, Yes it is possible to receive serial data and plot it in real time. I recently have uploaded a radar project where I plot real time data, please have a look. Here is the video link for you ua-cam.com/video/3jeLWl_nZ28/v-deo.html
Here is the link for Python Tkinter GUI ua-cam.com/video/RLp1xWJobAA/v-deo.html Still, 2 videos to go to have a complete PIC UART interface with Tkinter GUI
Hello Amit, i copied your code but my issue is that i am ot getting any output on my terminal it always prints an empty line. Could you help me please. Thank you in advance
First: Please check if your usb to series converter is working separately. Second: Is the comp port name in the code matching as that of in device manager.
in my editior loop is working , break through q is working but it is not showing that line "This is the message".it is just going down in terminal. it is like this line is printing but not visible.
Aman you might have notice it must be going down after timeout. This means your serial did not recieve data. There could be multiple reasons like Rx & Tx open, UART to USB module not working, loose connection. I would recommend to check your USB module. Check this video ua-cam.com/video/ji0aeZnnqQg/v-deo.html Please let me know if you need some more help with it.
Thank you for nice information .. I have one question , and I hope you can assist me in that I am going to buy a digital dial gauge, and I want to read its measurement with Python on my PC. The digital dial gauge works on the USB serial communication protocol.Some details as follows :Data in ASCII format without unit: Pre-decimal position with leading zeroes. Number on the post decimal positions depends upon the set resolution. Unit: [mm]: sign X X X . X X X X CR „CR“ Carriage Return Is it possible to communicate with python with digital dial gauge?and How? Thanks in advance..
Yes it is possible to read data from digital dail gauge. As your data is in string format and not a character you shall use "readline" method in python. In the video I have explained how to read complete string using readline method. First use my code as it is with readline method and verify gauge data can be read, then modify the code as per your application.
Yeah, you can but you have to make sure that all the time you message shall contain or else it will stuck infinite time there, usually when we connect with hardware we might not know that the hardware will send correct values so it is recommended to have time out. If your data comes delayed then what you set in time out then you shall consider increasing the time in timeout setting.
What is the point of this video! Useless. Better usage of the usb uart board it bi-directional communication. Where the pico or whatever can read things from the pc and do something based on it!
I'm close to this on the Cardputer and didn't think of timeout. Now I can dig into that.
Very good video for out project thanks
i mean our sorry*
i don't mean sorry like you know what i mean
I am glad that you liked it, Thank You!
Do not stop
Never give up
You are right @Agk Khan :)
Let's Keep Moving Toward Goals
Thank you Sir. Amit. This video is so handy. Greetings from Mexico.
Glad it was helpful! Thank You!
great explanation sir
Thank you 😊
Nice video sir 😍 Please make a video on java serial communication it will help us a lot sir
Thank You, Aakash.
I am so sorry Aakash, as of now I have minimal knowledge of java. But I take this request into account let's see if I could do it for you. Please expect some delay for this video.
This was helpful. Great job
Thank You, Sujata
Thank you ,very clear explanation especially timeout attribute.
Glad you liked it. Thank You!
@@dhanawadeamit sir usb to ttl pr connection ki video bnao jisne clear data fildes ho or data excel 3or more sheets se import kiya ho or on off connection switch ho
Just wanted to ask, my barcode scanner can detect by Hercules serial , but I can’t detect on my software serial input. Is this has to do with port 2,3 RC , TX reverse problem ? The programming software only have serial input selection and setting such as baud rate same as scanner but still can’t trigger
There is also a possibility that Hercules serial needs Rx, Tx & GND but your software uses full RS232 protocol with DTR, DSR, CTS & RTS and there could be a problem with these pins.
Please have a look in this direction, let me know if you want any help
Спасибо, всё доступно и понятно!
Thank you 😊
Reis adama ingilizce yazsana nasıl anlasın böyle
Do you think I could use something similar to, if I am using two barcode scanners connected in different usb port, see the information that came from each scanner?
Yeah, you can have as many serial ports as you can. Just you shall use correct port names while using it. Also in one of experience when I was having bluetooth gadgets connected with laptop i could see that windows creates a serial port for those devices and when I actually connect the USB to Serial module some time it wont work. Then when I disconnect all Bluetooth gadgets deleted all serial port that were created for BT gadgets and started a fresh it started to work perfect as expected all the time.
my serial port is sending data bit by bit so how to receive it bit by bit?
Excellent
Thank you 😊
Why i am getting this error in my code
SerialException: could not open port 'COM4': PermissionError(13, 'Access is denied.', None, 5)
This could be because it was open in the previous session. Please try to disconnect and connect back the usb to serial device.
hi, thank you for your video. i copied eveything you did in this video, yet it doen't working. the errors throws me to another file named serialwin32 and serialutil, do you have an idea what can i do? thanks
There must be an issue with the usb to serial module. I recommend you to test it individually first so that you will be sure that the hardware works perfectly.
If I want press special Burton's like ESC,f1,f2..... Means how?
Thank you Amit
thanks you so much
You are most welcome.
Thanks for your input.
My pleasure!
Here is the link for Python Tkinter GUI
ua-cam.com/video/RLp1xWJobAA/v-deo.html
Very well explained....If I am only receiving some data through serial and I want to plot it in real time can we use the same code with omitting the send part....and can u please tell how to store and plot data in real time...Thanks.....
Hello Rajib, Yes it is possible to receive serial data and plot it in real time.
I recently have uploaded a radar project where I plot real time data, please have a look.
Here is the video link for you ua-cam.com/video/3jeLWl_nZ28/v-deo.html
Hi, thank you.
I have a quastion, if i dont know the port name. How can i get it and use it in the code?
ua-cam.com/video/ji0aeZnnqQg/v-deo.html In this video I have showed how to test and debug a serial port
Please also do same thing for C++ & Java :) thanks
Nice tutorial 👍
Can you please create another tutorial for sending a command to PIC microcontroller with a gui application with tkinter ??
Thank you for your suggestion ☺️
Sure, I would like to create 2-3 videos around it. I will upload shortly and let you know.
Here is the link for Python Tkinter GUI
ua-cam.com/video/RLp1xWJobAA/v-deo.html
Still, 2 videos to go to have a complete PIC UART interface with Tkinter GUI
Hello Amit, i copied your code but my issue is that i am ot getting any output on my terminal it always prints an empty line. Could you help me please. Thank you in advance
First: Please check if your usb to series converter is working separately.
Second: Is the comp port name in the code matching as that of in device manager.
Thank you my friend!
You are welcome Roberto
Good job 👍
Thank you 😊
in my editior loop is working , break through q is working but it is not showing that line "This is the message".it is just going down in terminal. it is like this line is printing but not visible.
Aman you might have notice it must be going down after timeout. This means your serial did not recieve data.
There could be multiple reasons like Rx & Tx open, UART to USB module not working, loose connection. I would recommend to check your USB module.
Check this video ua-cam.com/video/ji0aeZnnqQg/v-deo.html
Please let me know if you need some more help with it.
Thank you for nice information ..
I have one question , and I hope you can assist me in that
I am going to buy a digital dial gauge, and I want to read its measurement with Python on my PC. The digital dial gauge works on the USB serial communication protocol.Some details as follows :Data in ASCII format without unit:
Pre-decimal position with leading zeroes.
Number on the post decimal positions depends upon the set resolution.
Unit: [mm]:
sign X X X . X X X X CR
„CR“ Carriage Return
Is it possible to communicate with python with digital dial gauge?and How?
Thanks in advance..
Yes it is possible to read data from digital dail gauge. As your data is in string format and not a character you shall use "readline" method in python. In the video I have explained how to read complete string using readline method. First use my code as it is with readline method and verify gauge data can be read, then modify the code as per your application.
@@dhanawadeamit Thank you very much for your quick response
I will inform you , when it works ..
Hallo ..
It is working for me . Thanks again..👍
@@roshanbagul5606 Glad to know Roshan. Enjoy Coding ;)
Gracias :)
Thank you 😊
Hi sure
i need to read data from scale by using python
the scale connect with my computer using usb Rs232
Cab you help me ?
Are you available to see data on Terminal Software?
Pls make a video for ubuntu also for serial communication
Sure I have noted it into my todo list
eliminates the timeout I understand but my doubt is can I remove the timeout by keeping
?
Yeah, you can but you have to make sure that all the time you message shall contain
or else it will stuck infinite time there, usually when we connect with hardware we might not know that the hardware will send correct values so it is recommended to have time out. If your data comes delayed then what you set in time out then you shall consider increasing the time in timeout setting.
hi good video , can explain how to install the import serial.Thanks
Hi Diego,
The serial library installation process is described in the video below:
ua-cam.com/video/ji0aeZnnqQg/v-deo.html
This could be a help
Hii sir i have a doubt how to print the values separate separate like - arr[0]-A,arr[1]-B. This.
Can any one send the code for this type of out put
@@abhijitdixit6670Do you see this same string on your serial port?
If yes what specific character do you want to print?
@@dhanawadeamit i want to print A,B,C but in separate separate
can I contact u personally wp or mail
@@dhanawadeamit hii sir
Can we use this script and using for Linux ubuntu?
Yes, you just need python installed.
hello @sir can I get your contact info, I need you help to create one project
Is this code compileable ?
Yes, works in python
How to print live data?
What is your data size?
@@dhanawadeamit around 50MB
What is the point of this video! Useless.
Better usage of the usb uart board it bi-directional communication.
Where the pico or whatever can read things from the pc and do something based on it!