what does Generic S...
 
Notifications
Clear all

what does Generic Serial Port plugin data look like?

10 Posts
7 Users
0 Reactions
8,751 Views
Posts: 14
Topic starter
(@sdeyoreo)
Eminent Member
Joined: 19 years ago
[#4006]

How can I decode the output from the Generic Serial Port plug-in?
I want to use the USB port with a serial adpter into a PIC, but I can't see the data.

Laptop -> USB/Serial connverter -> Desktop serial port

I run Vixen2, using Generic Serial Port plugin, on my laptop, out the USB port as Com1, thru a USB-Serial adapter to my desktop's serial port. I run Hyperterm on the desktop, to read the data coming in the serial port, but Hyperterm doesn't see anything. The USB-serial adapter is blinking Tx so the laptop is sending it, but I don't know why I don't see anything from Hyperterm.


9 Replies
A Marchini
Posts: 426
(@a-marchini)
Reputable Member
Joined: 19 years ago
sdeyoreo wrote:How can I decode the output from the Generic Serial Port plug-in?
I want to use the USB port with a serial adpter into a PIC, but I can't see the data.

Laptop -> USB/Serial connverter -> Desktop serial port

I run Vixen2, using Generic Serial Port plugin, on my laptop, out the USB port as Com1, thru a USB-Serial adapter to my desktop's serial port. I run Hyperterm on the desktop, to read the data coming in the serial port, but Hyperterm doesn't see anything. The USB-serial adapter is blinking Tx so the laptop is sending it, but I don't know why I don't see anything from Hyperterm.

Hey , has anyone helped you with this?? I was attempting to do preliminary work on this but I didn't finish, and I sorta hoped someone else would pick up the ball. Anyways, sorry if you didn't get a reply. My first looks show that the generic serial is broken but I only gave it a cursory test and then ... well... life happens.

Try to get back to you if you don't have a solution.
Tony M.


Reply
Posts: 265
(@phenagan)
Reputable Member
Joined: 19 years ago

Do you have a null modem in the line? Otherwise you're sending the data out from one system to the data out in the other. Quick test to make sure it's hooked up right is to run Hyperterminal on both system and type away.


Reply
A Marchini
Posts: 426
(@a-marchini)
Reputable Member
Joined: 19 years ago
phenagan wrote:Do you have a null modem in the line? Otherwise you're sending the data out from one system to the data out in the other. Quick test to make sure it's hooked up right is to run Hyperterminal on both system and type away.

Very good point, I missed the conspicuous absence of the mention of a NULL Modem by the original poster.

Tony M.


Reply
Posts: 80
(@pikoko)
Estimable Member
Joined: 19 years ago

Did anyone figure this one out? iv got 2 computer hooked up using a crossover cable and when i send thing like text they work fine but i cant read the out put from vixen. i know that the other computer(the computer running the hyper terminal) is getting data cause the RX signal count goes up but it doesnt display anything in the terminal


Reply
teberle
Posts: 641
(@teberle)
Honorable Member
Joined: 19 years ago

Have you tried to use the Event Data Logger plugin? It will show you the output from vixen. Below is what the data looks like for a 16 channel setup that is ramping up.

09-30-2008 21:04:35.703 [ 16] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
09-30-2008 21:04:35.765 [ 16] 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09 09
09-30-2008 21:04:35.875 [ 16] 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12
09-30-2008 21:04:35.968 [ 16] 1C 1C 1C 1C 1C 1C 1C 1C 1C 1C 1C 1C 1C 1C 1C 1C
09-30-2008 21:04:36.062 [ 16] 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25
09-30-2008 21:04:36.171 [ 16] 2F 2F 2F 2F 2F 2F 2F 2F 2F 2F 2F 2F 2F 2F 2F 2F
09-30-2008 21:04:36.265 [ 16] 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38
09-30-2008 21:04:36.375 [ 16] 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42
09-30-2008 21:04:36.468 [ 16] 4B 4B 4B 4B 4B 4B 4B 4B 4B 4B 4B 4B 4B 4B 4B 4B
09-30-2008 21:04:36.562 [ 16] 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55
09-30-2008 21:04:36.671 [ 16] 5E 5E 5E 5E 5E 5E 5E 5E 5E 5E 5E 5E 5E 5E 5E 5E
09-30-2008 21:04:36.765 [ 16] 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67 67
09-30-2008 21:04:36.875 [ 16] 71 71 71 71 71 71 71 71 71 71 71 71 71 71 71 71
09-30-2008 21:04:36.968 [ 16] 7A 7A 7A 7A 7A 7A 7A 7A 7A 7A 7A 7A 7A 7A 7A 7A
09-30-2008 21:04:37.062 [ 16] 84 84 84 84 84 84 84 84 84 84 84 84 84 84 84 84
09-30-2008 21:04:37.171 [ 16] 8D 8D 8D 8D 8D 8D 8D 8D 8D 8D 8D 8D 8D 8D 8D 8D
09-30-2008 21:04:37.265 [ 16] 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97 97
09-30-2008 21:04:37.375 [ 16] A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0 A0
09-30-2008 21:04:37.468 [ 16] AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA
09-30-2008 21:04:37.562 [ 16] B3 B3 B3 B3 B3 B3 B3 B3 B3 B3 B3 B3 B3 B3 B3 B3
09-30-2008 21:04:37.671 [ 16] BC BC BC BC BC BC BC BC BC BC BC BC BC BC BC BC
09-30-2008 21:04:37.765 [ 16] C6 C6 C6 C6 C6 C6 C6 C6 C6 C6 C6 C6 C6 C6 C6 C6
09-30-2008 21:04:37.875 [ 16] CF CF CF CF CF CF CF CF CF CF CF CF CF CF CF CF
09-30-2008 21:04:37.968 [ 16] D9 D9 D9 D9 D9 D9 D9 D9 D9 D9 D9 D9 D9 D9 D9 D9
09-30-2008 21:04:38.062 [ 16] E2 E2 E2 E2 E2 E2 E2 E2 E2 E2 E2 E2 E2 E2 E2 E2
09-30-2008 21:04:38.171 [ 16] EC EC EC EC EC EC EC EC EC EC EC EC EC EC EC EC
09-30-2008 21:04:38.265 [ 16] F5 F5 F5 F5 F5 F5 F5 F5 F5 F5 F5 F5 F5 F5 F5 F5
09-30-2008 21:04:38.375 [ 16] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
09-30-2008 21:04:38.468 [ 16] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
09-30-2008 21:04:39.015 [ 16] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


Reply
Posts: 80
(@pikoko)
Estimable Member
Joined: 19 years ago

Hm well that solves that problem thanks. i just made 2 icicle's and will be using them.


Reply
Posts: 75
(@photo-worx)
Trusted Member
Joined: 18 years ago

Hello all.

I am also working on a new system using a picaxe controller and was looking for this info.

What teberle posted is the data log for the program. Does anyone know what the actual serial data stream looks like?

ie: if i were to write a basic command to send the data to a controller, how would the data be sent? Would I send each channel data in a separate data variable?

I am using the Allegro A6279 chips and I can not find any info on sending the data to the controller.

Any help would be awesome.

Thanx.

Dan


Reply
teberle
Posts: 641
(@teberle)
Honorable Member
Joined: 19 years ago

I have a serial port monitor program that will capture the data. I will see if I can get some this afternoon.


Reply
Posts: 1
(@scuba-frog)
New Member
Joined: 18 years ago

What teberle posted was about right. The generic serial port plug in out puts one byte per channel (00 to FF) for every channel any time one or more channels change. It's kind of like a DMX system. So in say a two channel system with just channel one blinking on and off you would have:

00 00
FF 00
00 00
FF 00
00 00

and so on. It does not matter the speed it is blinking at. It will only out put on the change.

Using this can cause some problems. There is no sync byte built in. If one of you packs drops a character it would have no way to resync it's self. The plug in gives you the option to specify a header and a footer. Using a header would allow you to make a sync byte. It would have to be a string. If say just "@" was used and you dimming went to 1/4 on one channel it would be the same as your sync byte so everything would reset. If you made it longer say "Start" you have now reduced the chance that would happen but increased the overhead and slowed down the refresh rate.

Photo-Worx start a new post and I can help with all the finer points of your PICAXE Allegro combo. But as a quick answer. This would work well for a PICAXE as long as you have an X2 part. You will need to use the @bptr command unless you have a small set up as the max ram is 55 bytes and 256 with the @bptr command. Working from memory so I could be wrong here. You would have to read the whole string and then pick out the channels you needed for that controller. Then it's a simple shifout.


Reply
Share: