[SOLVED]Send Serial ASCII string to Web Server
-
@jimpower said in Send Serial ASCII string to Web Server:
\x00\x80\x80\x80\x00\x00\x80\x00\x80\x80\x80\x00\x80\x80\x80\x00\x00\x80\x00'
this is not
hellosentence
first look if you have same port configuration on PCtype
modeinto command line and look like is your port really configured
it can be different than showing in device manager ;-)to see how to configure port, type
mode /?e.g.
mode COM1 BAUD=9600 PARITY=n DATA=8 STOP=1 rts=off cts=offand to send data from command without line break and spaces use
set /p x="hello world" <nul >\\.\COM1but better use any com port software like putty, comport monitor from Arduino IDE ...
-
Thanks for your reply,
I used putty and got this output from
set /p x="hello world" <nul >\.\COM9
b'fr3rfr\x193r\x19rfr3r\x19r3rfrfr3rfr3rgr3rfrgrfr3r3rfrg\x00\xa9::\n*\x00yFrgrgrggr3rfrfrgrfrfrf3r3rfr\x19r\trMr\x12r\x12rHrKr\trcr\x0cr\x06r\x06r\x08rgr3rgr3rfr\x19r'
Does this look accurate?
-
@jimpower
no this looks like garbage
what is your putty com settings?

UPDATE
can you clarify this
I used putty and got this output from
set /p x="hello world" <nul >.\COM9above command can be run from windows CMD after setting com settings by
modecommand
you can not run it from putty it send this as text -
-
@jimpower
Then only some wiring problem must be.
You have connectedP4which is default RX for UART1 with TX of your serial converter
For test connect also RX from converter to TX (P3). And look if all is ok.
And if possible test Lopy without expansion board. -
@livius Yes my tx is on pin4 and rx on p3. I will try without expansion board thanks.
-
Isn’t there an issue with levels? I.e. +/- 5V for regular serial port compared to 0/3V for the LoPy or something similar?
-
-
@jcaron damn that makes sense, so I would need some kind of step down can this be done by an ardiuno I have one lying around.
-
@livius thanks I have a bunch of these lying around will give that a try thanks everyone
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login