Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 14, 2024, 03:03:43 03:03


Login with username, password and session length


Pages: [1]
Print
Author Topic: error simulating serial port of raspberry PI in Proteus  (Read 4380 times)
0 Members and 1 Guest are viewing this topic.
gabriel
Active Member
***
Offline Offline

Posts: 135

Thank You
-Given: 286
-Receive: 60


« on: November 30, 2022, 07:41:41 19:41 »

Hello:
I created a Proteus file to simulate serial port of Raspberry PI, I got error:
[VSMPY] AttributeError: partially initialized module 'serial' has no attribute 'Serial' (most likely due to a circular import) [U1] @0.633330000s

Anyone has already experienced that?
Any help is appreciated
Logged
Top
Senior Member
****
Offline Offline

Posts: 339

Thank You
-Given: 52
-Receive: 1719


« Reply #1 on: December 01, 2022, 01:14:25 01:14 »

Don't forget to hook up RXD and then:
Code:
import Ports
    
port = Ports.UART()

while True:
    port.send("\r\nSay something:")
    rcv = port.input()
    port.send("\r\nYou sent:" + repr(rcv))
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC