The Godfather talking
You can run, but you can't hide.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2023, 12:47:32 12:47


Login with username, password and session length


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

Posts: 134

Thank You
-Given: 271
-Receive: 59


« 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: 51
-Receive: 1718


« 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